Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.|body3.frame_a.r_0.1.|body3.frame_a.r_0.2.|body3.frame_a.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body3.w_a.1.|body3.w_a.2.|body3.w_a.3.|springDamperSeries.s_damper",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.|body3.frame_a.r_0.1.|body3.frame_a.r_0.2.|body3.frame_a.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body3.w_a.1.|body3.w_a.2.|body3.w_a.3.|springDamperSeries.s_damper",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 102.5 kB / 17.74 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 197.2 kB / 18.67 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000939/0.000939, allocations: 47.92 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2055, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.01446/0.22, allocations: 15.14 MB / 416.6 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00859/0.2286, allocations: 4.752 MB / 421.3 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.2297, allocations: 87.75 kB / 421.4 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005632/0.2353, allocations: 3.469 MB / 424.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004163/0.2395, allocations: 2.439 MB / 427.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.2413, allocations: 1.006 MB / 428.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00634/0.2476, allocations: 6.065 MB / 434.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004928/0.2526, allocations: 4.609 MB / 439 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002853/0.2554, allocations: 2.157 MB / 441.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.259, allocations: 2.99 MB / 444.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008022/0.2598, allocations: 448 kB / 444.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.2622, allocations: 1.369 MB / 445.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002242/0.2645, allocations: 2.739 MB / 448.7 MB, free: 9.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002722/0.2672, allocations: 3.111 MB / 451.8 MB, free: 6.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008042/0.2752, allocations: 9.39 MB / 461.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2753, allocations: 0 / 461.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2753, allocations: 0 / 461.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001321/0.2754, allocations: 0 / 461.2 MB, free: 12.84 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.01228/0.2877, allocations: 6.885 MB / 468.1 MB, free: 5.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2878, allocations: 12.03 kB / 468.1 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/0.2983, allocations: 2.609 MB / 470.7 MB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006023/0.3043, allocations: 3.249 MB / 473.9 MB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000242/0.3046, allocations: 356.7 kB / 474.3 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/0.3062, allocations: 0.6788 MB / 475 MB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03157/0.3378, allocations: 17.4 MB / 492.4 MB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.3379, allocations: 59.47 kB / 492.4 MB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005776/0.3385, allocations: 219.8 kB / 492.6 MB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004235/0.3427, allocations: 2.843 MB / 495.5 MB, free: 9.391 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03304/0.3758, allocations: 15.26 MB / 0.4988 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.239/0.6148, allocations: 58.67 MB / 0.5561 GB, free: 92.33 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/0.6308, allocations: 7.129 MB / 0.563 GB, free: 90.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/0.6339, allocations: 3.249 MB / 0.5662 GB, free: 89.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01673/0.6506, allocations: 14.46 MB / 0.5803 GB, free: 81.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.6507, allocations: 66 kB / 0.5804 GB, free: 81.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 5.19e-06/0.6507, allocations: 3.984 kB / 0.5804 GB, free: 81.03 MB / 462.1 MB Notification: Performance of matching and sorting (n=303): time 0.05551/0.7062, allocations: 24.8 MB / 0.6046 GB, free: 56.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.7063, allocations: 158.5 kB / 0.6048 GB, free: 55.91 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005326/0.7116, allocations: 5.105 MB / 0.6098 GB, free: 50.81 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006035/0.7122, allocations: 65.7 kB / 0.6098 GB, free: 50.74 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.7137, allocations: 4.165 MB / 0.6139 GB, free: 46.58 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008078/0.7145, allocations: 1.173 MB / 0.615 GB, free: 45.42 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001731/0.7163, allocations: 1.73 MB / 0.6167 GB, free: 43.68 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.21e-05/0.7163, allocations: 305.1 kB / 0.617 GB, free: 43.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004002/0.7203, allocations: 3.351 MB / 0.6203 GB, free: 40.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005343/0.7257, allocations: 8.326 MB / 0.6284 GB, free: 29.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.7359, allocations: 12.52 MB / 0.6406 GB, free: 14.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.575e-05/0.736, allocations: 55.94 kB / 0.6407 GB, free: 14.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03902/0.7751, allocations: 16.39 MB / 0.6567 GB, free: 13.95 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-05/0.7752, allocations: 83.94 kB / 0.6568 GB, free: 13.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03033/0.8055, allocations: 9.036 MB / 0.6656 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03093/0.8365, allocations: 6.16 MB / 0.6716 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0066/0.8431, allocations: 2.02 MB / 0.6736 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02723/0.8703, allocations: 19.29 MB / 0.6924 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006465/0.8768, allocations: 0.5422 MB / 0.693 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/0.8781, allocations: 0.4961 MB / 0.6934 GB, free: 7.348 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 66 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],springDamperSeries.color[3],springDamperSeries.color[2],springDamperSeries.color[1],springDamperSeries.color_b[3],springDamperSeries.color_b[2],springDamperSeries.color_b[1],springDamperSeries.color_a[3],springDamperSeries.color_a[2],springDamperSeries.color_a[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1076 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 3 systems {4, 4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,1,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004849/0.883, allocations: 2.726 MB / 0.6961 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/0.884, allocations: 473.9 kB / 0.6966 GB, free: 4.145 MB / 0.4981 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 257 equation(s) and 246 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004785/0.8888, allocations: 2.606 MB / 0.6991 GB, free: 1.512 MB / 0.4981 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses could not be translated