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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0009932/0.0009931, allocations: 184.3 kB / 13.65 MB, free: 1.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.415/1.415, allocations: 194.3 MB / 208.4 MB, free: 6.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.0016/0.0016, allocations: 120.6 kB / 253.5 MB, free: 9.527 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.758e-05/2.777e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07974/0.07978, allocations: 44.49 MB / 349.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3012/0.381, allocations: 88.03 MB / 437.5 MB, free: 7.234 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/0.3814, allocations: 84.67 kB / 437.6 MB, free: 7.223 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.211/0.5924, allocations: 83.64 MB / 0.509 GB, free: 10.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5925, allocations: 0 / 0.509 GB, free: 10.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001711/0.5927, allocations: 76 kB / 0.509 GB, free: 10.42 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01172/0.6044, allocations: 3.799 MB / 0.5128 GB, free: 6.555 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.651e-05/0.6045, allocations: 12.03 kB / 0.5128 GB, free: 6.543 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/0.6161, allocations: 2.432 MB / 0.5151 GB, free: 4.102 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01214/0.6283, allocations: 5.031 MB / 0.5201 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003259/0.6287, allocations: 308 kB / 0.5204 GB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001719/0.6304, allocations: 411.8 kB / 0.5207 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.6518, allocations: 9.801 MB / 0.5303 GB, free: 3.426 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001909/0.6521, allocations: 59.41 kB / 0.5304 GB, free: 3.367 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008228/0.6529, allocations: 199.9 kB / 0.5306 GB, free: 3.172 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001564/0.6545, allocations: 0.998 MB / 0.5315 GB, free: 2.168 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01536/0.6699, allocations: 7.531 MB / 0.5389 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2374/0.9073, allocations: 45.37 MB / 0.5832 GB, free: 63.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005521/0.9129, allocations: 2.704 MB / 0.5858 GB, free: 62.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.9142, allocations: 0.8239 MB / 0.5866 GB, free: 62.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006474/0.9207, allocations: 3.45 MB / 0.59 GB, free: 61.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.9207, allocations: 48.06 kB / 0.5901 GB, free: 61.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 5.481e-06/0.9207, allocations: 2.406 kB / 0.5901 GB, free: 61.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.01778/0.9385, allocations: 8.2 MB / 0.5981 GB, free: 58.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.9386, allocations: 150.5 kB / 0.5982 GB, free: 58.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004203/0.9428, allocations: 3.419 MB / 0.6016 GB, free: 58.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/0.943, allocations: 54.12 kB / 0.6016 GB, free: 58.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001415/0.9444, allocations: 3.075 MB / 0.6046 GB, free: 56.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004128/0.9448, allocations: 0.585 MB / 0.6052 GB, free: 56.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.945, allocations: 114.6 kB / 0.6053 GB, free: 56.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.9452, allocations: 0.5473 MB / 0.6058 GB, free: 55.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.9469, allocations: 1.463 MB / 0.6072 GB, free: 55.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003048/0.95, allocations: 5.18 MB / 0.6123 GB, free: 50.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003003/0.953, allocations: 2.754 MB / 0.615 GB, free: 50.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.753e-05/0.9531, allocations: 38 kB / 0.615 GB, free: 50.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.007718/0.9608, allocations: 6.388 MB / 0.6213 GB, free: 50.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.815e-05/0.9609, allocations: 63.92 kB / 0.6213 GB, free: 50.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.524e-05/0.961, allocations: 133.1 kB / 0.6215 GB, free: 50.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001448/0.9611, allocations: 196.3 kB / 0.6216 GB, free: 50.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004017/0.9652, allocations: 1.39 MB / 0.623 GB, free: 50.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001327/0.9653, allocations: 262.3 kB / 0.6233 GB, free: 50.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003534/0.9688, allocations: 367.1 kB / 0.6236 GB, free: 50.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003402/0.9692, allocations: 362.4 kB / 0.624 GB, free: 49.98 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * Number of states: 0 () * Number of discrete variables: 33 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (726): * Single equations (assignments): 723 * 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.00052/0.9697, allocations: 0.5605 MB / 0.6245 GB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003701/0.9701, allocations: 330.4 kB / 0.6248 GB, free: 49.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/0.9718, allocations: 1.172 MB / 0.626 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.21e-05/0.9718, allocations: 18.19 kB / 0.626 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.9718, allocations: 4 kB / 0.626 GB, free: 48.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.9718, allocations: 6.844 kB / 0.626 GB, free: 48.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007145/0.979, allocations: 5.623 MB / 0.6315 GB, free: 46.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/0.979, allocations: 16.97 kB / 0.6315 GB, free: 46.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008786/0.9799, allocations: 272.4 kB / 0.6318 GB, free: 46.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.263e-05/0.98, allocations: 26.25 kB / 0.6318 GB, free: 46.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.127e-05/0.98, allocations: 51.81 kB / 0.6318 GB, free: 46.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.808e-05/0.9801, allocations: 34.94 kB / 0.6319 GB, free: 46.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.238e-05/0.9801, allocations: 27.5 kB / 0.6319 GB, free: 46.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00311/0.9832, allocations: 5.108 MB / 0.6369 GB, free: 41.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.9842, allocations: 0.5148 MB / 0.6374 GB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.9845, allocations: 48.34 kB / 0.6374 GB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.9857, allocations: 98.95 kB / 0.6375 GB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.9858, allocations: 142.1 kB / 0.6377 GB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.548e-05/0.9859, allocations: 62.84 kB / 0.6377 GB, free: 41.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003095/0.989, allocations: 2.368 MB / 0.64 GB, free: 40.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.989, allocations: 0 / 0.64 GB, free: 40.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004244/0.9933, allocations: 0.8649 MB / 0.6409 GB, free: 40.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 135 * 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.0003278/0.9936, allocations: 199.2 kB / 0.6411 GB, free: 40.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00432/0.9979, allocations: 3.467 MB / 0.6444 GB, free: 39.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.998, allocations: 4.312 kB / 0.6444 GB, free: 39.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000741/0.9987, allocations: 0.7009 MB / 0.6451 GB, free: 39.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/1.001, allocations: 415.3 kB / 0.6455 GB, free: 38.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009682/1.01, allocations: 6.909 MB / 0.6523 GB, free: 34.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002492/1.013, allocations: 3.162 MB / 0.6554 GB, free: 32.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00416/1.017, allocations: 1.756 MB / 0.6571 GB, free: 31.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005478/1.018, allocations: 234.6 kB / 0.6573 GB, free: 31.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/1.018, allocations: 1.969 kB / 0.6573 GB, free: 31.15 MB / 410.7 MB Notification: Performance of Templates: time 0.0416/1.059, allocations: 25.28 MB / 0.682 GB, free: 14.45 MB / 410.7 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)