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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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") [: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.1+maint.om/package.mo): time 0.001061/0.001061, allocations: 180.3 kB / 7.452 MB, free: 1.559 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.436/1.436, allocations: 170.6 MB / 178.4 MB, free: 4.004 MB / 146.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001993/0.001993, allocations: 111.9 kB / 217.7 MB, free: 12.74 MB / 194.8 MB Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.763e-06, allocations: 0 / 261.8 MB, free: 17.12 MB / 194.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09459, allocations: 38.75 MB / 300.5 MB, free: 10.31 MB / 226.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2762/0.3709, allocations: 74.63 MB / 375.1 MB, free: 9.84 MB / 274.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.3712, allocations: 77.45 kB / 375.2 MB, free: 9.801 MB / 274.8 MB Notification: Performance of FrontEnd: time 0.1286/0.4998, allocations: 49.42 MB / 424.6 MB, free: 14.05 MB / 322.8 MB Notification: Performance of Transformations before backend: time 0.0001172/0.4999, allocations: 48 kB / 424.7 MB, free: 14 MB / 322.8 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.004575/0.5045, allocations: 2.4 MB / 427.1 MB, free: 11.55 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.5046, allocations: 12.03 kB / 427.1 MB, free: 11.54 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006808/0.5114, allocations: 1.451 MB / 428.5 MB, free: 10.08 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003166/0.5146, allocations: 1.384 MB / 429.9 MB, free: 8.656 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.5147, allocations: 96 kB / 430 MB, free: 8.562 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004884/0.5152, allocations: 175.9 kB / 430.2 MB, free: 8.391 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006765/0.522, allocations: 4.122 MB / 434.3 MB, free: 4.262 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01097/0.533, allocations: 6.789 MB / 441.1 MB, free: 12.57 MB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001275/0.5332, allocations: 59.45 kB / 441.2 MB, free: 12.52 MB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003673/0.5335, allocations: 24 kB / 441.2 MB, free: 12.49 MB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009893/0.5345, allocations: 0.7973 MB / 442 MB, free: 11.69 MB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1994/0.734, allocations: 34.68 MB / 476.7 MB, free: 113 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002/0.736, allocations: 1.635 MB / 478.3 MB, free: 112.3 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/0.7368, allocations: 0.6663 MB / 479 MB, free: 112.2 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.7368, allocations: 16.05 kB / 479 MB, free: 112.2 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.7369, allocations: 51.62 kB / 479 MB, free: 112.2 MB / 354.8 MB Notification: Performance of pre-optimization done (n=112): time 4.177e-06/0.7369, allocations: 5 kB / 479 MB, free: 112.2 MB / 354.8 MB Notification: Performance of matching and sorting (n=112): time 0.009292/0.7462, allocations: 3.137 MB / 482.2 MB, free: 112.1 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.818e-05/0.7463, allocations: 217.8 kB / 482.4 MB, free: 111.8 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003923/0.7502, allocations: 2.399 MB / 484.8 MB, free: 111.6 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 8.056e-05/0.7503, allocations: 25.7 kB / 484.8 MB, free: 111.6 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001233/0.7516, allocations: 2.378 MB / 487.2 MB, free: 110.3 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004032/0.752, allocations: 0.4889 MB / 487.7 MB, free: 110 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.7521, allocations: 0 / 487.7 MB, free: 110 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0003202/0.7525, allocations: 0.5754 MB / 488.3 MB, free: 109.7 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/0.7543, allocations: 1.395 MB / 489.6 MB, free: 109.7 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004694/0.759, allocations: 5.014 MB / 494.7 MB, free: 104.9 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006155/0.7652, allocations: 3.391 MB / 498.1 MB, free: 104.9 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.397e-05/0.7653, allocations: 38.25 kB / 498.1 MB, free: 104.9 MB / 354.8 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01207/0.7774, allocations: 6.167 MB / 0.4924 GB, free: 104.3 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.7774, allocations: 7.688 kB / 0.4924 GB, free: 104.3 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/0.7776, allocations: 129.1 kB / 0.4926 GB, free: 104.3 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.7778, allocations: 190.3 kB / 0.4928 GB, free: 104.3 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003972/0.7817, allocations: 1.399 MB / 0.4941 GB, free: 104.2 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001539/0.7819, allocations: 265.9 kB / 0.4944 GB, free: 104.1 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004335/0.7863, allocations: 0.6062 MB / 0.495 GB, free: 103.8 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00075/0.787, allocations: 368 kB / 0.4953 GB, free: 103.8 MB / 354.8 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.0009469/0.788, allocations: 429.8 kB / 0.4957 GB, free: 103.4 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006435/0.7886, allocations: 228.3 kB / 0.4959 GB, free: 103.3 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.7911, allocations: 0.982 MB / 0.4969 GB, free: 103.2 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-05/0.7911, allocations: 14.72 kB / 0.4969 GB, free: 103.2 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/0.7911, allocations: 4.812 kB / 0.4969 GB, free: 103.2 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.7912, allocations: 13.17 kB / 0.4969 GB, free: 103.2 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004829/0.796, allocations: 2.52 MB / 0.4994 GB, free: 102.8 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.796, allocations: 1.531 kB / 0.4994 GB, free: 102.8 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.7974, allocations: 275.6 kB / 0.4997 GB, free: 102.8 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003008/0.7977, allocations: 71.44 kB / 0.4997 GB, free: 102.8 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.262e-05/0.7978, allocations: 29.73 kB / 0.4998 GB, free: 102.8 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003579/0.8014, allocations: 2.991 MB / 0.5027 GB, free: 100.4 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.8015, allocations: 3.094 kB / 0.5027 GB, free: 100.4 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005519/0.807, allocations: 3.274 MB / 0.5059 GB, free: 98.91 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006488/0.8077, allocations: 286.5 kB / 0.5061 GB, free: 98.68 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003217/0.808, allocations: 19.31 kB / 0.5062 GB, free: 98.67 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007801/0.8088, allocations: 13.25 kB / 0.5062 GB, free: 98.67 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.8089, allocations: 57.22 kB / 0.5062 GB, free: 98.66 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.809, allocations: 51.38 kB / 0.5063 GB, free: 98.66 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.002694/0.8118, allocations: 1.559 MB / 0.5078 GB, free: 97.55 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.005021/0.8168, allocations: 0.7278 MB / 0.5085 GB, free: 96.84 MB / 354.8 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.0006257/0.8174, allocations: 169.1 kB / 0.5087 GB, free: 96.68 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.005875/0.8233, allocations: 3.196 MB / 0.5118 GB, free: 93.79 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.8234, allocations: 4 kB / 0.5118 GB, free: 93.78 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.8245, allocations: 0.8284 MB / 0.5126 GB, free: 93 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.8259, allocations: 191.9 kB / 0.5128 GB, free: 92.82 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.8364, allocations: 6.041 MB / 0.5187 GB, free: 87.54 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002714/0.8392, allocations: 2.65 MB / 0.5213 GB, free: 85.41 MB / 354.8 MB Notification: Performance of SimCode: time 1.613e-06/0.8392, allocations: 0 / 0.5213 GB, free: 85.41 MB / 354.8 MB Notification: Performance of Templates: time 0.04542/0.8847, allocations: 21.79 MB / 0.5426 GB, free: 67.71 MB / 354.8 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)