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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001152/0.001152, allocations: 191 kB / 18 MB, free: 5.105 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.365/1.365, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.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.001182/0.001182, allocations: 52.41 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08536, allocations: 46.62 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2104/0.2958, allocations: 20.6 MB / 395.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01727/0.3131, allocations: 6.228 MB / 401.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008004/0.3211, allocations: 165.2 kB / 401.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01771/0.3389, allocations: 6.35 MB / 407.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01259/0.3516, allocations: 3.455 MB / 411.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005217/0.3568, allocations: 1.657 MB / 413 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02096/0.3778, allocations: 11.65 MB / 424.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01362/0.3915, allocations: 8.084 MB / 432.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01062/0.4022, allocations: 3.774 MB / 436.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01146/0.4137, allocations: 4.974 MB / 441.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00464/0.4184, allocations: 0.7461 MB / 442.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006448/0.4249, allocations: 1.713 MB / 443.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007126/0.432, allocations: 4.392 MB / 448.3 MB, free: 5.527 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01143/0.4435, allocations: 4.674 MB / 453 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02359/0.4671, allocations: 14.2 MB / 467.2 MB, free: 2.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.194e-05/0.4672, allocations: 0 / 467.2 MB, free: 2.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4672, allocations: 0 / 467.2 MB, free: 2.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007116/0.4679, allocations: 0 / 467.2 MB, free: 2.586 MB / 382.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.03845/0.5064, allocations: 10.07 MB / 477.2 MB, free: 8.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.5065, allocations: 8.031 kB / 477.2 MB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04749/0.554, allocations: 5.283 MB / 482.5 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0248/0.5789, allocations: 8.548 MB / 491.1 MB, free: 10.47 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004784/0.5794, allocations: 452.2 kB / 491.5 MB, free: 10.03 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003356/0.5828, allocations: 0.6165 MB / 492.1 MB, free: 9.414 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03851/0.6213, allocations: 17.13 MB / 0.4973 GB, free: 7.227 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006692/0.622, allocations: 99.11 kB / 0.4974 GB, free: 7.129 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00403/0.6261, allocations: 279.8 kB / 0.4977 GB, free: 6.855 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005635/0.6317, allocations: 2.858 MB / 0.5005 GB, free: 3.996 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03499/0.6668, allocations: 14.04 MB / 0.5142 GB, free: 5.941 MB / 446.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.5371/1.204, allocations: 69.09 MB / 0.5817 GB, free: 104.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02133/1.225, allocations: 7.464 MB / 0.589 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007217/1.233, allocations: 4.457 MB / 0.5933 GB, free: 100.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02282/1.255, allocations: 12.76 MB / 0.6058 GB, free: 94.67 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.101e-05/1.256, allocations: 65.81 kB / 0.6058 GB, free: 94.61 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 6.672e-06/1.256, allocations: 0 / 0.6058 GB, free: 94.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1381/1.394, allocations: 43.55 MB / 0.6484 GB, free: 60.71 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/1.394, allocations: 398.2 kB / 0.6487 GB, free: 60.23 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008842/1.403, allocations: 7.385 MB / 0.6559 GB, free: 52.88 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009269/1.404, allocations: 77.7 kB / 0.656 GB, free: 52.79 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003623/1.407, allocations: 5.243 MB / 0.6611 GB, free: 47.55 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001839/1.409, allocations: 1.352 MB / 0.6625 GB, free: 46.21 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002626/1.412, allocations: 1.931 MB / 0.6643 GB, free: 44.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.804e-05/1.412, allocations: 309.1 kB / 0.6646 GB, free: 43.96 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00512/1.417, allocations: 4.282 MB / 0.6688 GB, free: 39.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006773/1.424, allocations: 9.187 MB / 0.6778 GB, free: 28.12 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01403/1.438, allocations: 14.25 MB / 0.6917 GB, free: 11.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/1.438, allocations: 48 kB / 0.6918 GB, free: 11.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03501/1.473, allocations: 18.01 MB / 0.7093 GB, free: 9.398 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/1.473, allocations: 76 kB / 0.7094 GB, free: 9.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002003/1.473, allocations: 168.2 kB / 0.7096 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01666/1.49, allocations: 5.332 MB / 0.7148 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007768/1.498, allocations: 2.004 MB / 0.7167 GB, free: 1.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04586/1.544, allocations: 31.11 MB / 0.7471 GB, free: 2.266 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00811/1.552, allocations: 0.5539 MB / 0.7477 GB, free: 1.711 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001638/1.553, allocations: 0.5117 MB / 0.7482 GB, free: 1.199 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.2234/1.777, allocations: 3.628 MB / 0.7517 GB, free: 172.1 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001827/1.779, allocations: 0.6589 MB / 0.7524 GB, free: 172.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02425/1.803, allocations: 11.27 MB / 0.7634 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.068e-05/1.803, allocations: 39.31 kB / 0.7634 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.472e-05/1.803, allocations: 18.88 kB / 0.7634 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.058e-05/1.803, allocations: 21.11 kB / 0.7634 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03822/1.841, allocations: 22.02 MB / 0.7849 GB, free: 162.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.777e-05/1.842, allocations: 7.625 kB / 0.7849 GB, free: 162.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/1.844, allocations: 455.3 kB / 0.7854 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01338/1.857, allocations: 5.009 MB / 0.7903 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008436/1.858, allocations: 66.59 kB / 0.7903 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03312/1.891, allocations: 30.52 MB / 0.8201 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.891, allocations: 11.94 kB / 0.8201 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02443/1.916, allocations: 16.49 MB / 0.8362 GB, free: 118.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004896/1.921, allocations: 1.34 MB / 0.8376 GB, free: 117.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/1.922, allocations: 75.92 kB / 0.8376 GB, free: 117.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003075/1.925, allocations: 267.6 kB / 0.8379 GB, free: 116.9 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009321/1.926, allocations: 258.4 kB / 0.8381 GB, free: 116.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002604/1.926, allocations: 99.92 kB / 0.8382 GB, free: 116.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005982/1.932, allocations: 4.734 MB / 0.8428 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.8e-07/1.932, allocations: 0 / 0.8428 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008896/1.941, allocations: 2.184 MB / 0.845 GB, free: 109.7 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.0006154/1.941, allocations: 217.9 kB / 0.8452 GB, free: 109.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01383/1.955, allocations: 10.89 MB / 0.8558 GB, free: 98.62 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.821e-05/1.955, allocations: 4 kB / 0.8558 GB, free: 98.61 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005539/1.961, allocations: 4.474 MB / 0.8602 GB, free: 94.1 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005652/1.967, allocations: 1.025 MB / 0.8612 GB, free: 93.13 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03661/2.003, allocations: 19.36 MB / 0.8801 GB, free: 73.75 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009974/2.013, allocations: 5.767 MB / 0.8857 GB, free: 67.95 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.00974/2.023, allocations: 2.751 MB / 0.8884 GB, free: 65.19 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/2.025, allocations: 419.4 kB / 0.8888 GB, free: 64.78 MB / 0.5138 GB Notification: Performance of SimCode: time 2.685e-06/2.025, allocations: 0 / 0.8888 GB, free: 64.78 MB / 0.5138 GB Notification: Performance of Templates: time 0.3974/2.422, allocations: 93.42 MB / 0.98 GB, free: 149.8 MB / 0.5138 GB 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)