Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001778/0.001778, allocations: 195.2 kB / 8.139 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.205/1.205, allocations: 194.2 MB / 202.8 MB, free: 8.648 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.001866/0.001866, allocations: 122.1 kB / 247.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.788e-06/9.898e-06, allocations: 7.938 kB / 297.6 MB, free: 7.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07256/0.07259, allocations: 44.48 MB / 342.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2089/0.2816, allocations: 91.42 MB / 433.5 MB, free: 3.895 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.2818, allocations: 86.2 kB / 433.6 MB, free: 3.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.5471/0.8289, allocations: 159.4 MB / 0.579 GB, free: 51.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006313/0.8296, allocations: 170.5 kB / 0.5792 GB, free: 51.9 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.02472/0.8544, allocations: 8.028 MB / 0.587 GB, free: 48.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.8544, allocations: 9 kB / 0.5871 GB, free: 48.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06218/0.9166, allocations: 16.12 MB / 0.6028 GB, free: 42.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03182/0.9484, allocations: 13.93 MB / 0.6164 GB, free: 32.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000345/0.9488, allocations: 240 kB / 0.6166 GB, free: 32.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002647/0.9515, allocations: 471.5 kB / 0.6171 GB, free: 31.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01563/0.9671, allocations: 10.35 MB / 0.6272 GB, free: 21.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02032/0.9875, allocations: 15.25 MB / 0.6421 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003025/0.9878, allocations: 115 kB / 0.6422 GB, free: 4.879 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009865/0.9888, allocations: 40 kB / 0.6422 GB, free: 4.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001854/0.9907, allocations: 1.674 MB / 0.6439 GB, free: 3.172 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1888/1.179, allocations: 75.56 MB / 0.7176 GB, free: 60.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006583/1.186, allocations: 5.635 MB / 0.7232 GB, free: 59.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004587/1.191, allocations: 4.582 MB / 0.7276 GB, free: 59.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01911/1.21, allocations: 14.13 MB / 0.7414 GB, free: 54.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/1.21, allocations: 66.41 kB / 0.7415 GB, free: 54.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 6.432e-06/1.21, allocations: 2.812 kB / 0.7415 GB, free: 54.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=366): time 0.08433/1.294, allocations: 33.79 MB / 0.7745 GB, free: 42.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/1.294, allocations: 400.7 kB / 0.7749 GB, free: 41.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008813/1.303, allocations: 5.731 MB / 0.7805 GB, free: 39.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006962/1.304, allocations: 29.14 kB / 0.7805 GB, free: 39.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002193/1.306, allocations: 4.543 MB / 0.7849 GB, free: 36.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/1.308, allocations: 1.302 MB / 0.7862 GB, free: 35.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004304/1.308, allocations: 0 / 0.7862 GB, free: 35.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003596/1.308, allocations: 0.6826 MB / 0.7869 GB, free: 35.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004253/1.313, allocations: 3.444 MB / 0.7902 GB, free: 33.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005903/1.318, allocations: 8.389 MB / 0.7984 GB, free: 25.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00635/1.325, allocations: 5.338 MB / 0.8036 GB, free: 24.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001764/1.325, allocations: 49.69 kB / 0.8037 GB, free: 24.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.02569/1.351, allocations: 13.8 MB / 0.8172 GB, free: 14.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/1.351, allocations: 4.969 kB / 0.8172 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/1.351, allocations: 176 kB / 0.8173 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01111/1.362, allocations: 3.616 MB / 0.8209 GB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006397/1.368, allocations: 1.889 MB / 0.8227 GB, free: 9.578 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1568/1.525, allocations: 21.06 MB / 0.8433 GB, free: 92.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00784/1.533, allocations: 280.8 kB / 0.8435 GB, free: 92.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001131/1.534, allocations: 0.5063 MB / 0.844 GB, free: 92.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 (1025): * Single equations (assignments): 1019 * 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: 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.001369/1.536, allocations: 0.5537 MB / 0.8446 GB, free: 92.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/1.537, allocations: 0.6464 MB / 0.8452 GB, free: 92.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01732/1.554, allocations: 8.541 MB / 0.8536 GB, free: 92.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.024e-05/1.554, allocations: 35.97 kB / 0.8536 GB, free: 92.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.306e-05/1.554, allocations: 19.81 kB / 0.8536 GB, free: 92.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.254e-05/1.554, allocations: 15.56 kB / 0.8536 GB, free: 92.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03286/1.587, allocations: 17.93 MB / 0.8711 GB, free: 90.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-05/1.587, allocations: 7.125 kB / 0.8711 GB, free: 90.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002118/1.589, allocations: 431 kB / 0.8715 GB, free: 90.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01086/1.6, allocations: 3.336 MB / 0.8748 GB, free: 89.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003617/1.601, allocations: 11.06 kB / 0.8748 GB, free: 89.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0271/1.628, allocations: 20.44 MB / 0.8948 GB, free: 79.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/1.628, allocations: 17.47 kB / 0.8948 GB, free: 79.86 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02311/1.651, allocations: 14.73 MB / 0.9092 GB, free: 73.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003361/1.654, allocations: 1.173 MB / 0.9103 GB, free: 72.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001147/1.655, allocations: 17.06 kB / 0.9103 GB, free: 72.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003085/1.659, allocations: 114.9 kB / 0.9105 GB, free: 72.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005186/1.659, allocations: 185 kB / 0.9106 GB, free: 72.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003159/1.659, allocations: 99.81 kB / 0.9107 GB, free: 72.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005939/1.665, allocations: 4.014 MB / 0.9146 GB, free: 71.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008387/1.674, allocations: 1.693 MB / 0.9163 GB, free: 71.02 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006054/1.674, allocations: 175.2 kB / 0.9165 GB, free: 70.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01256/1.687, allocations: 9.005 MB / 0.9253 GB, free: 68.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/1.687, allocations: 3.375 kB / 0.9253 GB, free: 68.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005577/1.693, allocations: 3.788 MB / 0.929 GB, free: 65.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004552/1.697, allocations: 0.8398 MB / 0.9298 GB, free: 64.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02827/1.725, allocations: 15.51 MB / 0.9449 GB, free: 50.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007947/1.733, allocations: 6.303 MB / 0.9511 GB, free: 46.04 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/1.733, allocations: 0 / 0.9511 GB, free: 46.04 MB / 410.7 MB Notification: Performance of Templates: time 0.2636/1.997, allocations: 81.01 MB / 1.03 GB, free: 77.91 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)