Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.001259, allocations: 114.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 59.84 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2026, allocations: 50.54 MB / 410 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.01498/0.2176, allocations: 15.1 MB / 425 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008381/0.226, allocations: 4.741 MB / 429.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.2276, allocations: 87.75 kB / 429.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005692/0.2333, allocations: 3.453 MB / 433.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004018/0.2373, allocations: 2.341 MB / 435.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001693/0.239, allocations: 0.9944 MB / 436.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005858/0.2449, allocations: 6.191 MB / 442.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004187/0.2491, allocations: 4.574 MB / 447.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.2511, allocations: 2.149 MB / 449.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002908/0.254, allocations: 2.975 MB / 452.6 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006517/0.2547, allocations: 444 kB / 453 MB, free: 6.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002073/0.2568, allocations: 1.358 MB / 454.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002113/0.2589, allocations: 2.708 MB / 457.1 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002501/0.2614, allocations: 3.087 MB / 460.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007779/0.2692, allocations: 9.308 MB / 469.4 MB, free: 5.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2692, allocations: 7.938 kB / 469.5 MB, free: 5.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2692, allocations: 0 / 469.5 MB, free: 5.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.06e-05/0.2693, allocations: 0 / 469.5 MB, free: 5.785 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.01105/0.2804, allocations: 6.827 MB / 476.3 MB, free: 14.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2804, allocations: 8.031 kB / 476.3 MB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/0.2909, allocations: 2.785 MB / 479.1 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0059/0.2968, allocations: 3.171 MB / 482.2 MB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002378/0.2971, allocations: 356.8 kB / 482.6 MB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001511/0.2986, allocations: 0.6749 MB / 483.3 MB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0286/0.3272, allocations: 17.47 MB / 0.489 GB, free: 5.348 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001266/0.3274, allocations: 67.45 kB / 0.4891 GB, free: 5.281 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005588/0.3279, allocations: 215.8 kB / 0.4893 GB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004/0.3319, allocations: 2.843 MB / 0.492 GB, free: 2.227 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02955/0.3615, allocations: 15.34 MB / 0.507 GB, free: 2.871 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2235/0.585, allocations: 58.67 MB / 0.5643 GB, free: 85.28 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01545/0.6005, allocations: 7.202 MB / 0.5714 GB, free: 83.15 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003078/0.6036, allocations: 3.252 MB / 0.5745 GB, free: 81.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01491/0.6185, allocations: 14.54 MB / 0.5887 GB, free: 72.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.6186, allocations: 65.81 kB / 0.5888 GB, free: 72.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 4.548e-06/0.6186, allocations: 0 / 0.5888 GB, free: 72.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=303): time 0.05437/0.673, allocations: 25.05 MB / 0.6133 GB, free: 47.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.673, allocations: 158.5 kB / 0.6134 GB, free: 47.22 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004589/0.6776, allocations: 5.089 MB / 0.6184 GB, free: 42.13 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001924/0.6778, allocations: 73.7 kB / 0.6184 GB, free: 42.05 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001454/0.6793, allocations: 4.166 MB / 0.6225 GB, free: 37.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006221/0.6799, allocations: 1.169 MB / 0.6237 GB, free: 36.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001673/0.6816, allocations: 1.729 MB / 0.6253 GB, free: 34.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.381e-05/0.6816, allocations: 301.1 kB / 0.6256 GB, free: 34.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003991/0.6856, allocations: 3.386 MB / 0.6289 GB, free: 31.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00534/0.691, allocations: 8.356 MB / 0.6371 GB, free: 20.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/0.701, allocations: 12.59 MB / 0.6494 GB, free: 5.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.997e-05/0.7011, allocations: 48 kB / 0.6494 GB, free: 5.539 MB / 462.1 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03964/0.7407, allocations: 16.65 MB / 0.6657 GB, free: 4.793 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.822e-05/0.7408, allocations: 80 kB / 0.6658 GB, free: 4.715 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02972/0.7706, allocations: 9.325 MB / 0.6749 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02955/0.8001, allocations: 6.433 MB / 0.6812 GB, free: 4.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005849/0.806, allocations: 2.035 MB / 0.6832 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02629/0.8323, allocations: 19.36 MB / 0.7021 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005291/0.8376, allocations: 0.5461 MB / 0.7026 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006921/0.8383, allocations: 0.5 MB / 0.7031 GB, free: 13.54 MB / 0.5137 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.003611/0.8419, allocations: 2.733 MB / 0.7057 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007903/0.8427, allocations: 473.9 kB / 0.7062 GB, free: 10.33 MB / 0.5137 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 255 equation(s) and 244 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004311/0.847, allocations: 2.608 MB / 0.7087 GB, free: 7.699 MB / 0.5137 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