Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001184/0.001183, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.534/1.534, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.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.001188/0.001188, allocations: 55.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.259, allocations: 46.62 MB / 324.9 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03642/0.2954, allocations: 38.68 MB / 363.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0225/0.318, allocations: 8.4 MB / 371.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01093/0.329, allocations: 167.6 kB / 372.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005092/0.3342, allocations: 2.135 MB / 374.2 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005858/0.3401, allocations: 1.713 MB / 375.9 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001803/0.3419, allocations: 0.6671 MB / 376.6 MB, free: 164 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006452/0.3483, allocations: 4.297 MB / 380.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004056/0.3524, allocations: 3.078 MB / 384 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002454/0.3549, allocations: 1.522 MB / 385.5 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002978/0.3579, allocations: 2.317 MB / 387.8 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007747/0.3587, allocations: 292 kB / 388.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.3608, allocations: 0.948 MB / 389.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001852/0.3626, allocations: 1.851 MB / 390.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002582/0.3652, allocations: 2.128 MB / 393 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007978/0.3732, allocations: 6.23 MB / 399.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.3733, allocations: 0 / 399.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3733, allocations: 4 kB / 399.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000273/0.3736, allocations: 0 / 399.3 MB, free: 9.375 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01017/0.3837, allocations: 4.606 MB / 403.9 MB, free: 4.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3838, allocations: 8.031 kB / 403.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007491/0.3913, allocations: 1.918 MB / 405.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005816/0.3972, allocations: 2.355 MB / 408.2 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.3974, allocations: 229.6 kB / 408.4 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009108/0.3983, allocations: 291.8 kB / 408.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/0.416, allocations: 9.643 MB / 418.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001362/0.4161, allocations: 47.53 kB / 418.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004515/0.4166, allocations: 139.9 kB / 418.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002786/0.4194, allocations: 1.919 MB / 420.4 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.4351, allocations: 7.633 MB / 428 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2769/0.7121, allocations: 37.75 MB / 465.8 MB, free: 86.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006669/0.7188, allocations: 2.887 MB / 468.7 MB, free: 86.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/0.7199, allocations: 0.8743 MB / 469.6 MB, free: 85.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005652/0.7256, allocations: 3.769 MB / 473.3 MB, free: 83.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.7256, allocations: 50.41 kB / 473.4 MB, free: 83.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.126e-06/0.7256, allocations: 0 / 473.4 MB, free: 83.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01941/0.745, allocations: 9.063 MB / 482.4 MB, free: 79.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.692e-05/0.7451, allocations: 146.2 kB / 482.6 MB, free: 78.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004495/0.7497, allocations: 3.939 MB / 486.5 MB, free: 76.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.7498, allocations: 53.17 kB / 486.6 MB, free: 76.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.7511, allocations: 3.093 MB / 489.7 MB, free: 73.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/0.7515, allocations: 0.6015 MB / 490.3 MB, free: 72.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009731/0.7525, allocations: 1.166 MB / 491.4 MB, free: 71.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.391e-05/0.7526, allocations: 301.1 kB / 491.7 MB, free: 71.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001808/0.7544, allocations: 1.585 MB / 493.3 MB, free: 69.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003174/0.7576, allocations: 5.347 MB / 498.7 MB, free: 62.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005766/0.7634, allocations: 7.55 MB / 0.4943 GB, free: 53.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.053e-05/0.7635, allocations: 36 kB / 0.4944 GB, free: 53.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01282/0.7763, allocations: 6.659 MB / 0.5009 GB, free: 46.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001896/0.7765, allocations: 67.98 kB / 0.5009 GB, free: 46.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002962/0.7769, allocations: 132 kB / 0.5011 GB, free: 46.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/0.7771, allocations: 176 kB / 0.5012 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004086/0.7812, allocations: 1.384 MB / 0.5026 GB, free: 45.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002072/0.7814, allocations: 263 kB / 0.5028 GB, free: 44.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004225/0.7856, allocations: 291.5 kB / 0.5031 GB, free: 44.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000685/0.7863, allocations: 371.5 kB / 0.5035 GB, free: 44.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003438/0.7898, allocations: 1.978 MB / 0.5054 GB, free: 42.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009003/0.7907, allocations: 335.7 kB / 0.5057 GB, free: 41.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002449/0.7932, allocations: 1.242 MB / 0.5069 GB, free: 40.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.34e-05/0.7932, allocations: 20 kB / 0.507 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.7933, allocations: 0 / 0.507 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.7933, allocations: 11.91 kB / 0.507 GB, free: 40.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.8043, allocations: 5.759 MB / 0.5126 GB, free: 34.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.962e-05/0.8044, allocations: 20 kB / 0.5126 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.8054, allocations: 279.5 kB / 0.5129 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.702e-05/0.8055, allocations: 28 kB / 0.5129 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001613/0.8057, allocations: 44 kB / 0.5129 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.971e-05/0.8057, allocations: 43.8 kB / 0.513 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.862e-05/0.8057, allocations: 31.81 kB / 0.513 GB, free: 34.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004124/0.8098, allocations: 3.216 MB / 0.5162 GB, free: 30.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001432/0.8113, allocations: 0.5122 MB / 0.5167 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008539/0.8122, allocations: 51.98 kB / 0.5167 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002269/0.8145, allocations: 59.97 kB / 0.5168 GB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.8148, allocations: 147.4 kB / 0.5169 GB, free: 29.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.8149, allocations: 67.59 kB / 0.517 GB, free: 29.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005193/0.8201, allocations: 2.454 MB / 0.5194 GB, free: 27.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.8202, allocations: 0 / 0.5194 GB, free: 27.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006287/0.8265, allocations: 0.8661 MB / 0.5202 GB, free: 26.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007105/0.8272, allocations: 204.9 kB / 0.5204 GB, free: 26.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006413/0.8337, allocations: 3.818 MB / 0.5241 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.268e-05/0.8337, allocations: 4.188 kB / 0.5241 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.8349, allocations: 0.7288 MB / 0.5249 GB, free: 21.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004291/0.8392, allocations: 462.3 kB / 0.5253 GB, free: 21.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0159/0.8551, allocations: 10.54 MB / 0.5356 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004231/0.8594, allocations: 3.107 MB / 0.5386 GB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004792/0.8642, allocations: 1.764 MB / 0.5403 GB, free: 5.559 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008017/0.865, allocations: 235.4 kB / 0.5406 GB, free: 5.328 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.865, allocations: 0 / 0.5406 GB, free: 5.328 MB / 382.1 MB Notification: Performance of Templates: time 0.0561/0.9211, allocations: 27.2 MB / 0.5671 GB, free: 10.16 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)