Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [: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.004811/0.004811, allocations: 176.3 kB / 7.452 MB, free: 2.504 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.332/1.332, 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.001753/0.001753, allocations: 111.8 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.075e-05/1.077e-05, allocations: 4 kB / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07979/0.07982, allocations: 38.76 MB / 300.5 MB, free: 3.91 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4019/0.4818, allocations: 84.17 MB / 384.7 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003475/0.4822, allocations: 83.14 kB / 384.8 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.7579/1.24, allocations: 154.4 MB / 0.5265 GB, free: 61.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.002428/1.243, allocations: 158.4 kB / 0.5267 GB, free: 61.7 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03733/1.28, allocations: 7.72 MB / 0.5342 GB, free: 55.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/1.28, allocations: 12.03 kB / 0.5342 GB, free: 55.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06501/1.345, allocations: 16.05 MB / 0.5499 GB, free: 39.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05391/1.399, allocations: 13.64 MB / 0.5632 GB, free: 25.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007794/1.4, allocations: 231.9 kB / 0.5634 GB, free: 25.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00582/1.406, allocations: 439.7 kB / 0.5639 GB, free: 24.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03347/1.439, allocations: 9.946 MB / 0.5736 GB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2417/1.681, allocations: 14.72 MB / 0.588 GB, free: 77.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001352/1.683, allocations: 108.2 kB / 0.5881 GB, free: 77.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005292/1.688, allocations: 39.81 kB / 0.5881 GB, free: 77.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004517/1.692, allocations: 1.624 MB / 0.5897 GB, free: 77.33 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1345/1.827, allocations: 74.16 MB / 0.6621 GB, free: 35.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01044/1.837, allocations: 5.574 MB / 0.6675 GB, free: 32.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008444/1.846, allocations: 4.613 MB / 0.6721 GB, free: 30.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03651/1.883, allocations: 13.73 MB / 0.6855 GB, free: 22.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.605e-05/1.883, allocations: 71.44 kB / 0.6855 GB, free: 22.83 MB / 346.7 MB Notification: Performance of pre-optimization done (n=280): time 1.485e-05/1.883, allocations: 0 / 0.6855 GB, free: 22.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=340): time 0.1575/2.04, allocations: 35.46 MB / 0.7202 GB, free: 4.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/2.04, allocations: 404 kB / 0.7205 GB, free: 4.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.198/2.238, allocations: 5.54 MB / 0.726 GB, free: 82.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001033/2.24, allocations: 25.7 kB / 0.726 GB, free: 82.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004734/2.244, allocations: 4.375 MB / 0.7303 GB, free: 81.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002135/2.246, allocations: 1.211 MB / 0.7314 GB, free: 80.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008375/2.247, allocations: 0 / 0.7314 GB, free: 80.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005011/2.248, allocations: 0.662 MB / 0.7321 GB, free: 80.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005149/2.253, allocations: 3.715 MB / 0.7357 GB, free: 80.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007318/2.26, allocations: 8.466 MB / 0.744 GB, free: 74.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007811/2.268, allocations: 5.539 MB / 0.7494 GB, free: 74.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.862e-05/2.268, allocations: 49.97 kB / 0.7494 GB, free: 74.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=1105) (initialization): time 0.04037/2.309, allocations: 15.33 MB / 0.7644 GB, free: 73.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/2.309, allocations: 3.281 kB / 0.7644 GB, free: 73.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006096/2.309, allocations: 169.1 kB / 0.7646 GB, free: 73.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01717/2.326, allocations: 4.985 MB / 0.7694 GB, free: 73.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007041/2.334, allocations: 1.808 MB / 0.7712 GB, free: 72.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03811/2.372, allocations: 24.8 MB / 0.7954 GB, free: 61.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009732/2.382, allocations: 296.3 kB / 0.7957 GB, free: 61.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002358/2.384, allocations: 491.5 kB / 0.7962 GB, free: 61.25 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 761 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (969): * Single equations (assignments): 963 * 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 {(7,55.1%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003869/2.388, allocations: 0.5377 MB / 0.7967 GB, free: 60.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002205/2.39, allocations: 0.6155 MB / 0.7973 GB, free: 60.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02636/2.416, allocations: 10.33 MB / 0.8074 GB, free: 54.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001183/2.417, allocations: 35.91 kB / 0.8074 GB, free: 54.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.557e-05/2.417, allocations: 16 kB / 0.8074 GB, free: 54.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-05/2.417, allocations: 25.05 kB / 0.8075 GB, free: 54.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05116/2.468, allocations: 22.27 MB / 0.8292 GB, free: 35.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-05/2.468, allocations: 8.75 kB / 0.8292 GB, free: 35.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002211/2.47, allocations: 403.6 kB / 0.8296 GB, free: 35.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01645/2.487, allocations: 4.648 MB / 0.8342 GB, free: 31.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001293/2.488, allocations: 16 kB / 0.8342 GB, free: 31.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2267/2.715, allocations: 23.66 MB / 0.8573 GB, free: 72.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/2.715, allocations: 8.906 kB / 0.8573 GB, free: 72.96 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02893/2.744, allocations: 16.36 MB / 0.8733 GB, free: 70.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004529/2.748, allocations: 1.217 MB / 0.8744 GB, free: 70.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002832/2.751, allocations: 13.16 kB / 0.8745 GB, free: 70.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004869/2.756, allocations: 134 kB / 0.8746 GB, free: 70.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005975/2.757, allocations: 166.2 kB / 0.8747 GB, free: 70.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000414/2.757, allocations: 94.25 kB / 0.8748 GB, free: 70.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.01169/2.769, allocations: 3.894 MB / 0.8786 GB, free: 68.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01381/2.783, allocations: 1.671 MB / 0.8803 GB, free: 68.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (215): * Single equations (assignments): 209 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001397/2.784, allocations: 168.6 kB / 0.8804 GB, free: 68.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01892/2.803, allocations: 9.46 MB / 0.8897 GB, free: 65.47 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/2.803, allocations: 0 / 0.8897 GB, free: 65.47 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008657/2.812, allocations: 4.067 MB / 0.8936 GB, free: 63.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007888/2.82, allocations: 0.8239 MB / 0.8944 GB, free: 63.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05511/2.875, allocations: 15.88 MB / 0.91 GB, free: 55.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01651/2.892, allocations: 6.057 MB / 0.9159 GB, free: 50.73 MB / 346.7 MB Notification: Performance of SimCode: time 2.094e-06/2.892, allocations: 0 / 0.9159 GB, free: 50.73 MB / 346.7 MB Notification: Performance of Templates: time 0.3154/3.207, allocations: 81.52 MB / 0.9955 GB, free: 68 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)