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.001516/0.001516, allocations: 114.5 kB / 18.41 MB, free: 4.691 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.001861/0.001861, allocations: 182.2 kB / 19.33 MB, free: 3.777 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.26/1.26, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001191/0.001191, allocations: 59.91 kB / 329.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0708/0.072, allocations: 46.61 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.1545/0.2266, allocations: 15.2 MB / 391 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008109/0.2347, allocations: 4.71 MB / 395.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002101/0.2368, allocations: 92.59 kB / 395.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005834/0.2427, allocations: 3.454 MB / 399.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005548/0.2483, allocations: 2.391 MB / 401.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001949/0.2502, allocations: 0.9989 MB / 402.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00708/0.2573, allocations: 6.082 MB / 408.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004566/0.2619, allocations: 4.613 MB / 413.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002606/0.2645, allocations: 2.17 MB / 415.5 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003363/0.2679, allocations: 3.002 MB / 418.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007367/0.2687, allocations: 444 kB / 419 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.2711, allocations: 1.346 MB / 420.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002217/0.2733, allocations: 2.751 MB / 423.1 MB, free: 188 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002893/0.2762, allocations: 3.118 MB / 426.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008578/0.2848, allocations: 9.404 MB / 435.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2849, allocations: 0 / 435.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2849, allocations: 0 / 435.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001125/0.285, allocations: 0 / 435.6 MB, free: 3.609 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.01193/0.2969, allocations: 6.893 MB / 442.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.297, allocations: 8.031 kB / 442.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/0.3075, allocations: 2.621 MB / 445.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005101/0.3126, allocations: 3.398 MB / 448.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/0.3129, allocations: 348.8 kB / 448.9 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/0.3145, allocations: 0.6749 MB / 449.5 MB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03204/0.3465, allocations: 17.4 MB / 466.9 MB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001323/0.3467, allocations: 55.47 kB / 467 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005817/0.3473, allocations: 227.8 kB / 467.2 MB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004339/0.3516, allocations: 2.844 MB / 470.1 MB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03225/0.3839, allocations: 15.27 MB / 485.3 MB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06539/0.4493, allocations: 58.68 MB / 0.5313 GB, free: 4.539 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01821/0.4675, allocations: 7.129 MB / 0.5382 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004157/0.4717, allocations: 3.255 MB / 0.5414 GB, free: 9.898 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1568/0.6285, allocations: 14.46 MB / 0.5555 GB, free: 146.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.6285, allocations: 70.39 kB / 0.5556 GB, free: 146.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 6.081e-06/0.6285, allocations: 0.9844 kB / 0.5556 GB, free: 146.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=303): time 0.05983/0.6884, allocations: 24.84 MB / 0.5798 GB, free: 138.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.6884, allocations: 156.3 kB / 0.58 GB, free: 138.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004811/0.6933, allocations: 5.131 MB / 0.585 GB, free: 136.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002293/0.6935, allocations: 69.33 kB / 0.5851 GB, free: 136.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00147/0.695, allocations: 4.182 MB / 0.5891 GB, free: 133.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006596/0.6956, allocations: 1.164 MB / 0.5903 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001669/0.6973, allocations: 1.734 MB / 0.592 GB, free: 131.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.184e-05/0.6974, allocations: 301.1 kB / 0.5923 GB, free: 131.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003895/0.7013, allocations: 3.354 MB / 0.5955 GB, free: 129.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005092/0.7064, allocations: 8.316 MB / 0.6037 GB, free: 118.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009732/0.7161, allocations: 12.55 MB / 0.6159 GB, free: 103.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.133e-05/0.7162, allocations: 51.94 kB / 0.616 GB, free: 103.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03813/0.7543, allocations: 16.38 MB / 0.632 GB, free: 87.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.171e-05/0.7544, allocations: 80 kB / 0.632 GB, free: 87.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02807/0.7825, allocations: 9.047 MB / 0.6409 GB, free: 78.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0292/0.8117, allocations: 6.156 MB / 0.6469 GB, free: 71.84 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005933/0.8177, allocations: 2.02 MB / 0.6489 GB, free: 69.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02213/0.8398, allocations: 19.29 MB / 0.6677 GB, free: 49.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006394/0.8462, allocations: 0.538 MB / 0.6682 GB, free: 49.17 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008978/0.8471, allocations: 0.4961 MB / 0.6687 GB, free: 48.67 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.003492/0.8506, allocations: 2.72 MB / 0.6714 GB, free: 45.94 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007908/0.8514, allocations: 481.8 kB / 0.6718 GB, free: 45.46 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.003785/0.8552, allocations: 2.613 MB / 0.6744 GB, free: 42.83 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