Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.001198/0.001198, allocations: 191.5 kB / 16.25 MB, free: 6.629 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.394/1.394, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.001451/0.001451, allocations: 59.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2538, allocations: 46.63 MB / 324.9 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02465/0.2785, allocations: 28.94 MB / 353.8 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01387/0.2924, allocations: 5.938 MB / 359.7 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005682/0.2981, allocations: 119.7 kB / 359.8 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002746/0.3009, allocations: 1.367 MB / 361.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002398/0.3034, allocations: 0.9067 MB / 362.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006219/0.304, allocations: 247.5 kB / 362.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002498/0.3065, allocations: 2.235 MB / 364.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.3081, allocations: 1.651 MB / 366.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008556/0.309, allocations: 0.8406 MB / 367.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.3104, allocations: 1.343 MB / 368.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002401/0.3107, allocations: 164 kB / 368.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.3118, allocations: 0.6631 MB / 369.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.3128, allocations: 1.192 MB / 370.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001195/0.314, allocations: 1.398 MB / 371.8 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004218/0.3182, allocations: 4.15 MB / 376 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3182, allocations: 0 / 376 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3183, allocations: 0 / 376 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.993e-05/0.3183, allocations: 0 / 376 MB, free: 0.7617 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.005305/0.3236, allocations: 2.961 MB / 379 MB, free: 13.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.782e-05/0.3237, allocations: 11.89 kB / 379 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00665/0.3304, allocations: 1.775 MB / 380.7 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001755/0.3321, allocations: 1.158 MB / 381.9 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.244e-05/0.3322, allocations: 155.8 kB / 382.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.3326, allocations: 203.8 kB / 382.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01741/0.35, allocations: 8.588 MB / 390.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.964e-05/0.3501, allocations: 43.66 kB / 390.9 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002813/0.3504, allocations: 99.88 kB / 391 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002727/0.3532, allocations: 1.671 MB / 392.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01759/0.3708, allocations: 7.175 MB / 399.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03461/0.4054, allocations: 30.19 MB / 430 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02248/0.4279, allocations: 5.044 MB / 435.1 MB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.4297, allocations: 1.247 MB / 436.3 MB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005448/0.4351, allocations: 3.734 MB / 440 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.4352, allocations: 50.83 kB / 440.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.749e-06/0.4352, allocations: 3.984 kB / 440.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.0479/0.4831, allocations: 9.259 MB / 449.4 MB, free: 5.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.4832, allocations: 192 kB / 449.5 MB, free: 5.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005456/0.4887, allocations: 3.047 MB / 452.6 MB, free: 2.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000228/0.489, allocations: 41.7 kB / 452.6 MB, free: 1.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.231/0.7199, allocations: 2.415 MB / 455 MB, free: 116.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008747/0.7208, allocations: 0.4956 MB / 455.5 MB, free: 116.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002192/0.723, allocations: 1.086 MB / 456.6 MB, free: 115.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.42e-05/0.7231, allocations: 301.7 kB / 456.9 MB, free: 115.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002475/0.7256, allocations: 1.606 MB / 458.5 MB, free: 115.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00385/0.7294, allocations: 5.168 MB / 463.7 MB, free: 109.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006231/0.7357, allocations: 7.316 MB / 471 MB, free: 103.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/0.7358, allocations: 35.28 kB / 471 MB, free: 103.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008938/0.7448, allocations: 6.453 MB / 477.5 MB, free: 99.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.078e-05/0.7449, allocations: 60 kB / 477.6 MB, free: 99.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001209/0.745, allocations: 128 kB / 477.7 MB, free: 99.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001213/0.7451, allocations: 164.8 kB / 477.8 MB, free: 99.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004268/0.7494, allocations: 1.458 MB / 479.3 MB, free: 97.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001346/0.7496, allocations: 259.8 kB / 479.6 MB, free: 97.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003611/0.7532, allocations: 0.7465 MB / 480.3 MB, free: 96.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004462/0.7536, allocations: 339.8 kB / 480.6 MB, free: 96.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 678 * 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.002097/0.7557, allocations: 1.565 MB / 482.2 MB, free: 95.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004483/0.7562, allocations: 260.7 kB / 482.5 MB, free: 94.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.7573, allocations: 0.8172 MB / 483.3 MB, free: 94.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/0.7573, allocations: 16 kB / 483.3 MB, free: 94.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.7573, allocations: 3.75 kB / 483.3 MB, free: 94.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.7573, allocations: 11.97 kB / 483.3 MB, free: 94.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004471/0.7618, allocations: 3.383 MB / 486.7 MB, free: 90.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.7618, allocations: 7.938 kB / 486.7 MB, free: 90.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002182/0.764, allocations: 404 kB / 487.1 MB, free: 90.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/0.7641, allocations: 4 kB / 487.1 MB, free: 90.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.751e-05/0.7642, allocations: 39.97 kB / 487.1 MB, free: 90.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.7642, allocations: 4 kB / 487.1 MB, free: 90.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.7642, allocations: 1.5 kB / 487.1 MB, free: 90.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/0.7666, allocations: 2.796 MB / 489.9 MB, free: 87.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004508/0.7671, allocations: 309 kB / 490.2 MB, free: 87.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.7673, allocations: 27.98 kB / 490.3 MB, free: 87.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008709/0.7682, allocations: 39.95 kB / 490.3 MB, free: 87.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.7683, allocations: 58.27 kB / 490.4 MB, free: 86.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-05/0.7684, allocations: 43.97 kB / 490.4 MB, free: 86.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001998/0.7704, allocations: 1.841 MB / 492.2 MB, free: 85.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7704, allocations: 0 / 492.2 MB, free: 85.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003818/0.7742, allocations: 0.8298 MB / 493.1 MB, free: 84.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * 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 (87): * Single equations (assignments): 84 * 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.0003222/0.7746, allocations: 164 kB / 493.2 MB, free: 84.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004811/0.7794, allocations: 3.79 MB / 497 MB, free: 80.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/0.7794, allocations: 7.938 kB / 497 MB, free: 80.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007379/0.7802, allocations: 0.7186 MB / 497.7 MB, free: 79.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.7819, allocations: 261.9 kB / 498 MB, free: 79.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.792, allocations: 8.447 MB / 0.4946 GB, free: 70.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001704/0.7938, allocations: 2.39 MB / 0.4969 GB, free: 68.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003452/0.7972, allocations: 1.637 MB / 0.4985 GB, free: 66.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.7976, allocations: 187.4 kB / 0.4987 GB, free: 66.65 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.7976, allocations: 7.938 kB / 0.4987 GB, free: 66.64 MB / 382.1 MB Notification: Performance of Templates: time 0.03602/0.8337, allocations: 21.39 MB / 0.5196 GB, free: 45.29 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)