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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00108/0.00108, allocations: 190.2 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.088/1.088, allocations: 194.2 MB / 202.8 MB, free: 8.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00172/0.00172, allocations: 116.9 kB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.675e-06/7.695e-06, allocations: 4 kB / 297.6 MB, free: 7.926 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07181/0.07183, allocations: 44.48 MB / 342.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2072/0.279, allocations: 79.92 MB / 422 MB, free: 15.23 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.2793, allocations: 86.16 kB / 422.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1327/0.412, allocations: 49.41 MB / 471.5 MB, free: 5.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001158/0.4122, allocations: 48 kB / 471.5 MB, free: 5.117 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.006133/0.4183, allocations: 2.406 MB / 473.9 MB, free: 2.656 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.4184, allocations: 8.031 kB / 473.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008057/0.4265, allocations: 1.451 MB / 475.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003689/0.4302, allocations: 1.376 MB / 476.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.4303, allocations: 96 kB / 476.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00117/0.4315, allocations: 175.9 kB / 477 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007551/0.4391, allocations: 4.122 MB / 481.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/0.4513, allocations: 6.79 MB / 487.9 MB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001704/0.4515, allocations: 55.52 kB / 488 MB, free: 3.629 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006892/0.4522, allocations: 27.94 kB / 488 MB, free: 3.602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001012/0.4532, allocations: 0.7973 MB / 488.8 MB, free: 2.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1336/0.5868, allocations: 34.69 MB / 0.5112 GB, free: 139.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001812/0.5886, allocations: 1.633 MB / 0.5128 GB, free: 138.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006611/0.5893, allocations: 0.6656 MB / 0.5135 GB, free: 138.8 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.501e-05/0.5894, allocations: 20.7 kB / 0.5135 GB, free: 138.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.5894, allocations: 49.38 kB / 0.5135 GB, free: 138.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=112): time 3.517e-06/0.5894, allocations: 0 / 0.5135 GB, free: 138.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=112): time 0.009396/0.5988, allocations: 3.141 MB / 0.5166 GB, free: 138.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.5989, allocations: 215.2 kB / 0.5168 GB, free: 138.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/0.6017, allocations: 2.398 MB / 0.5192 GB, free: 138.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.984e-05/0.6018, allocations: 25.7 kB / 0.5192 GB, free: 138.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008892/0.6027, allocations: 2.377 MB / 0.5215 GB, free: 137 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002962/0.603, allocations: 0.4915 MB / 0.522 GB, free: 136.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.6032, allocations: 0 / 0.522 GB, free: 136.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002563/0.6035, allocations: 0.5777 MB / 0.5225 GB, free: 136.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/0.6051, allocations: 1.397 MB / 0.5239 GB, free: 136.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002824/0.6079, allocations: 5.017 MB / 0.5288 GB, free: 131.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005292/0.6133, allocations: 3.398 MB / 0.5321 GB, free: 131.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.462e-05/0.6133, allocations: 35.72 kB / 0.5322 GB, free: 131.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.009855/0.6232, allocations: 6.157 MB / 0.5382 GB, free: 131.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.6232, allocations: 11.56 kB / 0.5382 GB, free: 131.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-05/0.6233, allocations: 132.2 kB / 0.5383 GB, free: 131.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001456/0.6235, allocations: 190.8 kB / 0.5385 GB, free: 131.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003997/0.6275, allocations: 1.399 MB / 0.5399 GB, free: 130.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001778/0.6277, allocations: 253 kB / 0.5401 GB, free: 130.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003635/0.6313, allocations: 0.6094 MB / 0.5407 GB, free: 130.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005462/0.6319, allocations: 373.6 kB / 0.5411 GB, free: 130.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 27 (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.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (698): * Single equations (assignments): 695 * 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.0005798/0.6325, allocations: 429.7 kB / 0.5415 GB, free: 130.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004704/0.6329, allocations: 233.9 kB / 0.5417 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.6352, allocations: 0.9837 MB / 0.5426 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.394e-05/0.6353, allocations: 10.06 kB / 0.5427 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.6353, allocations: 2.219 kB / 0.5427 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.6353, allocations: 9.5 kB / 0.5427 GB, free: 130 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004559/0.6399, allocations: 2.527 MB / 0.5451 GB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.6399, allocations: 2.219 kB / 0.5451 GB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.6413, allocations: 269.3 kB / 0.5454 GB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002835/0.6416, allocations: 72.53 kB / 0.5455 GB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.848e-05/0.6417, allocations: 32.72 kB / 0.5455 GB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003429/0.6452, allocations: 2.997 MB / 0.5484 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.6452, allocations: 3.062 kB / 0.5484 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004734/0.6499, allocations: 3.273 MB / 0.5516 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004097/0.6504, allocations: 282.8 kB / 0.5519 GB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000297/0.6507, allocations: 19.36 kB / 0.5519 GB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008147/0.6515, allocations: 23.81 kB / 0.5519 GB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.6516, allocations: 54.02 kB / 0.552 GB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-05/0.6517, allocations: 55.59 kB / 0.552 GB, free: 125.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00196/0.6537, allocations: 1.556 MB / 0.5536 GB, free: 125.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004097/0.6578, allocations: 0.7249 MB / 0.5543 GB, free: 125.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (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],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003726/0.6581, allocations: 164.7 kB / 0.5544 GB, free: 125 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00385/0.662, allocations: 3.198 MB / 0.5575 GB, free: 124 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.662, allocations: 0.8125 kB / 0.5575 GB, free: 124 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009494/0.663, allocations: 0.8316 MB / 0.5584 GB, free: 123.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009199/0.6639, allocations: 182.9 kB / 0.5585 GB, free: 123.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008918/0.6728, allocations: 6.042 MB / 0.5644 GB, free: 121 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002527/0.6754, allocations: 2.653 MB / 0.567 GB, free: 119.9 MB / 394.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6754, allocations: 0 / 0.567 GB, free: 119.9 MB / 394.7 MB Notification: Performance of Templates: time 0.04091/0.7163, allocations: 21.79 MB / 0.5883 GB, free: 106.7 MB / 394.7 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)