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.006706/0.006706, allocations: 103.5 kB / 15.73 MB, free: 6.047 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.001519/0.001519, allocations: 196.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.484/1.484, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001246/0.001246, allocations: 50.64 kB / 326.5 MB, free: 14.5 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.09318, allocations: 46.63 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009655/0.1029, allocations: 7.958 MB / 381.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005208/0.1081, allocations: 2.56 MB / 383.7 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001287/0.1094, allocations: 39.88 kB / 383.7 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003097/0.1126, allocations: 1.421 MB / 385.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003355/0.116, allocations: 0.9762 MB / 386.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007827/0.1168, allocations: 271.4 kB / 386.4 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002967/0.1198, allocations: 2.185 MB / 388.6 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002007/0.1218, allocations: 1.548 MB / 390.1 MB, free: 396 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001284/0.1231, allocations: 0.8406 MB / 391 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.1248, allocations: 1.183 MB / 392.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004451/0.1252, allocations: 160 kB / 392.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.1265, allocations: 0.6631 MB / 393 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001245/0.1278, allocations: 1.169 MB / 394.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001829/0.1296, allocations: 1.374 MB / 395.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004247/0.1339, allocations: 4.3 MB / 399.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1339, allocations: 0 / 399.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1339, allocations: 4 kB / 399.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001375/0.1341, allocations: 0 / 399.8 MB, free: 6.66 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.005272/0.1393, allocations: 2.957 MB / 402.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1394, allocations: 11.89 kB / 402.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006895/0.1463, allocations: 1.787 MB / 404.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002461/0.1488, allocations: 1.158 MB / 405.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.1489, allocations: 155.8 kB / 405.9 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003553/0.1493, allocations: 207.7 kB / 406.1 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01718/0.1664, allocations: 8.592 MB / 414.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001183/0.1666, allocations: 39.59 kB / 414.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003745/0.167, allocations: 103.8 kB / 414.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002811/0.1698, allocations: 1.671 MB / 416.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01689/0.1867, allocations: 7.167 MB / 423.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2815/0.4682, allocations: 30.08 MB / 453.7 MB, free: 63.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03461/0.5029, allocations: 5.039 MB / 458.8 MB, free: 62.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002576/0.5055, allocations: 1.249 MB / 460 MB, free: 62.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007524/0.513, allocations: 3.741 MB / 463.8 MB, free: 61.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.5131, allocations: 48.27 kB / 463.8 MB, free: 61.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 5.089e-06/0.5131, allocations: 3.062 kB / 463.8 MB, free: 61.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.05782/0.571, allocations: 9.261 MB / 473.1 MB, free: 59.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.044e-05/0.5711, allocations: 201 kB / 473.3 MB, free: 58.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004685/0.5758, allocations: 3.03 MB / 476.3 MB, free: 57.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001536/0.576, allocations: 41.55 kB / 476.3 MB, free: 57.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.5773, allocations: 2.42 MB / 478.8 MB, free: 55.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005818/0.5779, allocations: 0.4961 MB / 479.3 MB, free: 54.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/0.5793, allocations: 1.084 MB / 480.3 MB, free: 53.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.69e-05/0.5793, allocations: 305 kB / 480.6 MB, free: 53.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001909/0.5813, allocations: 1.604 MB / 482.2 MB, free: 52.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003148/0.5844, allocations: 5.167 MB / 487.4 MB, free: 46.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005371/0.5898, allocations: 7.333 MB / 494.7 MB, free: 37.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001029/0.5899, allocations: 36 kB / 494.8 MB, free: 37.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008457/0.5984, allocations: 6.439 MB / 0.4895 GB, free: 30.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.5985, allocations: 60 kB / 0.4895 GB, free: 30.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/0.5986, allocations: 129.7 kB / 0.4897 GB, free: 30.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001467/0.5988, allocations: 168 kB / 0.4898 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004304/0.6031, allocations: 1.458 MB / 0.4912 GB, free: 29.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001472/0.6033, allocations: 251 kB / 0.4915 GB, free: 28.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00348/0.6067, allocations: 0.7441 MB / 0.4922 GB, free: 28.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000468/0.6072, allocations: 348 kB / 0.4925 GB, free: 27.68 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.002184/0.6094, allocations: 1.581 MB / 0.4941 GB, free: 26.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004641/0.6099, allocations: 248.8 kB / 0.4943 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001123/0.611, allocations: 0.8288 MB / 0.4951 GB, free: 25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-05/0.6111, allocations: 15.36 kB / 0.4951 GB, free: 24.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.6111, allocations: 4 kB / 0.4951 GB, free: 24.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.6111, allocations: 7.984 kB / 0.4952 GB, free: 24.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005849/0.6169, allocations: 3.394 MB / 0.4985 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.617, allocations: 0 / 0.4985 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002155/0.6192, allocations: 407.5 kB / 0.4989 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/0.6192, allocations: 4 kB / 0.4989 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.6193, allocations: 39.91 kB / 0.4989 GB, free: 21.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.704e-06/0.6193, allocations: 4 kB / 0.4989 GB, free: 21.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6193, allocations: 8 kB / 0.4989 GB, free: 21.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.6219, allocations: 2.773 MB / 0.5016 GB, free: 18.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006049/0.6225, allocations: 305.6 kB / 0.5019 GB, free: 17.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004076/0.6229, allocations: 39.92 kB / 0.5019 GB, free: 17.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.6239, allocations: 43.09 kB / 0.502 GB, free: 17.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.6241, allocations: 57.61 kB / 0.502 GB, free: 17.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.509e-05/0.6241, allocations: 31.98 kB / 0.5021 GB, free: 17.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002618/0.6268, allocations: 1.841 MB / 0.5039 GB, free: 15.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6268, allocations: 3.938 kB / 0.5039 GB, free: 15.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004578/0.6314, allocations: 0.832 MB / 0.5047 GB, free: 15.15 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.0003923/0.6318, allocations: 170.2 kB / 0.5049 GB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005597/0.6374, allocations: 3.613 MB / 0.5084 GB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/0.6374, allocations: 384 / 0.5084 GB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008116/0.6382, allocations: 0.7142 MB / 0.5091 GB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.6403, allocations: 267.3 kB / 0.5093 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.6506, allocations: 7.055 MB / 0.5162 GB, free: 3.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002389/0.6531, allocations: 2.391 MB / 0.5186 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003552/0.6566, allocations: 1.63 MB / 0.5201 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005877/0.6572, allocations: 195.3 kB / 0.5203 GB, free: 15.12 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6572, allocations: 0 / 0.5203 GB, free: 15.12 MB / 398.1 MB Notification: Performance of Templates: time 0.04184/0.6991, allocations: 18.33 MB / 0.5382 GB, free: 12.9 MB / 414.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)