Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [: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.8236/0.8236, allocations: 110.8 MB / 118 MB, free: 14.57 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001949/0.001949, allocations: 156 kB / 143.7 MB, free: 4.898 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.674e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04608/0.04611, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.1903, allocations: 50.39 MB / 249 MB, free: 2.262 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.1905, allocations: 72.22 kB / 249.1 MB, free: 2.254 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.8971/1.088, allocations: 265.1 MB / 0.5021 GB, free: 7.305 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0009545/1.089, allocations: 192 kB / 0.5023 GB, free: 7.117 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3136 * Number of variables: 3136 Notification: Performance of Generate backend data structure: time 0.2449/1.334, allocations: 11.5 MB / 0.5135 GB, free: 30.32 MB / 250.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.334, allocations: 8.5 kB / 0.5135 GB, free: 30.32 MB / 250.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1873/1.521, allocations: 37.48 MB / 0.5501 GB, free: 28.84 MB / 250.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04051/1.561, allocations: 16.15 MB / 0.5659 GB, free: 27.82 MB / 250.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000798/1.562, allocations: 308.4 kB / 0.5662 GB, free: 27.82 MB / 250.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006758/1.569, allocations: 0.5614 MB / 0.5667 GB, free: 27.8 MB / 250.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04229/1.611, allocations: 21.97 MB / 0.5882 GB, free: 19.38 MB / 250.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1854/1.797, allocations: 25.33 MB / 0.6129 GB, free: 23.13 MB / 250.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008512/1.798, allocations: 87.75 kB / 0.613 GB, free: 23.13 MB / 250.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006934/1.805, allocations: 28.38 kB / 0.613 GB, free: 23.13 MB / 250.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.05103/1.856, allocations: 9.933 MB / 0.6227 GB, free: 23.11 MB / 250.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6969/2.553, allocations: 152.2 MB / 0.7713 GB, free: 36.54 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01049/2.563, allocations: 7.695 MB / 0.7788 GB, free: 35.68 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008693/2.572, allocations: 6.298 MB / 0.785 GB, free: 35.55 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1032/2.675, allocations: 31.8 MB / 0.816 GB, free: 22.91 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001139/2.675, allocations: 79.12 kB / 0.8161 GB, free: 22.82 MB / 282.8 MB Notification: Performance of pre-optimization done (n=358): time 9.507e-06/2.675, allocations: 0 / 0.8161 GB, free: 22.82 MB / 282.8 MB Notification: Performance of matching and sorting (n=444): time 0.2321/2.908, allocations: 36.29 MB / 0.8516 GB, free: 54.28 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/2.908, allocations: 411.4 kB / 0.852 GB, free: 53.84 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01538/2.923, allocations: 6.874 MB / 0.8587 GB, free: 53.26 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001665/2.925, allocations: 25.7 kB / 0.8587 GB, free: 53.23 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004863/2.93, allocations: 5.708 MB / 0.8643 GB, free: 49.74 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002775/2.933, allocations: 1.585 MB / 0.8658 GB, free: 48.78 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001466/2.934, allocations: 0 / 0.8658 GB, free: 48.78 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0006535/2.935, allocations: 0.7797 MB / 0.8666 GB, free: 48.45 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008325/2.943, allocations: 5.271 MB / 0.8717 GB, free: 48.43 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01225/2.955, allocations: 11.62 MB / 0.8831 GB, free: 40.25 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01168/2.967, allocations: 6.973 MB / 0.8899 GB, free: 40.19 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003583/2.967, allocations: 68.56 kB / 0.8899 GB, free: 40.19 MB / 282.8 MB Notification: Performance of matching and sorting (n=1479) (initialization): time 0.04047/3.008, allocations: 17.98 MB / 0.9075 GB, free: 35.95 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/3.008, allocations: 6.781 kB / 0.9075 GB, free: 35.95 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004364/3.008, allocations: 226.2 kB / 0.9077 GB, free: 35.95 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01206/3.021, allocations: 3.586 MB / 0.9112 GB, free: 35.28 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009844/3.03, allocations: 2.528 MB / 0.9137 GB, free: 34.98 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02893/3.059, allocations: 20.67 MB / 0.9339 GB, free: 24.92 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01848/3.078, allocations: 1.363 MB / 0.9352 GB, free: 24.83 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004146/3.082, allocations: 0.8318 MB / 0.936 GB, free: 24.07 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1021 * Number of states: 0 () * Number of discrete variables: 69 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1325): * Single equations (assignments): 1310 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,69.1%) 97,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.005473/3.088, allocations: 0.6721 MB / 0.9367 GB, free: 23.4 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002579/3.09, allocations: 0.7328 MB / 0.9374 GB, free: 22.66 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.151/3.241, allocations: 10.12 MB / 0.9473 GB, free: 47.32 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01179/3.253, allocations: 1.921 MB / 0.9492 GB, free: 47.32 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001048/3.253, allocations: 22.41 kB / 0.9492 GB, free: 47.32 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001635/3.253, allocations: 20.55 kB / 0.9492 GB, free: 47.32 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.078/3.331, allocations: 26.88 MB / 0.9754 GB, free: 46.11 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-05/3.331, allocations: 10.22 kB / 0.9755 GB, free: 46.11 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002911/3.334, allocations: 0.5227 MB / 0.976 GB, free: 46.11 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/3.345, allocations: 3.241 MB / 0.9791 GB, free: 46.07 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001042/3.346, allocations: 87.28 kB / 0.9792 GB, free: 46.07 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0269/3.373, allocations: 19.88 MB / 0.9986 GB, free: 40.4 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/3.373, allocations: 13.22 kB / 0.9986 GB, free: 40.4 MB / 282.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03028/3.403, allocations: 19.51 MB / 1.018 GB, free: 32.27 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005635/3.409, allocations: 1.692 MB / 1.019 GB, free: 31.81 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003258/3.412, allocations: 14.66 kB / 1.019 GB, free: 31.81 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01168/3.424, allocations: 1.079 MB / 1.02 GB, free: 31.81 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001304/3.425, allocations: 221.7 kB / 1.021 GB, free: 31.78 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008313/3.426, allocations: 275.8 kB / 1.021 GB, free: 31.75 MB / 282.8 MB Notification: Performance of sort global known variables: time 0.00942/3.435, allocations: 4.764 MB / 1.026 GB, free: 29.57 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.01457/3.45, allocations: 2.115 MB / 1.028 GB, free: 27.46 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 288 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00145/3.451, allocations: 173.2 kB / 1.028 GB, free: 27.34 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.1557/3.607, allocations: 13.84 MB / 1.041 GB, free: 44.43 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/3.607, allocations: 0.7656 kB / 1.041 GB, free: 44.43 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01536/3.623, allocations: 6.096 MB / 1.047 GB, free: 44.07 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008438/3.631, allocations: 0.9166 MB / 1.048 GB, free: 44.04 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04804/3.679, allocations: 19.41 MB / 1.067 GB, free: 40.6 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01749/3.697, allocations: 8.064 MB / 1.075 GB, free: 39.64 MB / 282.8 MB Notification: Performance of SimCode: time 1.002e-06/3.697, allocations: 3.609 kB / 1.075 GB, free: 39.64 MB / 282.8 MB Notification: Performance of Templates: time 0.3396/4.036, allocations: 124.6 MB / 1.197 GB, free: 34.41 MB / 282.8 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)