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/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.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") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.6709/0.6709, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001853/0.001853, allocations: 160 kB / 143.7 MB, free: 4.887 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.534e-06, allocations: 4 kB / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04131/0.04133, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1282/0.1695, allocations: 40.77 MB / 239.4 MB, free: 4.609 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000166/0.1698, allocations: 73.67 kB / 239.5 MB, free: 4.609 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.4293/0.599, allocations: 123 MB / 362.4 MB, free: 54.43 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002407/0.5993, allocations: 78.72 kB / 362.5 MB, free: 54.42 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1569 * Number of variables: 1569 Notification: Performance of Generate backend data structure: time 0.02182/0.6212, allocations: 5.026 MB / 367.5 MB, free: 50.77 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.6212, allocations: 8.031 kB / 367.6 MB, free: 50.76 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.103/0.7243, allocations: 17.51 MB / 385.1 MB, free: 33.22 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008243/0.7325, allocations: 3.027 MB / 388.1 MB, free: 30.15 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/0.7328, allocations: 144 kB / 388.2 MB, free: 30.01 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003032/0.7359, allocations: 255.9 kB / 388.5 MB, free: 29.76 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02028/0.7562, allocations: 12.85 MB / 401.3 MB, free: 16.9 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02914/0.7853, allocations: 14.26 MB / 415.6 MB, free: 2.086 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003839/0.7858, allocations: 35.72 kB / 415.6 MB, free: 2.051 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003626/0.7894, allocations: 16 kB / 415.6 MB, free: 2.035 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1067/0.8962, allocations: 7.004 MB / 422.6 MB, free: 66.38 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.375/1.271, allocations: 91.55 MB / 0.5021 GB, free: 10.66 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003135/1.274, allocations: 3.051 MB / 0.5051 GB, free: 7.402 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/1.276, allocations: 1.78 MB / 0.5069 GB, free: 5.59 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.52e-05/1.276, allocations: 34.66 kB / 0.5069 GB, free: 5.566 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/1.276, allocations: 64.42 kB / 0.507 GB, free: 5.5 MB / 234.7 MB Notification: Performance of pre-optimization done (n=205): time 4.759e-06/1.276, allocations: 0 / 0.507 GB, free: 5.5 MB / 234.7 MB Notification: Performance of matching and sorting (n=205): time 0.01171/1.288, allocations: 5.037 MB / 0.5119 GB, free: 484 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07133/1.359, allocations: 416.2 kB / 0.5123 GB, free: 63.18 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004019/1.363, allocations: 3.062 MB / 0.5153 GB, free: 62.98 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005691/1.364, allocations: 25.7 kB / 0.5153 GB, free: 62.95 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001326/1.365, allocations: 3.087 MB / 0.5183 GB, free: 61.59 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009569/1.366, allocations: 0.7971 MB / 0.5191 GB, free: 61.14 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003771/1.367, allocations: 0 / 0.5191 GB, free: 61.14 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003329/1.367, allocations: 0.6469 MB / 0.5197 GB, free: 60.81 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003343/1.37, allocations: 2.757 MB / 0.5224 GB, free: 60.8 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005033/1.375, allocations: 7.249 MB / 0.5295 GB, free: 54.95 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007007/1.382, allocations: 4.47 MB / 0.5339 GB, free: 54.93 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/1.383, allocations: 44.78 kB / 0.5339 GB, free: 54.93 MB / 234.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.01795/1.401, allocations: 9.137 MB / 0.5428 GB, free: 53.09 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/1.401, allocations: 7.719 kB / 0.5428 GB, free: 53.09 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004249/1.401, allocations: 324.5 kB / 0.5431 GB, free: 53.04 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001929/1.401, allocations: 233.4 kB / 0.5434 GB, free: 53.04 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006268/1.408, allocations: 1.845 MB / 0.5452 GB, free: 52.83 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002041/1.408, allocations: 316.9 kB / 0.5455 GB, free: 52.76 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.012/1.42, allocations: 1.682 MB / 0.5471 GB, free: 52.28 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00184/1.422, allocations: 0.6087 MB / 0.5477 GB, free: 52.22 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 738 * 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 (904): * Single equations (assignments): 893 * Array equations: 11 * 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.001832/1.424, allocations: 0.4965 MB / 0.5482 GB, free: 51.8 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00092/1.424, allocations: 296.7 kB / 0.5485 GB, free: 51.64 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002586/1.427, allocations: 1.244 MB / 0.5497 GB, free: 51.21 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01337/1.44, allocations: 3.227 MB / 0.5528 GB, free: 50.8 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-05/1.441, allocations: 5.844 kB / 0.5528 GB, free: 50.8 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-05/1.441, allocations: 8.766 kB / 0.5528 GB, free: 50.8 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04457/1.485, allocations: 13.07 MB / 0.5656 GB, free: 45.07 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.303e-05/1.485, allocations: 11.5 kB / 0.5656 GB, free: 45.06 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002191/1.487, allocations: 475 kB / 0.5661 GB, free: 44.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.912e-05/1.487, allocations: 16 kB / 0.5661 GB, free: 44.67 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003663/1.488, allocations: 110.3 kB / 0.5662 GB, free: 44.6 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-05/1.488, allocations: 19.94 kB / 0.5662 GB, free: 44.58 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/1.488, allocations: 15.94 kB / 0.5662 GB, free: 44.56 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008888/1.497, allocations: 7.915 MB / 0.574 GB, free: 37.32 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/1.498, allocations: 438.1 kB / 0.5744 GB, free: 36.9 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006827/1.499, allocations: 27.89 kB / 0.5744 GB, free: 36.88 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006878/1.506, allocations: 0.9173 MB / 0.5753 GB, free: 36.3 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/1.506, allocations: 120.8 kB / 0.5754 GB, free: 36.22 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003739/1.506, allocations: 222.5 kB / 0.5756 GB, free: 36.04 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.003193/1.51, allocations: 1.992 MB / 0.5776 GB, free: 34.31 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.008216/1.518, allocations: 1.122 MB / 0.5787 GB, free: 33.2 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (165): * Single equations (assignments): 154 * Array equations: 11 * 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 Backend phase and start with SimCode phase: time 0.0009064/1.519, allocations: 203.4 kB / 0.5789 GB, free: 33.02 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.01202/1.531, allocations: 6.48 MB / 0.5852 GB, free: 27.43 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/1.531, allocations: 0 / 0.5852 GB, free: 27.43 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005233/1.536, allocations: 2.207 MB / 0.5873 GB, free: 25.61 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/1.538, allocations: 230.7 kB / 0.5876 GB, free: 25.4 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/1.556, allocations: 9.111 MB / 0.5965 GB, free: 17.33 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006654/1.563, allocations: 4.026 MB / 0.6004 GB, free: 14.28 MB / 234.7 MB Notification: Performance of SimCode: time 8.81e-07/1.563, allocations: 0 / 0.6004 GB, free: 14.28 MB / 234.7 MB Notification: Performance of Templates: time 0.2759/1.839, allocations: 55.47 MB / 0.6546 GB, free: 41.82 MB / 234.7 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)