Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.2.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/Complex 3.2.1+maint.om/package.mo): time 0.005701/0.005702, allocations: 178 kB / 7.452 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.388/1.388, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001734/0.001734, allocations: 112.4 kB / 217.7 MB, free: 8.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.348e-06/9.388e-06, allocations: 4 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.0842, allocations: 38.76 MB / 300.5 MB, free: 3.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3245/0.4087, allocations: 85.7 MB / 386.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/0.4091, allocations: 81.64 kB / 386.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.7387/1.148, allocations: 159.4 MB / 0.5329 GB, free: 57.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001039/1.149, allocations: 175.6 kB / 0.533 GB, free: 57.08 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.03043/1.179, allocations: 8.029 MB / 0.5409 GB, free: 48.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/1.179, allocations: 8.031 kB / 0.5409 GB, free: 48.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06046/1.24, allocations: 16.12 MB / 0.5566 GB, free: 32.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03561/1.276, allocations: 13.91 MB / 0.5702 GB, free: 18.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006068/1.276, allocations: 243.9 kB / 0.5705 GB, free: 18.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005247/1.281, allocations: 467.6 kB / 0.5709 GB, free: 18.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02254/1.304, allocations: 10.35 MB / 0.581 GB, free: 7.902 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2251/1.529, allocations: 15.24 MB / 0.5959 GB, free: 74.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006109/1.53, allocations: 113.4 kB / 0.596 GB, free: 74.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002232/1.532, allocations: 39.88 kB / 0.5961 GB, free: 74.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00249/1.535, allocations: 1.677 MB / 0.5977 GB, free: 74.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/1.652, allocations: 75.55 MB / 0.6715 GB, free: 30.7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008654/1.66, allocations: 5.635 MB / 0.677 GB, free: 27.99 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006746/1.667, allocations: 4.571 MB / 0.6814 GB, free: 25.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03254/1.7, allocations: 14.15 MB / 0.6952 GB, free: 18.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/1.7, allocations: 63.56 kB / 0.6953 GB, free: 18.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=293): time 1.086e-05/1.7, allocations: 0 / 0.6953 GB, free: 18.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=366): time 0.3178/2.018, allocations: 33.8 MB / 0.7283 GB, free: 77.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/2.018, allocations: 402.8 kB / 0.7287 GB, free: 77.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01235/2.03, allocations: 5.735 MB / 0.7343 GB, free: 77.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001099/2.032, allocations: 25.7 kB / 0.7343 GB, free: 77.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00445/2.036, allocations: 4.546 MB / 0.7388 GB, free: 75.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002187/2.038, allocations: 1.296 MB / 0.74 GB, free: 75.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007725/2.039, allocations: 0 / 0.74 GB, free: 75.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005123/2.04, allocations: 0.6826 MB / 0.7407 GB, free: 74.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005518/2.045, allocations: 3.447 MB / 0.7441 GB, free: 74.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008477/2.054, allocations: 8.391 MB / 0.7523 GB, free: 68.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009073/2.063, allocations: 5.341 MB / 0.7575 GB, free: 68.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002384/2.063, allocations: 51.78 kB / 0.7575 GB, free: 68.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=1161) (initialization): time 0.03502/2.098, allocations: 13.79 MB / 0.771 GB, free: 67.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/2.098, allocations: 11.19 kB / 0.771 GB, free: 67.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001025/2.099, allocations: 174.9 kB / 0.7712 GB, free: 67.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01411/2.113, allocations: 3.611 MB / 0.7747 GB, free: 67.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008113/2.121, allocations: 1.892 MB / 0.7765 GB, free: 67.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03576/2.157, allocations: 21.06 MB / 0.7971 GB, free: 56.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/2.168, allocations: 283.2 kB / 0.7974 GB, free: 56.92 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00274/2.171, allocations: 0.5078 MB / 0.7979 GB, free: 56.85 MB / 346.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.004118/2.175, allocations: 0.5513 MB / 0.7984 GB, free: 56.4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002218/2.177, allocations: 0.6496 MB / 0.7991 GB, free: 56.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01834/2.195, allocations: 8.546 MB / 0.8074 GB, free: 53.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001101/2.195, allocations: 37.16 kB / 0.8074 GB, free: 53.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-05/2.196, allocations: 21.53 kB / 0.8075 GB, free: 53.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.244e-05/2.196, allocations: 18.39 kB / 0.8075 GB, free: 53.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04405/2.24, allocations: 17.92 MB / 0.825 GB, free: 38.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.112e-05/2.24, allocations: 8 kB / 0.825 GB, free: 38.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002449/2.242, allocations: 431 kB / 0.8254 GB, free: 38.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01123/2.253, allocations: 3.329 MB / 0.8286 GB, free: 35.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001117/2.255, allocations: 27.12 kB / 0.8287 GB, free: 35.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2212/2.476, allocations: 20.59 MB / 0.8488 GB, free: 67.47 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.504e-05/2.476, allocations: 13.47 kB / 0.8488 GB, free: 67.47 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02353/2.5, allocations: 14.73 MB / 0.8632 GB, free: 64.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003878/2.503, allocations: 1.182 MB / 0.8643 GB, free: 64.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001744/2.505, allocations: 12.66 kB / 0.8643 GB, free: 64.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003755/2.509, allocations: 115.3 kB / 0.8645 GB, free: 64.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005125/2.51, allocations: 188.5 kB / 0.8646 GB, free: 64.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000292/2.51, allocations: 101.8 kB / 0.8647 GB, free: 64.81 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.007472/2.517, allocations: 4.019 MB / 0.8687 GB, free: 64.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01208/2.529, allocations: 1.692 MB / 0.8703 GB, free: 64.6 MB / 346.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.0009595/2.53, allocations: 175.8 kB / 0.8705 GB, free: 64.51 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01478/2.545, allocations: 8.989 MB / 0.8793 GB, free: 64.11 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/2.545, allocations: 5.062 kB / 0.8793 GB, free: 64.11 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005879/2.551, allocations: 3.794 MB / 0.883 GB, free: 63.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00539/2.557, allocations: 0.8446 MB / 0.8838 GB, free: 63.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04527/2.602, allocations: 15.5 MB / 0.8989 GB, free: 57.85 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01901/2.621, allocations: 6.319 MB / 0.9051 GB, free: 56.01 MB / 346.7 MB Notification: Performance of SimCode: time 1.843e-06/2.621, allocations: 3.938 kB / 0.9051 GB, free: 56.01 MB / 346.7 MB Notification: Performance of Templates: time 0.4008/3.022, allocations: 80.98 MB / 0.9842 GB, free: 57.29 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)