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.0008924/0.0008923, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005006/0.005006, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.45/1.45, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004405/0.0004405, allocations: 16 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2752, allocations: 47.58 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02894/0.3042, allocations: 28.08 MB / 355.1 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01615/0.3204, allocations: 5.926 MB / 361 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008957/0.3294, allocations: 119.7 kB / 361.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.3312, allocations: 298.5 kB / 361.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003981/0.3352, allocations: 0.9379 MB / 362.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.3365, allocations: 235.7 kB / 362.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005432/0.342, allocations: 3.288 MB / 365.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004148/0.3462, allocations: 2.049 MB / 368 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001644/0.3479, allocations: 0.6611 MB / 368.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002343/0.3502, allocations: 1.218 MB / 369.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006053/0.3509, allocations: 84 kB / 369.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.3524, allocations: 0.62 MB / 370.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.3536, allocations: 1.114 MB / 371.6 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.3551, allocations: 1.317 MB / 373 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004641/0.3597, allocations: 4.006 MB / 377 MB, free: 1.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.067e-05/0.3598, allocations: 0 / 377 MB, free: 1.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.598e-06/0.3598, allocations: 0 / 377 MB, free: 1.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001509/0.36, allocations: 0 / 377 MB, free: 1.223 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.004378/0.3644, allocations: 2.403 MB / 379.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.3644, allocations: 12.02 kB / 379.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007067/0.3715, allocations: 1.818 MB / 381.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.374, allocations: 1.154 MB / 382.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.3741, allocations: 155.8 kB / 382.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004092/0.3745, allocations: 211.8 kB / 382.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02472/0.3993, allocations: 8.604 MB / 391.3 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001198/0.3994, allocations: 43.59 kB / 391.4 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003162/0.3998, allocations: 99.88 kB / 391.5 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003086/0.4029, allocations: 1.675 MB / 393.1 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01929/0.4222, allocations: 7.179 MB / 400.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03818/0.4604, allocations: 30.21 MB / 430.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02394/0.4844, allocations: 5.118 MB / 435.6 MB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.4864, allocations: 1.244 MB / 436.9 MB, free: 3.492 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006213/0.4927, allocations: 3.753 MB / 440.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.484e-05/0.4927, allocations: 46.83 kB / 440.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.528e-06/0.4927, allocations: 0 / 440.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04883/0.5416, allocations: 9.383 MB / 450.1 MB, free: 6.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001855/0.5418, allocations: 200.9 kB / 450.3 MB, free: 5.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/0.5466, allocations: 3.035 MB / 453.3 MB, free: 2.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002027/0.5468, allocations: 37.7 kB / 453.3 MB, free: 2.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00183/0.5486, allocations: 2.426 MB / 455.8 MB, free: 268 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1995/0.7481, allocations: 491.6 kB / 456.2 MB, free: 115.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001433/0.7496, allocations: 464.7 kB / 456.7 MB, free: 115.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.098e-05/0.7497, allocations: 301.7 kB / 457 MB, free: 115.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003463/0.7532, allocations: 1.61 MB / 458.6 MB, free: 114.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004928/0.7581, allocations: 5.166 MB / 463.8 MB, free: 109.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00702/0.7652, allocations: 7.328 MB / 471.1 MB, free: 103 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001584/0.7654, allocations: 38.12 kB / 471.1 MB, free: 103 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01061/0.776, allocations: 6.442 MB / 477.6 MB, free: 100.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.738e-05/0.7761, allocations: 64.03 kB / 477.6 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/0.7763, allocations: 128 kB / 477.8 MB, free: 99.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001352/0.7765, allocations: 164 kB / 477.9 MB, free: 99.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004801/0.7813, allocations: 1.459 MB / 479.4 MB, free: 98.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002171/0.7815, allocations: 251.4 kB / 479.6 MB, free: 98.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004191/0.7857, allocations: 0.7435 MB / 480.4 MB, free: 97.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007208/0.7865, allocations: 344.1 kB / 480.7 MB, free: 97.38 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.002255/0.7887, allocations: 1.577 MB / 482.3 MB, free: 95.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004211/0.7892, allocations: 254.7 kB / 482.5 MB, free: 95.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.7903, allocations: 0.8215 MB / 483.4 MB, free: 95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.718e-05/0.7904, allocations: 20.84 kB / 483.4 MB, free: 94.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.7904, allocations: 0 / 483.4 MB, free: 94.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.7904, allocations: 7.984 kB / 483.4 MB, free: 94.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005247/0.7957, allocations: 3.391 MB / 486.8 MB, free: 91.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.7957, allocations: 0 / 486.8 MB, free: 91.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002177/0.7979, allocations: 407.5 kB / 487.2 MB, free: 91.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.37e-05/0.798, allocations: 8 kB / 487.2 MB, free: 91.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.702e-05/0.7981, allocations: 32.52 kB / 487.2 MB, free: 91.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.7981, allocations: 7.938 kB / 487.2 MB, free: 91.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.7981, allocations: 8 kB / 487.2 MB, free: 91.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/0.8006, allocations: 2.785 MB / 490 MB, free: 88.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005764/0.8012, allocations: 305.6 kB / 490.3 MB, free: 87.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.8014, allocations: 36.61 kB / 490.3 MB, free: 87.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008565/0.8023, allocations: 36.89 kB / 490.4 MB, free: 87.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.8024, allocations: 55.92 kB / 490.4 MB, free: 87.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.859e-05/0.8025, allocations: 36.91 kB / 490.5 MB, free: 87.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002213/0.8047, allocations: 1.841 MB / 492.3 MB, free: 85.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8047, allocations: 0 / 492.3 MB, free: 85.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003932/0.8087, allocations: 0.8282 MB / 493.1 MB, free: 85.13 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.000374/0.8091, allocations: 173.9 kB / 493.3 MB, free: 84.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005474/0.8146, allocations: 3.594 MB / 496.9 MB, free: 81.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/0.8146, allocations: 2.234 kB / 496.9 MB, free: 81.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007225/0.8153, allocations: 0.7161 MB / 497.6 MB, free: 80.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/0.8177, allocations: 254 kB / 497.9 MB, free: 80.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.8296, allocations: 8.782 MB / 0.4948 GB, free: 71.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/0.8321, allocations: 2.392 MB / 0.4971 GB, free: 69.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003894/0.836, allocations: 1.645 MB / 0.4987 GB, free: 67.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005916/0.8367, allocations: 191.4 kB / 0.4989 GB, free: 67.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8367, allocations: 0 / 0.4989 GB, free: 67.34 MB / 382.1 MB Notification: Performance of Templates: time 0.03834/0.875, allocations: 20.49 MB / 0.5189 GB, free: 46.89 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)