Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001528/0.001528, allocations: 107.2 kB / 18.4 MB, free: 4.547 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.001781/0.001781, allocations: 187.3 kB / 19.34 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.91 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06943/0.0706, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.1553/0.226, allocations: 15.2 MB / 391 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008304/0.2343, allocations: 4.713 MB / 395.8 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.2363, allocations: 88.38 kB / 395.8 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006104/0.2424, allocations: 3.457 MB / 399.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00634/0.2488, allocations: 2.454 MB / 401.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002342/0.2511, allocations: 0.9991 MB / 402.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008262/0.2594, allocations: 6.096 MB / 408.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005857/0.2653, allocations: 4.609 MB / 413.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003735/0.2691, allocations: 2.167 MB / 415.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004191/0.2733, allocations: 3.002 MB / 418.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0012/0.2745, allocations: 447.9 kB / 419.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002993/0.2775, allocations: 1.35 MB / 420.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002606/0.2801, allocations: 2.751 MB / 423.2 MB, free: 128 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003306/0.2834, allocations: 3.115 MB / 426.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009169/0.2926, allocations: 9.441 MB / 435.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2926, allocations: 0 / 435.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2926, allocations: 4 kB / 435.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002015/0.2928, allocations: 0 / 435.7 MB, free: 3.508 MB / 350.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.01255/0.3054, allocations: 7.065 MB / 442.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3055, allocations: 8.031 kB / 442.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00972/0.3152, allocations: 2.66 MB / 445.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005297/0.3205, allocations: 3.411 MB / 448.9 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002518/0.3208, allocations: 356.8 kB / 449.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.3223, allocations: 0.6711 MB / 449.9 MB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02933/0.3516, allocations: 17.4 MB / 467.3 MB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.3518, allocations: 63.52 kB / 467.4 MB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005285/0.3523, allocations: 215.8 kB / 467.6 MB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003989/0.3563, allocations: 2.84 MB / 470.4 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0308/0.3871, allocations: 15.27 MB / 485.7 MB, free: 380 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06645/0.4536, allocations: 58.78 MB / 0.5317 GB, free: 4.113 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01679/0.4704, allocations: 7.136 MB / 0.5387 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004223/0.4747, allocations: 3.251 MB / 0.5418 GB, free: 9.469 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1732/0.6479, allocations: 14.48 MB / 0.556 GB, free: 146.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.6479, allocations: 68.12 kB / 0.556 GB, free: 146.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 5.971e-06/0.6479, allocations: 0 / 0.556 GB, free: 146.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=303): time 0.05885/0.7068, allocations: 25.16 MB / 0.5806 GB, free: 138.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.7069, allocations: 157 kB / 0.5808 GB, free: 138.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005171/0.712, allocations: 5.144 MB / 0.5858 GB, free: 136.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003541/0.7124, allocations: 69.42 kB / 0.5859 GB, free: 136.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/0.714, allocations: 4.337 MB / 0.5901 GB, free: 133.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007901/0.7148, allocations: 1.234 MB / 0.5913 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001695/0.7165, allocations: 1.74 MB / 0.593 GB, free: 131.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.356e-05/0.7166, allocations: 301.1 kB / 0.5933 GB, free: 131.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003853/0.7204, allocations: 3.354 MB / 0.5966 GB, free: 129.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005101/0.7256, allocations: 8.316 MB / 0.6047 GB, free: 118.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00952/0.7351, allocations: 12.55 MB / 0.6169 GB, free: 103.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.589e-05/0.7352, allocations: 48 kB / 0.617 GB, free: 103.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03503/0.7702, allocations: 16.42 MB / 0.633 GB, free: 86.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.147e-05/0.7703, allocations: 80 kB / 0.6331 GB, free: 86.85 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0254/0.7957, allocations: 9.037 MB / 0.6419 GB, free: 77.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02653/0.8222, allocations: 6.167 MB / 0.6479 GB, free: 71.51 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005723/0.828, allocations: 2.016 MB / 0.6499 GB, free: 69.49 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02084/0.8488, allocations: 19.29 MB / 0.6687 GB, free: 49.39 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006057/0.8549, allocations: 0.5384 MB / 0.6693 GB, free: 48.85 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005728/0.8555, allocations: 0.5 MB / 0.6698 GB, free: 48.35 MB / 478.1 MB 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.003074/0.8586, allocations: 2.719 MB / 0.6724 GB, free: 45.61 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005734/0.8592, allocations: 0.4889 MB / 0.6729 GB, free: 45.12 MB / 478.1 MB 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.003409/0.8626, allocations: 2.614 MB / 0.6754 GB, free: 42.48 MB / 478.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses could not be translated