Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") [: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 4.0.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 187.2 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 221.4 MB / 229.3 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009764/0.0009764, allocations: 103.6 kB / 280.1 MB, free: 1.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04389/0.04389, allocations: 8.845 MB / 339.7 MB, free: 5.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.08e-06/5.11e-06, allocations: 0 / 398.1 MB, free: 67.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07298/0.073, allocations: 52.39 MB / 450.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2354/0.3084, allocations: 82.95 MB / 0.521 GB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.3086, allocations: 70.59 kB / 0.521 GB, free: 10.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1203/0.4289, allocations: 46.07 MB / 0.566 GB, free: 3.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.392e-05/0.429, allocations: 36 kB / 0.5661 GB, free: 3.641 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.005226/0.4343, allocations: 2.147 MB / 0.5681 GB, free: 1.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.4343, allocations: 12.03 kB / 0.5682 GB, free: 1.426 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008966/0.4433, allocations: 1.51 MB / 0.5696 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003144/0.4465, allocations: 1.41 MB / 0.571 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.967e-05/0.4466, allocations: 72 kB / 0.5711 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00049/0.4471, allocations: 127.9 kB / 0.5712 GB, free: 14.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006495/0.4536, allocations: 4.475 MB / 0.5756 GB, free: 9.781 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00855/0.4621, allocations: 5.764 MB / 0.5812 GB, free: 3.773 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-05/0.4622, allocations: 15.88 kB / 0.5812 GB, free: 3.758 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003464/0.4626, allocations: 4 kB / 0.5812 GB, free: 3.754 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009126/0.4635, allocations: 0.7542 MB / 0.582 GB, free: 2.996 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02372/0.4872, allocations: 17.44 MB / 0.599 GB, free: 1.188 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.4891, allocations: 1.543 MB / 0.6005 GB, free: 15.53 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006627/0.4897, allocations: 0.4989 MB / 0.601 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00342/0.4932, allocations: 2.047 MB / 0.603 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.4932, allocations: 42.98 kB / 0.603 GB, free: 12.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.805e-06/0.4932, allocations: 0 / 0.603 GB, free: 12.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=80): time 0.00194/0.4952, allocations: 1.005 MB / 0.604 GB, free: 11.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.4952, allocations: 59.83 kB / 0.6041 GB, free: 11.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/0.4973, allocations: 1.539 MB / 0.6056 GB, free: 10.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.4973, allocations: 25.7 kB / 0.6056 GB, free: 10.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009402/0.4983, allocations: 1.676 MB / 0.6072 GB, free: 8.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002257/0.4985, allocations: 315.9 kB / 0.6075 GB, free: 8.117 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.4986, allocations: 0 / 0.6075 GB, free: 8.117 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002451/0.4989, allocations: 461 kB / 0.608 GB, free: 7.656 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.5002, allocations: 0.9272 MB / 0.6089 GB, free: 6.727 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/0.5025, allocations: 2.7 MB / 0.6115 GB, free: 3.129 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002114/0.5046, allocations: 1.638 MB / 0.6131 GB, free: 1.492 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.994e-05/0.5046, allocations: 20 kB / 0.6131 GB, free: 1.473 MB / 426.7 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.004962/0.5096, allocations: 3.235 MB / 0.6163 GB, free: 14.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.5096, allocations: 4 kB / 0.6163 GB, free: 14.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.146e-05/0.5097, allocations: 64 kB / 0.6164 GB, free: 14.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.129e-05/0.5098, allocations: 96.03 kB / 0.6164 GB, free: 14.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002163/0.512, allocations: 0.6589 MB / 0.6171 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.094e-05/0.5121, allocations: 123.5 kB / 0.6172 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/0.5141, allocations: 339.9 kB / 0.6175 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000347/0.5145, allocations: 188 kB / 0.6177 GB, free: 12.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 290 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (358): * Single equations (assignments): 354 * Array equations: 4 * 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.0003176/0.5148, allocations: 259.3 kB / 0.618 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.515, allocations: 130.3 kB / 0.6181 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.5166, allocations: 0.9818 MB / 0.619 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001305/0.5168, allocations: 15.89 kB / 0.6191 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.5168, allocations: 0 / 0.6191 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.5168, allocations: 3.984 kB / 0.6191 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005019/0.5218, allocations: 2.85 MB / 0.6218 GB, free: 8.453 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.5218, allocations: 4 kB / 0.6218 GB, free: 8.449 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/0.5224, allocations: 99.83 kB / 0.6219 GB, free: 8.352 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.5225, allocations: 4.125 kB / 0.6219 GB, free: 8.348 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-05/0.5225, allocations: 11.98 kB / 0.622 GB, free: 8.336 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.5225, allocations: 4 kB / 0.622 GB, free: 8.332 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.5225, allocations: 0 / 0.622 GB, free: 8.332 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002056/0.5246, allocations: 1.704 MB / 0.6236 GB, free: 6.562 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003162/0.5249, allocations: 239.1 kB / 0.6238 GB, free: 6.309 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.5251, allocations: 7.984 kB / 0.6239 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005708/0.5257, allocations: 19.97 kB / 0.6239 GB, free: 6.281 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.5258, allocations: 28.39 kB / 0.6239 GB, free: 6.254 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/0.5259, allocations: 28 kB / 0.6239 GB, free: 6.227 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00146/0.5273, allocations: 1.042 MB / 0.6249 GB, free: 5.184 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002381/0.5297, allocations: 0.6102 MB / 0.6255 GB, free: 4.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 4 * 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.0002902/0.53, allocations: 141.2 kB / 0.6257 GB, free: 4.422 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002985/0.533, allocations: 1.986 MB / 0.6276 GB, free: 2.449 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.533, allocations: 0 / 0.6276 GB, free: 2.449 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007945/0.5338, allocations: 465.6 kB / 0.6281 GB, free: 1.988 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007555/0.5346, allocations: 161.9 kB / 0.6282 GB, free: 1.836 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00729/0.5419, allocations: 4.039 MB / 0.6322 GB, free: 13.72 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002988/0.5449, allocations: 2.359 MB / 0.6345 GB, free: 11.33 MB / 458.7 MB Notification: Performance of SimCode: time 6.52e-07/0.5449, allocations: 0 / 0.6345 GB, free: 11.33 MB / 458.7 MB Notification: Performance of Templates: time 0.1954/0.7404, allocations: 15.72 MB / 0.6498 GB, free: 117.2 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & ./PlanarMechanics_PlanarMechanics.Examples.FreeBody -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)