Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.00081/0.00081, allocations: 88.39 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.001146/0.001146, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.41/1.41, allocations: 205.4 MB / 223.4 MB, free: 5.5 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.0004832/0.0004832, allocations: 15.98 kB / 280.1 MB, free: 12.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.233, allocations: 47.59 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02465/0.2577, allocations: 26.16 MB / 353.9 MB, free: 9.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.2704, allocations: 5.67 MB / 359.6 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00389/0.2743, allocations: 111.8 kB / 359.7 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003777/0.2781, allocations: 1.33 MB / 361 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.2885, allocations: 3.797 MB / 364.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.29, allocations: 223.6 kB / 365 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003569/0.2936, allocations: 2.586 MB / 367.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003234/0.2968, allocations: 1.884 MB / 369.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00164/0.2985, allocations: 0.7315 MB / 370.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002039/0.3005, allocations: 1.203 MB / 371.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004811/0.301, allocations: 88 kB / 371.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.3025, allocations: 0.5305 MB / 372 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.304, allocations: 1.083 MB / 373.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008552/0.3049, allocations: 0.5546 MB / 373.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003509/0.3084, allocations: 3.251 MB / 376.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3084, allocations: 0 / 376.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3084, allocations: 0 / 376.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.458e-05/0.3085, allocations: 0 / 376.9 MB, free: 2.156 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.003552/0.3121, allocations: 2.442 MB / 379.4 MB, free: 15.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3121, allocations: 8.031 kB / 379.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006147/0.3183, allocations: 1.817 MB / 381.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.3201, allocations: 1.138 MB / 382.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.98e-05/0.3202, allocations: 155.8 kB / 382.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003225/0.3205, allocations: 207.8 kB / 382.7 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01629/0.3368, allocations: 8.604 MB / 391.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.254e-05/0.337, allocations: 43.67 kB / 391.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000259/0.3372, allocations: 99.89 kB / 391.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002696/0.3399, allocations: 1.659 MB / 393.1 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0167/0.3566, allocations: 7.159 MB / 400.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03379/0.3905, allocations: 30.18 MB / 430.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02033/0.4108, allocations: 5.119 MB / 435.5 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001842/0.4127, allocations: 1.236 MB / 436.8 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005385/0.4181, allocations: 3.742 MB / 440.5 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/0.4182, allocations: 42.89 kB / 440.6 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 4.849e-06/0.4182, allocations: 3.984 kB / 440.6 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04121/0.4594, allocations: 9.391 MB / 450 MB, free: 7.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.4596, allocations: 191.9 kB / 450.1 MB, free: 6.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003839/0.4634, allocations: 3.023 MB / 453.2 MB, free: 3.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.4635, allocations: 42.73 kB / 453.2 MB, free: 3.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.4651, allocations: 2.422 MB / 455.6 MB, free: 1.289 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004302/0.4656, allocations: 0.4902 MB / 456.1 MB, free: 0.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.4658, allocations: 108 kB / 456.2 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003361/0.4661, allocations: 0.5372 MB / 456.8 MB, free: 148 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1726/0.6387, allocations: 1.577 MB / 458.3 MB, free: 114.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004458/0.6433, allocations: 5.146 MB / 463.5 MB, free: 109.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003784/0.6471, allocations: 2.798 MB / 466.3 MB, free: 108.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.747e-05/0.6472, allocations: 43.41 kB / 466.3 MB, free: 108.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008544/0.6557, allocations: 6.387 MB / 472.7 MB, free: 106.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.353e-05/0.6558, allocations: 61.66 kB / 472.8 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/0.656, allocations: 126.2 kB / 472.9 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001761/0.6561, allocations: 186.8 kB / 473.1 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004159/0.6603, allocations: 1.461 MB / 474.5 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001468/0.6605, allocations: 245.1 kB / 474.8 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003243/0.6637, allocations: 0.7517 MB / 475.5 MB, free: 104.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004313/0.6642, allocations: 344.6 kB / 475.9 MB, free: 104.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001944/0.6661, allocations: 1.571 MB / 477.4 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003467/0.6665, allocations: 255.4 kB / 477.7 MB, free: 102.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.6676, allocations: 0.8335 MB / 478.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.278e-05/0.6676, allocations: 12.7 kB / 478.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.6676, allocations: 7.953 kB / 478.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.6676, allocations: 3.375 kB / 478.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004528/0.6722, allocations: 3.38 MB / 481.9 MB, free: 98.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.6722, allocations: 4 kB / 481.9 MB, free: 98.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001948/0.6741, allocations: 411.4 kB / 482.3 MB, free: 98.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.6742, allocations: 4 kB / 482.3 MB, free: 98.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-05/0.6742, allocations: 35.97 kB / 482.4 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.6743, allocations: 4 kB / 482.4 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6743, allocations: 0 / 482.4 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.6767, allocations: 2.785 MB / 485.2 MB, free: 95.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000485/0.6772, allocations: 309.6 kB / 485.5 MB, free: 95.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.6774, allocations: 41.12 kB / 485.5 MB, free: 95.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007933/0.6782, allocations: 35.41 kB / 485.5 MB, free: 95.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.546e-05/0.6783, allocations: 64.45 kB / 485.6 MB, free: 94.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.157e-05/0.6784, allocations: 37.31 kB / 485.6 MB, free: 94.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002273/0.6807, allocations: 1.825 MB / 487.5 MB, free: 93.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6807, allocations: 0 / 487.5 MB, free: 93.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003691/0.6844, allocations: 0.8308 MB / 488.3 MB, free: 92.27 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 (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.0003086/0.6847, allocations: 173.1 kB / 488.5 MB, free: 92.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004681/0.6894, allocations: 3.572 MB / 492 MB, free: 88.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.6894, allocations: 4 kB / 492 MB, free: 88.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007198/0.6902, allocations: 0.7101 MB / 492.7 MB, free: 87.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.6918, allocations: 257.7 kB / 493 MB, free: 87.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009315/0.7012, allocations: 8.488 MB / 0.4897 GB, free: 79.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001665/0.7029, allocations: 2.387 MB / 0.4921 GB, free: 76.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003311/0.7062, allocations: 1.649 MB / 0.4937 GB, free: 74.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003574/0.7065, allocations: 187.4 kB / 0.4939 GB, free: 74.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.7066, allocations: 0 / 0.4939 GB, free: 74.8 MB / 382.1 MB Notification: Performance of Templates: time 0.03385/0.7404, allocations: 20.12 MB / 0.5135 GB, free: 54.72 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)