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.001141/0.001141, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00126/0.00126, allocations: 193.4 kB / 16.14 MB, free: 6.707 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.403/1.403, allocations: 205.1 MB / 222 MB, free: 4.988 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.001224/0.001224, allocations: 44.41 kB / 278 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.219, allocations: 46.64 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02469/0.2437, allocations: 28.93 MB / 353.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01382/0.2576, allocations: 5.984 MB / 359.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005656/0.2633, allocations: 115.8 kB / 359.7 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002851/0.2663, allocations: 1.402 MB / 361.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002272/0.2686, allocations: 0.9301 MB / 362 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005943/0.2692, allocations: 235.6 kB / 362.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003595/0.2728, allocations: 3.296 MB / 365.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00186/0.2746, allocations: 1.547 MB / 367.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007251/0.2754, allocations: 0.7236 MB / 367.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001258/0.2766, allocations: 1.304 MB / 369.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002008/0.2769, allocations: 116 kB / 369.3 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001259/0.2781, allocations: 0.6474 MB / 369.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00094/0.2791, allocations: 1.145 MB / 371.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.2801, allocations: 1.347 MB / 372.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003435/0.2836, allocations: 4.084 MB / 376.5 MB, free: 324 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2836, allocations: 4 kB / 376.5 MB, free: 320 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2836, allocations: 0 / 376.5 MB, free: 320 kB / 302.1 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.2837, allocations: 0 / 376.5 MB, free: 320 kB / 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.00377/0.2874, allocations: 2.957 MB / 379.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.2875, allocations: 8.031 kB / 379.5 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006436/0.2939, allocations: 1.775 MB / 381.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.2959, allocations: 1.165 MB / 382.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.867e-05/0.296, allocations: 147.8 kB / 382.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003654/0.2964, allocations: 211.8 kB / 382.7 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01736/0.3137, allocations: 8.588 MB / 391.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.876e-05/0.3138, allocations: 39.59 kB / 391.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002627/0.3141, allocations: 103.9 kB / 391.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002576/0.3167, allocations: 1.675 MB / 393.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0198/0.3365, allocations: 7.159 MB / 400.3 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0329/0.3695, allocations: 30.19 MB / 430.5 MB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02396/0.3935, allocations: 5.048 MB / 435.5 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/0.3953, allocations: 1.244 MB / 436.8 MB, free: 2.199 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006695/0.402, allocations: 3.738 MB / 440.5 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.4021, allocations: 50.83 kB / 440.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.318e-06/0.4021, allocations: 0 / 440.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04514/0.4473, allocations: 9.262 MB / 449.8 MB, free: 4.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.4474, allocations: 195.9 kB / 450 MB, free: 4.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003612/0.451, allocations: 3.035 MB / 453.1 MB, free: 1.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.332e-05/0.4511, allocations: 41.7 kB / 453.1 MB, free: 1.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.164/0.6151, allocations: 2.42 MB / 455.5 MB, free: 116.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000749/0.6159, allocations: 0.4965 MB / 456 MB, free: 115.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001838/0.6178, allocations: 1.089 MB / 457.1 MB, free: 115.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.285e-05/0.6179, allocations: 301.7 kB / 457.4 MB, free: 115.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/0.62, allocations: 1.601 MB / 459 MB, free: 114.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00352/0.6235, allocations: 5.171 MB / 464.2 MB, free: 109.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005761/0.6293, allocations: 7.316 MB / 471.5 MB, free: 102.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.369e-05/0.6293, allocations: 39.62 kB / 471.5 MB, free: 102.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007279/0.6366, allocations: 6.44 MB / 478 MB, free: 99.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.83e-05/0.6367, allocations: 60 kB / 478 MB, free: 99.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.184e-05/0.6368, allocations: 128.9 kB / 478.2 MB, free: 99.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001029/0.6369, allocations: 164 kB / 478.3 MB, free: 98.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003817/0.6407, allocations: 1.458 MB / 479.8 MB, free: 97.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001171/0.6408, allocations: 253.1 kB / 480 MB, free: 97.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00303/0.6439, allocations: 0.75 MB / 480.8 MB, free: 96.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003662/0.6443, allocations: 347.5 kB / 481.1 MB, free: 96.36 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.002133/0.6464, allocations: 1.574 MB / 482.7 MB, free: 94.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004233/0.6468, allocations: 251.5 kB / 482.9 MB, free: 94.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.6479, allocations: 0.8288 MB / 483.8 MB, free: 93.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.879e-05/0.648, allocations: 23.56 kB / 483.8 MB, free: 93.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.648, allocations: 0 / 483.8 MB, free: 93.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.648, allocations: 7.984 kB / 483.8 MB, free: 93.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004572/0.6526, allocations: 3.381 MB / 487.2 MB, free: 90.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.6526, allocations: 4 kB / 487.2 MB, free: 90.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002092/0.6547, allocations: 407.5 kB / 487.6 MB, free: 89.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.358e-06/0.6547, allocations: 8 kB / 487.6 MB, free: 89.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.141e-05/0.6548, allocations: 35.97 kB / 487.6 MB, free: 89.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.6548, allocations: 4 kB / 487.6 MB, free: 89.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.6548, allocations: 0 / 487.6 MB, free: 89.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.6574, allocations: 2.788 MB / 490.4 MB, free: 87.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005214/0.6579, allocations: 309.5 kB / 490.7 MB, free: 86.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.6582, allocations: 31.98 kB / 490.7 MB, free: 86.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008266/0.659, allocations: 43.17 kB / 490.8 MB, free: 86.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.6591, allocations: 58.33 kB / 490.8 MB, free: 86.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-05/0.6592, allocations: 31.98 kB / 490.9 MB, free: 86.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002243/0.6615, allocations: 1.841 MB / 492.7 MB, free: 84.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6615, allocations: 4 kB / 492.7 MB, free: 84.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004064/0.6655, allocations: 0.8318 MB / 493.5 MB, free: 83.89 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.0003186/0.6659, allocations: 169.4 kB / 493.7 MB, free: 83.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004499/0.6704, allocations: 3.598 MB / 497.3 MB, free: 80.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.6704, allocations: 0 / 497.3 MB, free: 80.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006816/0.6711, allocations: 0.7162 MB / 498 MB, free: 79.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.6726, allocations: 255 kB / 498.3 MB, free: 79.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00889/0.6815, allocations: 8.434 MB / 0.4948 GB, free: 70.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/0.6832, allocations: 2.396 MB / 0.4972 GB, free: 68.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003217/0.6864, allocations: 1.641 MB / 0.4988 GB, free: 66.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00035/0.6868, allocations: 187.4 kB / 0.499 GB, free: 66.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.011e-06/0.6868, allocations: 0 / 0.499 GB, free: 66.48 MB / 382.1 MB Notification: Performance of Templates: time 0.03139/0.7182, allocations: 20.65 MB / 0.5191 GB, free: 45.88 MB / 382.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)