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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009284/0.0009284, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006942/0.006942, allocations: 169.8 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000453/0.0004531, allocations: 12 kB / 279.4 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2382, allocations: 47.58 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1007/0.339, allocations: 109 MB / 436 MB, free: 6.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04989/0.389, allocations: 21.24 MB / 457.2 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01909/0.4081, allocations: 0.4948 MB / 457.7 MB, free: 212 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2418/0.6499, allocations: 0.7302 MB / 458.5 MB, free: 1.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01208/0.6621, allocations: 3.281 MB / 461.7 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004954/0.667, allocations: 1.542 MB / 463.3 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02377/0.6908, allocations: 16.5 MB / 479.8 MB, free: 16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01662/0.7075, allocations: 10.68 MB / 490.5 MB, free: 13 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009236/0.7168, allocations: 2.873 MB / 493.3 MB, free: 12.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009179/0.726, allocations: 4.643 MB / 498 MB, free: 11.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001977/0.728, allocations: 293.3 kB / 498.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004165/0.7322, allocations: 1.317 MB / 499.6 MB, free: 11.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004746/0.737, allocations: 3.868 MB / 0.4916 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008291/0.7453, allocations: 4.045 MB / 0.4956 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01893/0.7643, allocations: 13.23 MB / 0.5085 GB, free: 10.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.7643, allocations: 1.375 kB / 0.5085 GB, free: 10.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.967e-06/0.7644, allocations: 0 / 0.5085 GB, free: 10.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005487/0.7649, allocations: 3.469 kB / 0.5085 GB, free: 10.46 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02445/0.7894, allocations: 8.331 MB / 0.5167 GB, free: 2.227 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.7894, allocations: 8.031 kB / 0.5167 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04891/0.8384, allocations: 5.4 MB / 0.5219 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02033/0.8587, allocations: 8.36 MB / 0.5301 GB, free: 4.691 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000487/0.8593, allocations: 449 kB / 0.5305 GB, free: 4.301 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003156/0.8624, allocations: 0.6101 MB / 0.5311 GB, free: 3.742 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03837/0.9008, allocations: 17.21 MB / 0.5479 GB, free: 1.762 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003802/0.9012, allocations: 92.86 kB / 0.548 GB, free: 1.699 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001474/0.9027, allocations: 282.6 kB / 0.5483 GB, free: 1.473 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004817/0.9075, allocations: 2.864 MB / 0.5511 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03295/0.9405, allocations: 14.1 MB / 0.5649 GB, free: 0.8008 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5151/1.456, allocations: 69.48 MB / 0.6327 GB, free: 198.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01888/1.475, allocations: 7.501 MB / 0.64 GB, free: 197.5 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00552/1.48, allocations: 4.463 MB / 0.6444 GB, free: 197.5 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01926/1.5, allocations: 12.77 MB / 0.6569 GB, free: 192.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/1.5, allocations: 63.25 kB / 0.6569 GB, free: 192.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=293): time 5.44e-06/1.5, allocations: 7.625 kB / 0.6569 GB, free: 192.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=365): time 0.1438/1.643, allocations: 43.89 MB / 0.6998 GB, free: 155.2 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/1.644, allocations: 405.8 kB / 0.7002 GB, free: 154.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/1.655, allocations: 7.385 MB / 0.7074 GB, free: 147.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.00103/1.656, allocations: 80.2 kB / 0.7075 GB, free: 147.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003356/1.659, allocations: 5.234 MB / 0.7126 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002081/1.661, allocations: 1.354 MB / 0.7139 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001599/1.663, allocations: 0.841 MB / 0.7147 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.12e-05/1.663, allocations: 301.1 kB / 0.715 GB, free: 139.6 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005611/1.669, allocations: 4.284 MB / 0.7192 GB, free: 135.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008608/1.677, allocations: 9.194 MB / 0.7282 GB, free: 123.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01593/1.693, allocations: 14.24 MB / 0.7421 GB, free: 107.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001583/1.693, allocations: 48 kB / 0.7421 GB, free: 107.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.0378/1.731, allocations: 18.01 MB / 0.7597 GB, free: 89.64 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/1.731, allocations: 76 kB / 0.7598 GB, free: 89.56 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001824/1.731, allocations: 168.8 kB / 0.7599 GB, free: 89.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01501/1.747, allocations: 5.329 MB / 0.7652 GB, free: 84.05 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006712/1.753, allocations: 2.008 MB / 0.7671 GB, free: 82.04 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0359/1.789, allocations: 29.03 MB / 0.7955 GB, free: 52.61 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009362/1.799, allocations: 0.5577 MB / 0.796 GB, free: 52.05 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002116/1.801, allocations: 0.5156 MB / 0.7965 GB, free: 51.53 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 72 (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.groundColor[3],world.groundColor[2],world.groundColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1096 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.009411/1.81, allocations: 3.621 MB / 0.8 GB, free: 47.89 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002208/1.812, allocations: 0.6634 MB / 0.8007 GB, free: 47.22 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02202/1.834, allocations: 11.27 MB / 0.8117 GB, free: 35.88 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.821e-05/1.835, allocations: 36 kB / 0.8117 GB, free: 35.85 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.405e-05/1.835, allocations: 20 kB / 0.8118 GB, free: 35.83 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.549e-05/1.835, allocations: 21.62 kB / 0.8118 GB, free: 35.81 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04325/1.878, allocations: 22.18 MB / 0.8334 GB, free: 13.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.096e-05/1.878, allocations: 8 kB / 0.8334 GB, free: 13.39 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002228/1.88, allocations: 451.3 kB / 0.8339 GB, free: 12.95 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01424/1.895, allocations: 5.035 MB / 0.8388 GB, free: 7.902 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001215/1.896, allocations: 68 kB / 0.8389 GB, free: 7.836 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2861/2.182, allocations: 28.42 MB / 0.8666 GB, free: 210.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/2.182, allocations: 11.22 kB / 0.8666 GB, free: 210.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02974/2.212, allocations: 16.49 MB / 0.8827 GB, free: 204.9 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0051/2.217, allocations: 1.345 MB / 0.884 GB, free: 204.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002379/2.219, allocations: 70.97 kB / 0.8841 GB, free: 204.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004354/2.224, allocations: 271.1 kB / 0.8844 GB, free: 204.5 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/2.225, allocations: 269.9 kB / 0.8846 GB, free: 204.4 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002852/2.225, allocations: 105.7 kB / 0.8847 GB, free: 204.4 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008736/2.234, allocations: 4.728 MB / 0.8893 GB, free: 202.3 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.472e-06/2.234, allocations: 0 / 0.8893 GB, free: 202.3 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01142/2.245, allocations: 2.185 MB / 0.8915 GB, free: 200.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001262/2.246, allocations: 225.5 kB / 0.8917 GB, free: 199.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01863/2.265, allocations: 10.83 MB / 0.9023 GB, free: 189.4 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/2.265, allocations: 5.328 kB / 0.9023 GB, free: 189.3 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006718/2.272, allocations: 4.478 MB / 0.9066 GB, free: 184.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0181/2.29, allocations: 0.9663 MB / 0.9076 GB, free: 183.9 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04088/2.331, allocations: 23.38 MB / 0.9304 GB, free: 160.8 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01045/2.341, allocations: 5.768 MB / 0.936 GB, free: 155 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008391/2.35, allocations: 2.745 MB / 0.9387 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/2.352, allocations: 411.4 kB / 0.9391 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of SimCode: time 1.112e-06/2.352, allocations: 0 / 0.9391 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of Templates: time 0.1797/2.532, allocations: 92.79 MB / 1.03 GB, free: 59.04 MB / 0.5138 GB 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)