Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_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.001294/0.001294, allocations: 107.5 kB / 18.41 MB, free: 4.672 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.001322/0.001322, allocations: 187 kB / 19.34 MB, free: 3.754 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.253/1.253, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001207/0.001207, allocations: 51.92 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07586/0.07707, allocations: 46.63 MB / 375.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1632/0.2403, allocations: 20.6 MB / 396.5 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01186/0.2522, allocations: 6.207 MB / 402.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.2554, allocations: 169.3 kB / 402.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01163/0.2671, allocations: 6.362 MB / 409.2 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007861/0.275, allocations: 3.451 MB / 412.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003356/0.2784, allocations: 1.664 MB / 414.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01485/0.2932, allocations: 11.65 MB / 426 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009505/0.3027, allocations: 8.079 MB / 434 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005546/0.3083, allocations: 3.778 MB / 437.8 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006807/0.3151, allocations: 4.978 MB / 442.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001999/0.3171, allocations: 0.7461 MB / 443.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004124/0.3213, allocations: 1.705 MB / 445.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004934/0.3262, allocations: 4.396 MB / 449.6 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006863/0.3331, allocations: 4.674 MB / 454.3 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.347, allocations: 14.19 MB / 468.5 MB, free: 2.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.347, allocations: 0 / 468.5 MB, free: 2.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.347, allocations: 0 / 468.5 MB, free: 2.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003018/0.3473, allocations: 0 / 468.5 MB, free: 2.625 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.02247/0.3698, allocations: 10.07 MB / 478.6 MB, free: 8.465 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3699, allocations: 12.02 kB / 478.6 MB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04569/0.4156, allocations: 5.283 MB / 483.9 MB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01944/0.435, allocations: 8.552 MB / 492.4 MB, free: 10.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004093/0.4355, allocations: 444.2 kB / 492.9 MB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001975/0.4374, allocations: 0.6165 MB / 493.5 MB, free: 9.457 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03077/0.4682, allocations: 17.13 MB / 0.4986 GB, free: 7.273 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003486/0.4686, allocations: 111 kB / 0.4987 GB, free: 7.164 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001496/0.4701, allocations: 275.8 kB / 0.499 GB, free: 6.895 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004608/0.4747, allocations: 2.854 MB / 0.5018 GB, free: 4.039 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02893/0.5037, allocations: 14.04 MB / 0.5155 GB, free: 5.984 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.3784/0.8822, allocations: 69.1 MB / 0.583 GB, free: 104.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01769/0.8999, allocations: 7.47 MB / 0.5903 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004521/0.9044, allocations: 4.458 MB / 0.5946 GB, free: 100.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/0.919, allocations: 12.76 MB / 0.6071 GB, free: 94.66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.9191, allocations: 66.62 kB / 0.6071 GB, free: 94.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 4.549e-06/0.9191, allocations: 0 / 0.6071 GB, free: 94.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1321/1.051, allocations: 43.54 MB / 0.6497 GB, free: 60.77 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.797e-05/1.051, allocations: 398.3 kB / 0.65 GB, free: 60.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007649/1.059, allocations: 7.385 MB / 0.6573 GB, free: 52.94 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005722/1.06, allocations: 81.7 kB / 0.6573 GB, free: 52.86 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002133/1.062, allocations: 5.237 MB / 0.6624 GB, free: 47.62 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00103/1.063, allocations: 1.35 MB / 0.6638 GB, free: 46.28 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002117/1.065, allocations: 1.931 MB / 0.6657 GB, free: 44.34 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.416e-05/1.065, allocations: 313.1 kB / 0.666 GB, free: 44.03 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004742/1.07, allocations: 4.282 MB / 0.6701 GB, free: 39.74 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0061/1.076, allocations: 9.19 MB / 0.6791 GB, free: 28.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/1.088, allocations: 14.25 MB / 0.693 GB, free: 11.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.84e-05/1.088, allocations: 52 kB / 0.6931 GB, free: 11.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03116/1.119, allocations: 18.01 MB / 0.7107 GB, free: 9.477 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001691/1.12, allocations: 76.19 kB / 0.7107 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002436/1.12, allocations: 168 kB / 0.7109 GB, free: 9.238 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01558/1.135, allocations: 5.326 MB / 0.7161 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006553/1.142, allocations: 2.004 MB / 0.7181 GB, free: 1.891 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0424/1.184, allocations: 31.1 MB / 0.7484 GB, free: 2.355 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007369/1.192, allocations: 0.5548 MB / 0.749 GB, free: 1.801 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001361/1.193, allocations: 0.5117 MB / 0.7495 GB, free: 1.289 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.1778/1.371, allocations: 3.633 MB / 0.753 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00175/1.373, allocations: 0.6606 MB / 0.7537 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02274/1.395, allocations: 11.27 MB / 0.7647 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.753e-05/1.396, allocations: 20.53 kB / 0.7647 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/1.396, allocations: 1.312 kB / 0.7647 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00307/1.399, allocations: 1.34 MB / 0.766 GB, free: 170.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009105/1.4, allocations: 58.88 kB / 0.7661 GB, free: 170.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003116/1.403, allocations: 259.2 kB / 0.7663 GB, free: 170 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008209/1.404, allocations: 317.5 kB / 0.7666 GB, free: 170 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02129/1.425, allocations: 11.08 MB / 0.7774 GB, free: 166.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01202/1.437, allocations: 11.56 MB / 0.7887 GB, free: 162.4 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003136/1.44, allocations: 3.232 MB / 0.7919 GB, free: 161.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005842/1.446, allocations: 4.723 MB / 0.7965 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of Backend: time 8.61e-07/1.446, allocations: 0 / 0.7965 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01285/1.459, allocations: 8.258 MB / 0.8046 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of SimCode: time 0.02634/1.485, allocations: 18.02 MB / 0.8222 GB, free: 135.3 MB / 0.5138 GB Notification: Performance of Templates: time 0.146/1.631, allocations: 99.56 MB / 0.9194 GB, free: 36.01 MB / 0.5138 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)