Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001276/0.001276, allocations: 87.16 kB / 16.31 MB, free: 6.449 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.001514/0.001514, allocations: 180.5 kB / 17.21 MB, free: 6.32 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.474/1.474, allocations: 205.4 MB / 223.4 MB, free: 5.504 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.0005009/0.000501, allocations: 12 kB / 280.2 MB, free: 12.9 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2667, allocations: 47.58 MB / 327.7 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03499/0.3017, allocations: 35 MB / 362.7 MB, free: 424 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02117/0.323, allocations: 8.02 MB / 370.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007716/0.3308, allocations: 163.6 kB / 370.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006213/0.337, allocations: 1.796 MB / 372.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01708/0.3541, allocations: 5.502 MB / 378.2 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003691/0.3579, allocations: 0.628 MB / 378.8 MB, free: 260 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007583/0.3655, allocations: 4.71 MB / 383.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007374/0.3729, allocations: 3.364 MB / 386.9 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003357/0.3763, allocations: 1.273 MB / 388.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004235/0.3805, allocations: 2.017 MB / 390.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001291/0.3819, allocations: 140 kB / 390.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002847/0.3847, allocations: 0.7138 MB / 391.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002821/0.3876, allocations: 1.648 MB / 392.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00183/0.3894, allocations: 0.7843 MB / 393.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007722/0.3971, allocations: 4.851 MB / 398.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.3972, allocations: 0 / 398.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3972, allocations: 0 / 398.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002672/0.3975, allocations: 0 / 398.3 MB, free: 12.65 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.009475/0.4069, allocations: 3.862 MB / 402.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.407, allocations: 12.03 kB / 402.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007115/0.4141, allocations: 1.964 MB / 404.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004659/0.4188, allocations: 2.305 MB / 406.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.419, allocations: 225.6 kB / 406.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000615/0.4197, allocations: 299.7 kB / 407 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01516/0.4348, allocations: 9.639 MB / 416.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.435, allocations: 51.58 kB / 416.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003681/0.4354, allocations: 139.9 kB / 416.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002716/0.4381, allocations: 1.923 MB / 418.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.4529, allocations: 7.606 MB / 426.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2497/0.7026, allocations: 37.74 MB / 464.1 MB, free: 86.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006197/0.7089, allocations: 2.877 MB / 467 MB, free: 85.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009932/0.7099, allocations: 0.8704 MB / 467.8 MB, free: 85.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004381/0.7143, allocations: 3.771 MB / 471.6 MB, free: 83.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.7144, allocations: 46.28 kB / 471.7 MB, free: 83.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.176e-06/0.7144, allocations: 0 / 471.7 MB, free: 83.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01673/0.7311, allocations: 9.056 MB / 480.7 MB, free: 79.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.7312, allocations: 147.2 kB / 480.9 MB, free: 79.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00402/0.7352, allocations: 3.919 MB / 484.8 MB, free: 77.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.319e-05/0.7353, allocations: 48.23 kB / 484.8 MB, free: 77.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.7366, allocations: 3.08 MB / 487.9 MB, free: 74.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003361/0.7369, allocations: 0.6102 MB / 488.5 MB, free: 74.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.7371, allocations: 120.1 kB / 488.6 MB, free: 74.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.7373, allocations: 0.554 MB / 489.2 MB, free: 73.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.7392, allocations: 1.554 MB / 490.7 MB, free: 72.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003097/0.7423, allocations: 5.332 MB / 496.1 MB, free: 64.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002994/0.7453, allocations: 2.822 MB / 498.9 MB, free: 62.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.851e-05/0.7454, allocations: 40 kB / 498.9 MB, free: 62.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007932/0.7533, allocations: 6.603 MB / 0.4937 GB, free: 55.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.14e-05/0.7534, allocations: 68.92 kB / 0.4938 GB, free: 55.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.116e-05/0.7535, allocations: 136 kB / 0.4939 GB, free: 55.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001405/0.7536, allocations: 196 kB / 0.4941 GB, free: 55.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003153/0.7568, allocations: 1.388 MB / 0.4954 GB, free: 54.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001292/0.7569, allocations: 267.9 kB / 0.4957 GB, free: 53.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003128/0.7601, allocations: 288.2 kB / 0.496 GB, free: 53.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003141/0.7604, allocations: 364.6 kB / 0.4963 GB, free: 53.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002207/0.7626, allocations: 1.983 MB / 0.4982 GB, free: 51.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003906/0.763, allocations: 331.7 kB / 0.4986 GB, free: 50.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/0.7647, allocations: 1.246 MB / 0.4998 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.081e-05/0.7647, allocations: 25.09 kB / 0.4998 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.7647, allocations: 0 / 0.4998 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.7647, allocations: 3.984 kB / 0.4998 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00648/0.7712, allocations: 5.744 MB / 0.5054 GB, free: 43.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/0.7712, allocations: 16 kB / 0.5054 GB, free: 43.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000824/0.7721, allocations: 279.5 kB / 0.5057 GB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-05/0.7721, allocations: 28.56 kB / 0.5057 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.347e-05/0.7722, allocations: 48 kB / 0.5058 GB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.805e-05/0.7722, allocations: 35.86 kB / 0.5058 GB, free: 43.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.27e-05/0.7722, allocations: 28.25 kB / 0.5058 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.7749, allocations: 3.218 MB / 0.509 GB, free: 39.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007531/0.7757, allocations: 0.5122 MB / 0.5095 GB, free: 39.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/0.776, allocations: 54.48 kB / 0.5095 GB, free: 38.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009365/0.777, allocations: 55.97 kB / 0.5096 GB, free: 38.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.7771, allocations: 151.7 kB / 0.5097 GB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.151e-05/0.7772, allocations: 64 kB / 0.5098 GB, free: 38.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002687/0.7799, allocations: 2.435 MB / 0.5122 GB, free: 36.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7799, allocations: 3.938 kB / 0.5122 GB, free: 36.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004134/0.784, allocations: 0.8653 MB / 0.513 GB, free: 35.44 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003285/0.7844, allocations: 200.2 kB / 0.5132 GB, free: 35.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004881/0.7893, allocations: 3.615 MB / 0.5167 GB, free: 31.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.7893, allocations: 4 kB / 0.5167 GB, free: 31.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007906/0.7901, allocations: 0.7197 MB / 0.5174 GB, free: 30.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/0.7926, allocations: 450.8 kB / 0.5179 GB, free: 30.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/0.8056, allocations: 10.2 MB / 0.5278 GB, free: 20.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002556/0.8082, allocations: 3.107 MB / 0.5309 GB, free: 16.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00388/0.8121, allocations: 1.768 MB / 0.5326 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004316/0.8125, allocations: 235.4 kB / 0.5328 GB, free: 14.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.653e-06/0.8125, allocations: 0 / 0.5328 GB, free: 14.89 MB / 382.1 MB Notification: Performance of Templates: time 0.0482/0.8607, allocations: 25.55 MB / 0.5578 GB, free: 5.359 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)