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.007322/0.007323, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.0015/0.001499, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.473/1.473, allocations: 205.1 MB / 222.6 MB, free: 4.383 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.001158/0.001158, allocations: 45.41 kB / 326.5 MB, free: 14.61 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1053, allocations: 46.63 MB / 373.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009102/0.1145, allocations: 7.946 MB / 381.1 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00531/0.1198, allocations: 2.563 MB / 383.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009719/0.1208, allocations: 35.94 kB / 383.7 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002711/0.1236, allocations: 1.421 MB / 385.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002367/0.126, allocations: 1.015 MB / 386.2 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007283/0.1267, allocations: 263.4 kB / 386.4 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002714/0.1294, allocations: 2.188 MB / 388.6 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002164/0.1316, allocations: 1.552 MB / 390.2 MB, free: 340 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.1332, allocations: 0.8367 MB / 391 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002085/0.1353, allocations: 1.187 MB / 392.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006375/0.136, allocations: 160 kB / 392.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.1375, allocations: 0.6631 MB / 393 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.1392, allocations: 1.169 MB / 394.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003329/0.1426, allocations: 1.374 MB / 395.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004365/0.1469, allocations: 4.304 MB / 399.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.147, allocations: 0 / 399.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.147, allocations: 0 / 399.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.709e-05/0.1471, allocations: 0 / 399.9 MB, free: 6.605 MB / 334.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.004102/0.1512, allocations: 2.953 MB / 402.8 MB, free: 3.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.1512, allocations: 15.89 kB / 402.8 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006239/0.1575, allocations: 1.783 MB / 404.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.1595, allocations: 1.158 MB / 405.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.1597, allocations: 155.8 kB / 405.9 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004555/0.1601, allocations: 203.8 kB / 406.1 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01994/0.1801, allocations: 8.596 MB / 414.7 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002291/0.1804, allocations: 39.59 kB / 414.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001015/0.1814, allocations: 111.8 kB / 414.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002932/0.1844, allocations: 1.663 MB / 416.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01836/0.2027, allocations: 7.174 MB / 423.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2694/0.4721, allocations: 30.08 MB / 453.8 MB, free: 62.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02339/0.4956, allocations: 5.041 MB / 458.8 MB, free: 61.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.4973, allocations: 1.247 MB / 460.1 MB, free: 61.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006016/0.5033, allocations: 3.741 MB / 463.8 MB, free: 60.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/0.5034, allocations: 51.7 kB / 463.9 MB, free: 60.24 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.328e-06/0.5034, allocations: 2.953 kB / 463.9 MB, free: 60.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04126/0.5447, allocations: 9.257 MB / 473.1 MB, free: 58.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.5448, allocations: 197.5 kB / 473.3 MB, free: 58.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004172/0.549, allocations: 3.031 MB / 476.3 MB, free: 56.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.5491, allocations: 44.28 kB / 476.4 MB, free: 56.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.5504, allocations: 2.419 MB / 478.8 MB, free: 54.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004809/0.5509, allocations: 0.4926 MB / 479.3 MB, free: 54.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.5522, allocations: 1.094 MB / 480.4 MB, free: 53.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.034e-05/0.5523, allocations: 301.1 kB / 480.7 MB, free: 53.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001997/0.5543, allocations: 1.596 MB / 482.3 MB, free: 52.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002939/0.5572, allocations: 5.171 MB / 487.4 MB, free: 45.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005338/0.5626, allocations: 7.339 MB / 494.8 MB, free: 36.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.921e-05/0.5627, allocations: 36 kB / 494.8 MB, free: 36.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008712/0.5714, allocations: 6.434 MB / 0.4895 GB, free: 30.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.5716, allocations: 60 kB / 0.4896 GB, free: 30.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002243/0.5718, allocations: 129.3 kB / 0.4897 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001924/0.5721, allocations: 164 kB / 0.4898 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004788/0.5769, allocations: 1.458 MB / 0.4913 GB, free: 28.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001815/0.5771, allocations: 253.9 kB / 0.4915 GB, free: 28.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004715/0.5818, allocations: 0.7497 MB / 0.4922 GB, free: 27.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/0.5828, allocations: 344 kB / 0.4926 GB, free: 27.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.003584/0.5864, allocations: 1.58 MB / 0.4941 GB, free: 25.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006293/0.5871, allocations: 249.6 kB / 0.4944 GB, free: 25.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001365/0.5884, allocations: 0.8294 MB / 0.4952 GB, free: 24.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-05/0.5885, allocations: 16 kB / 0.4952 GB, free: 24.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/0.5885, allocations: 0 / 0.4952 GB, free: 24.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.5885, allocations: 11.92 kB / 0.4952 GB, free: 24.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006677/0.5952, allocations: 3.385 MB / 0.4985 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.5953, allocations: 4 kB / 0.4985 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002176/0.5974, allocations: 411.3 kB / 0.4989 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.725e-05/0.5975, allocations: 7.938 kB / 0.4989 GB, free: 20.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.5976, allocations: 39.97 kB / 0.4989 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.5976, allocations: 4 kB / 0.4989 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.5976, allocations: 0 / 0.4989 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.6002, allocations: 2.784 MB / 0.5017 GB, free: 17.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005892/0.6008, allocations: 309.6 kB / 0.502 GB, free: 17.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004096/0.6013, allocations: 35.92 kB / 0.502 GB, free: 17.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.6024, allocations: 35.95 kB / 0.502 GB, free: 17.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.6025, allocations: 59.86 kB / 0.5021 GB, free: 17.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.502e-05/0.6026, allocations: 31.98 kB / 0.5021 GB, free: 17.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002632/0.6052, allocations: 1.845 MB / 0.5039 GB, free: 15.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6052, allocations: 0 / 0.5039 GB, free: 15.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003751/0.609, allocations: 0.832 MB / 0.5047 GB, free: 14.75 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.0003686/0.6094, allocations: 165.5 kB / 0.5049 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004591/0.614, allocations: 3.611 MB / 0.5084 GB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.614, allocations: 4.062 kB / 0.5084 GB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007211/0.6147, allocations: 0.7186 MB / 0.5091 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.6164, allocations: 263.7 kB / 0.5094 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009911/0.6263, allocations: 7.054 MB / 0.5163 GB, free: 2.984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/0.6288, allocations: 2.391 MB / 0.5186 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003726/0.6325, allocations: 1.637 MB / 0.5202 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006092/0.6331, allocations: 191.3 kB / 0.5204 GB, free: 14.72 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6331, allocations: 0 / 0.5204 GB, free: 14.72 MB / 398.1 MB Notification: Performance of Templates: time 0.04203/0.6752, allocations: 18.79 MB / 0.5387 GB, free: 11.98 MB / 414.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)