Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.000893/0.000893, 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.005156/0.005156, allocations: 170 kB / 16.26 MB, free: 6.613 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.488/1.488, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004787/0.0004787, allocations: 12.33 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2221, allocations: 47.58 MB / 327 MB, free: 1.613 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02712/0.2493, allocations: 28.08 MB / 355.1 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01647/0.2658, allocations: 5.926 MB / 361 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006098/0.2719, allocations: 115.7 kB / 361.2 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.2731, allocations: 294.6 kB / 361.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002739/0.2759, allocations: 0.9417 MB / 362.4 MB, free: 52 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008113/0.2767, allocations: 235.7 kB / 362.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004211/0.2809, allocations: 3.292 MB / 365.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004486/0.2854, allocations: 2.042 MB / 368 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.2878, allocations: 0.6689 MB / 368.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002532/0.2904, allocations: 1.214 MB / 369.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006699/0.2911, allocations: 88 kB / 369.9 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001934/0.293, allocations: 0.6239 MB / 370.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.2946, allocations: 1.106 MB / 371.6 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001833/0.2965, allocations: 1.321 MB / 373 MB, free: 5.387 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004674/0.3012, allocations: 4.007 MB / 377 MB, free: 1.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3012, allocations: 0 / 377 MB, free: 1.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.3012, allocations: 0 / 377 MB, free: 1.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.887e-05/0.3013, allocations: 0 / 377 MB, free: 1.367 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.003766/0.305, allocations: 2.407 MB / 379.4 MB, free: 14.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.3051, allocations: 8.031 kB / 379.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006724/0.3118, allocations: 1.822 MB / 381.2 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.3136, allocations: 1.158 MB / 382.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.3138, allocations: 151.8 kB / 382.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003664/0.3141, allocations: 211.8 kB / 382.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01806/0.3322, allocations: 8.608 MB / 391.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-05/0.3323, allocations: 39.59 kB / 391.4 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002736/0.3326, allocations: 103.9 kB / 391.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002902/0.3355, allocations: 1.671 MB / 393.1 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01797/0.3535, allocations: 7.183 MB / 400.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03733/0.3909, allocations: 30.21 MB / 430.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0218/0.4127, allocations: 5.111 MB / 435.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/0.4145, allocations: 1.247 MB / 436.9 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00553/0.4201, allocations: 3.749 MB / 440.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.4202, allocations: 42.89 kB / 440.7 MB, free: 15.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.028e-06/0.4202, allocations: 0 / 440.7 MB, free: 15.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04774/0.4679, allocations: 9.387 MB / 450.1 MB, free: 6.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000198/0.4682, allocations: 195.9 kB / 450.3 MB, free: 5.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004258/0.4724, allocations: 3.035 MB / 453.3 MB, free: 2.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.4726, allocations: 37.7 kB / 453.3 MB, free: 2.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001693/0.4743, allocations: 2.426 MB / 455.8 MB, free: 428 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2092/0.6835, allocations: 497.1 kB / 456.2 MB, free: 116.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/0.6848, allocations: 464.1 kB / 456.7 MB, free: 116.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.715e-05/0.6849, allocations: 301.6 kB / 457 MB, free: 115.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003106/0.688, allocations: 1.607 MB / 458.6 MB, free: 115.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003556/0.6916, allocations: 5.169 MB / 463.8 MB, free: 110.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006126/0.6977, allocations: 7.326 MB / 471.1 MB, free: 103.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.376e-05/0.6978, allocations: 39.62 kB / 471.1 MB, free: 103.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008514/0.7064, allocations: 6.437 MB / 477.6 MB, free: 100.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.007e-05/0.7065, allocations: 62.95 kB / 477.6 MB, free: 100.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/0.7066, allocations: 124 kB / 477.8 MB, free: 100.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/0.7068, allocations: 168 kB / 477.9 MB, free: 100.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004112/0.7109, allocations: 1.461 MB / 479.4 MB, free: 99.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001283/0.711, allocations: 251.3 kB / 479.6 MB, free: 99.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003702/0.7147, allocations: 0.7472 MB / 480.4 MB, free: 98.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005107/0.7153, allocations: 346.7 kB / 480.7 MB, free: 98.27 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.002183/0.7175, allocations: 1.574 MB / 482.3 MB, free: 96.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004121/0.7179, allocations: 246.8 kB / 482.5 MB, free: 96.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/0.719, allocations: 0.8288 MB / 483.4 MB, free: 95.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-05/0.719, allocations: 19.28 kB / 483.4 MB, free: 95.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.7191, allocations: 4 kB / 483.4 MB, free: 95.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.7191, allocations: 6.266 kB / 483.4 MB, free: 95.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004743/0.7238, allocations: 3.384 MB / 486.8 MB, free: 92.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.7239, allocations: 4 kB / 486.8 MB, free: 92.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002069/0.7259, allocations: 407.5 kB / 487.2 MB, free: 92.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.726, allocations: 4 kB / 487.2 MB, free: 92.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.84e-05/0.726, allocations: 41.05 kB / 487.2 MB, free: 92.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.7261, allocations: 4 kB / 487.2 MB, free: 92.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.7261, allocations: 0 / 487.2 MB, free: 92.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/0.7285, allocations: 2.793 MB / 490 MB, free: 89.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.729, allocations: 309.6 kB / 490.3 MB, free: 88.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.7292, allocations: 31.97 kB / 490.3 MB, free: 88.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008245/0.73, allocations: 39.97 kB / 490.4 MB, free: 88.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.7301, allocations: 64.62 kB / 490.4 MB, free: 88.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.769e-05/0.7302, allocations: 37.47 kB / 490.5 MB, free: 88.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002186/0.7324, allocations: 1.837 MB / 492.3 MB, free: 86.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7324, allocations: 0 / 492.3 MB, free: 86.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003531/0.7359, allocations: 0.8257 MB / 493.1 MB, free: 86.08 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.0003565/0.7363, allocations: 171.6 kB / 493.3 MB, free: 85.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005349/0.7417, allocations: 3.593 MB / 496.9 MB, free: 82.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.7417, allocations: 0 / 496.9 MB, free: 82.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007355/0.7424, allocations: 0.717 MB / 497.6 MB, free: 81.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.7445, allocations: 251.8 kB / 497.9 MB, free: 81.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.7546, allocations: 8.79 MB / 0.4948 GB, free: 72.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/0.7565, allocations: 2.399 MB / 0.4971 GB, free: 70.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003348/0.7598, allocations: 1.641 MB / 0.4987 GB, free: 68.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003857/0.7602, allocations: 197.2 kB / 0.4989 GB, free: 68.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7602, allocations: 0 / 0.4989 GB, free: 68.28 MB / 382.1 MB Notification: Performance of Templates: time 0.03411/0.7943, allocations: 20.48 MB / 0.5189 GB, free: 47.84 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)