Skip to main content

A Debugging Scheme for Declarative Equation Based Modeling Languages

  • Conference paper
  • First Online:
Practical Aspects of Declarative Languages (PADL 2002)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2257))

Included in the following conference series:

Abstract

This paper concerns the static analysis for debugging purposes of programs written in declarative equation based modeling languages. We first give an introduction to declarative equation based languages and the consequences equation based programming has for debugging. At the same time, we examine the particular debugging problems posed by Modelica, a declarative equation based modeling language. A brief overview of the Modelica language is also given. We also present our view of the issues and solutions based on a proposed framework for debugging declarative equation based languages. Program analysis solutions for program understanding and for static debugging of declarative equation based languages, based on bipartite graph decomposition, are presented in the paper. We also present an efficient way to annotate the underlying equations in order to help the implemented debugger to eliminate the heuristics involved in choosing the right error fixing solution. This also provides means to report the location of an error caught by the static analyzer or by the numeric solver, consistent with the user’s perception of the source code and simulation model.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Abadi M., and Cardelli: A Theory of Objects. Springer Verlag, ISBN 0-387-94775-2, 1996.

    Google Scholar 

  2. Ait-Aoudia, S.; Jegou, R. and Michelucci, D. “Reduction of Constraint Systems.” In Compugraphic, pages 83–92, Alvor, Portugal, 1993.

    Google Scholar 

  3. Asratian A. S.; Denley T. and Häggkvist R. Bipartite Graphs and their Applications. Cambridge University Press 1998.

    Google Scholar 

  4. Bliek, C.; Neveu, B. and Trombettoni G. “Using Graph Decomposition for Solving Continuous CSPs”, Priciples and Practice of Constraint Programming, CP’98, Springer LNCS 1520, pages 102–116, Pisa, Italy, November 1998.

    Google Scholar 

  5. Dolan A. and Aldous J. Networks and algorithms-An introductory approach. John Wiley and Sons 1993En gland.

    Google Scholar 

  6. Dulmage, A. L., Mendelsohn, N. S. Coverings of bipartite graphs, Canadian J. Math., 10, 517–534.

    Google Scholar 

  7. Elmqvist, H.; Mattsson S.E and Otter, M. “Modelica-A Language for Physical System Modeling, Visualization and Interaction.” In Proceedings of the 1999 IEEE Symposium on Computer-Aided Control System Design (Hawaii, Aug. 22-27) 1999.

    Google Scholar 

  8. Elmqvist, H. A Structured Model Language for Large Continuous Systems. PhD thesis TFRT-1015, Department of Automatic Control, Lund Institute of Technology, Lund, Sweden. 1978.

    Google Scholar 

  9. Flannery, L. M. and Gonzalez, A. J. DetectingA nomalies in Constraint-based Systems, Engineering Applications of Artificial Intelligence, Vol. 10, No. 3, June 1997, pages. 257–268.

    Article  Google Scholar 

  10. Fritzson, P. and Engelson, V. “Modelica-A Unified Object-Oriented Language for System Modeling and Simulation.” In Proceedings of the 12th European Conference on Object-Oriented Programming (ECOOP’98, Brussels, Belgium, Jul. 20-24), 1998.

    Google Scholar 

  11. Fritzson, P.; Shahmehri, N.; Kamkar, M. and Gyimothy, T. Generalized algorithmic debugging and testing. ACM Letters on Programming Languages and Systems, 1(4):303–322, December 1992.

    Article  Google Scholar 

  12. Harrold, M.J and Rothermel, G. “A Coherent Family of Analyzable Graphical Representations for Object-Oriented Software.” Technical Report OSU-CISRC-11/96-TR60, November, 1996, Department of Computer and Information Science Ohio State University

    Google Scholar 

  13. Hopcroft, J. E. and Karp, R. M. An n 5/2 algorithm for maximum matchings in bipartite graphs. SIAM Journal of Computing, 2(4):225–231, December 1973.

    Article  MATH  MathSciNet  Google Scholar 

  14. Jirstrand, M. “MathModelica-A Full System Simulation Tool”. In Proceedings of Modelica Workshop 2000 (Lund, Sweden, Oct. 23-24), 2000.

    Google Scholar 

  15. Jirstrand, M.; Gunnarsson J. and Fritzson P. “MathModelica-a new modeling and simulation environment for Modelica. ” In Proceedings of the Third International Mathematica Symposium (IMS’99, Linz, Austria, Aug), 1999.

    Google Scholar 

  16. Maffezzoni C.; Girelli R. and Lluka P. Generatinge. cient computational procedures from declarative models. Simulation Practice and Theory 4 (1996) pages 303–317.

    Article  Google Scholar 

  17. Modelica Association. Modelica-A Unified Object-Oriented Language for Physical Systems Modeling-Tutorial and Design Rationale Version 1.4 (December 15, 2000).

    Google Scholar 

  18. Modelica Association. Modelica-A Unified Object-Oriented Language for Physical Systems Modeling-Language Specification Version 1.4. (December 15, 2000).

    Google Scholar 

  19. Pantelides, C. The consistent initialization of differentialalgebraic systems. SIAM Journal on Scientific and Statistical Computing, 9(2):213–231, March 1988.

    Article  MATH  MathSciNet  Google Scholar 

  20. Saldamli, L.; Fritzson, P. “Object-oriented Modeling With Partial Differential Equations”. In Proceedings of Modelica Workshop 2000 (Lund, Sweden, Oct. 23-24), 2000.

    Google Scholar 

  21. Shapiro Ehud Y. Algorithmic Program Debugging. MIT Press (May). 1982.

    Google Scholar 

  22. Tiller M. Michael. Introduction to Physical Modelingwi th Modelica. Kluwer Academic Publisher 2001.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bunus, P., Fritzson, P. (2002). A Debugging Scheme for Declarative Equation Based Modeling Languages. In: Krishnamurthi, S., Ramakrishnan, C.R. (eds) Practical Aspects of Declarative Languages. PADL 2002. Lecture Notes in Computer Science, vol 2257. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45587-6_18

Download citation

  • DOI: https://doi.org/10.1007/3-540-45587-6_18

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-43092-6

  • Online ISBN: 978-3-540-45587-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics