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.001073/0.001073, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001273/0.001273, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005289/0.000529, allocations: 14.81 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3141, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.03068/0.3448, allocations: 24.75 MB / 351.2 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.3621, allocations: 5.914 MB / 357.1 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006255/0.3683, allocations: 111.8 kB / 357.2 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004592/0.373, allocations: 1.201 MB / 358.4 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01345/0.3865, allocations: 3.51 MB / 361.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.3883, allocations: 195.6 kB / 362.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00326/0.3916, allocations: 1.283 MB / 363.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003076/0.3947, allocations: 1.876 MB / 365.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009472/0.3956, allocations: 0.6033 MB / 365.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001089/0.3967, allocations: 0.8331 MB / 366.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.3969, allocations: 84 kB / 366.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.398, allocations: 0.5187 MB / 367.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00101/0.399, allocations: 1.013 MB / 368.3 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007351/0.3998, allocations: 0.5546 MB / 368.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003319/0.4031, allocations: 3.24 MB / 372.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.4031, allocations: 0 / 372.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4031, allocations: 0 / 372.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.044e-05/0.4032, allocations: 0 / 372.1 MB, free: 5.672 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.004271/0.4075, allocations: 2.446 MB / 374.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4075, allocations: 8.031 kB / 374.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007513/0.4151, allocations: 2.114 MB / 376.7 MB, free: 1.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002941/0.418, allocations: 1.141 MB / 377.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.4182, allocations: 147.8 kB / 378 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004547/0.4186, allocations: 207.8 kB / 378.2 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0195/0.4382, allocations: 8.659 MB / 386.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.4383, allocations: 39.69 kB / 386.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003449/0.4387, allocations: 103.9 kB / 387 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00295/0.4416, allocations: 1.659 MB / 388.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01913/0.4608, allocations: 7.237 MB / 395.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04437/0.5053, allocations: 30.22 MB / 426.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02149/0.5268, allocations: 5.114 MB / 431.2 MB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00626/0.5331, allocations: 3.765 MB / 435 MB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/0.5332, allocations: 46.83 kB / 435 MB, free: 4.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 4.388e-06/0.5332, allocations: 0 / 435 MB, free: 4.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.0441/0.5773, allocations: 9.645 MB / 444.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.5775, allocations: 203.8 kB / 444.9 MB, free: 10.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004619/0.5821, allocations: 3.019 MB / 447.9 MB, free: 7.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002515/0.5824, allocations: 41.7 kB / 447.9 MB, free: 7.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002003/0.5844, allocations: 2.422 MB / 450.4 MB, free: 5.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007412/0.5852, allocations: 0.4941 MB / 450.9 MB, free: 4.758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.5854, allocations: 104 kB / 451 MB, free: 4.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003867/0.5858, allocations: 0.5372 MB / 451.5 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002577/0.5884, allocations: 1.58 MB / 453.1 MB, free: 2.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2274/0.8158, allocations: 5.119 MB / 458.2 MB, free: 109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005544/0.8214, allocations: 2.805 MB / 461 MB, free: 108.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001423/0.8216, allocations: 35.94 kB / 461 MB, free: 108.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01053/0.8321, allocations: 6.389 MB / 467.4 MB, free: 106.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.307e-05/0.8322, allocations: 60.53 kB / 467.5 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.8324, allocations: 126.7 kB / 467.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.8325, allocations: 188.9 kB / 467.8 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004431/0.8369, allocations: 1.456 MB / 469.2 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001685/0.8371, allocations: 253.4 kB / 469.5 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003955/0.8411, allocations: 0.747 MB / 470.2 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006141/0.8417, allocations: 341.9 kB / 470.6 MB, free: 105.6 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.00258/0.8443, allocations: 1.576 MB / 472.1 MB, free: 104.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005734/0.8449, allocations: 257.6 kB / 472.4 MB, free: 104.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.8461, allocations: 0.8303 MB / 473.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/0.8462, allocations: 12.38 kB / 473.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.8462, allocations: 11.75 kB / 473.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.8462, allocations: 3.797 kB / 473.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005554/0.8518, allocations: 3.376 MB / 476.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.8518, allocations: 7.406 kB / 476.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/0.854, allocations: 415.2 kB / 477 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/0.854, allocations: 4 kB / 477 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.357e-05/0.8541, allocations: 39.72 kB / 477.1 MB, free: 101.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.8541, allocations: 4 kB / 477.1 MB, free: 101 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.8541, allocations: 3.938 kB / 477.1 MB, free: 101 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00264/0.8568, allocations: 2.884 MB / 480 MB, free: 98.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007475/0.8575, allocations: 309.6 kB / 480.3 MB, free: 97.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.8578, allocations: 29.31 kB / 480.3 MB, free: 97.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000847/0.8587, allocations: 43.91 kB / 480.4 MB, free: 97.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.8588, allocations: 51.92 kB / 480.4 MB, free: 97.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/0.8589, allocations: 40.98 kB / 480.4 MB, free: 97.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00237/0.8612, allocations: 1.825 MB / 482.3 MB, free: 95.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.8612, allocations: 0 / 482.3 MB, free: 95.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004582/0.8658, allocations: 0.837 MB / 483.1 MB, free: 95.07 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.0003879/0.8662, allocations: 164.6 kB / 483.3 MB, free: 94.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005232/0.8715, allocations: 3.579 MB / 486.8 MB, free: 91.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.8715, allocations: 0 / 486.8 MB, free: 91.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007627/0.8723, allocations: 0.7116 MB / 487.6 MB, free: 90.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.8737, allocations: 240.1 kB / 487.8 MB, free: 90.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/0.8857, allocations: 8.448 MB / 496.2 MB, free: 81.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001905/0.8877, allocations: 2.453 MB / 498.7 MB, free: 79.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003562/0.8913, allocations: 1.649 MB / 0.4886 GB, free: 77.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.8917, allocations: 187.4 kB / 0.4888 GB, free: 77.6 MB / 382.1 MB Notification: Performance of SimCode: time 1.552e-06/0.8917, allocations: 3.938 kB / 0.4888 GB, free: 77.59 MB / 382.1 MB Notification: Performance of Templates: time 0.03682/0.9285, allocations: 20.11 MB / 0.5084 GB, free: 57.52 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: