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.00152/0.00152, allocations: 106.6 kB / 18.4 MB, free: 4.676 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.001793/0.001794, allocations: 190 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.307/1.307, 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.001224/0.001224, allocations: 52.14 kB / 329.2 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07237/0.0736, allocations: 46.62 MB / 375.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1641/0.2377, allocations: 20.59 MB / 396.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.2503, allocations: 6.22 MB / 402.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003502/0.2539, allocations: 165.5 kB / 402.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.266, allocations: 6.362 MB / 409.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009197/0.2752, allocations: 3.559 MB / 412.8 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003885/0.2791, allocations: 1.665 MB / 414.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01462/0.2937, allocations: 11.65 MB / 426.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00963/0.3034, allocations: 8.08 MB / 434.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005817/0.3092, allocations: 3.774 MB / 437.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006899/0.3161, allocations: 5.001 MB / 442.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002058/0.3182, allocations: 0.7539 MB / 443.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004249/0.3225, allocations: 1.705 MB / 445.4 MB, free: 9.828 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005216/0.3277, allocations: 4.485 MB / 449.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007399/0.3351, allocations: 4.674 MB / 454.5 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01673/0.3519, allocations: 14.2 MB / 468.7 MB, free: 2.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3519, allocations: 0 / 468.7 MB, free: 2.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3519, allocations: 0 / 468.7 MB, free: 2.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000416/0.3523, allocations: 0 / 468.7 MB, free: 2.383 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.02373/0.3761, allocations: 10.06 MB / 478.8 MB, free: 8.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3761, allocations: 12.03 kB / 478.8 MB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04597/0.4221, allocations: 5.286 MB / 484.1 MB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0197/0.4418, allocations: 8.548 MB / 492.7 MB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003701/0.4422, allocations: 448.2 kB / 493.1 MB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001921/0.4441, allocations: 0.6127 MB / 493.7 MB, free: 9.223 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03057/0.4747, allocations: 17.13 MB / 0.4989 GB, free: 7.031 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003117/0.4751, allocations: 103.1 kB / 0.499 GB, free: 6.93 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00139/0.4765, allocations: 275.8 kB / 0.4992 GB, free: 6.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004539/0.481, allocations: 2.862 MB / 0.502 GB, free: 3.797 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02699/0.508, allocations: 14.04 MB / 0.5157 GB, free: 5.742 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.3874/0.8954, allocations: 69.09 MB / 0.5832 GB, free: 104.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01891/0.9144, allocations: 7.479 MB / 0.5905 GB, free: 102.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004988/0.9194, allocations: 4.456 MB / 0.5949 GB, free: 100.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01744/0.9369, allocations: 12.75 MB / 0.6073 GB, free: 94.46 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.9369, allocations: 71.16 kB / 0.6074 GB, free: 94.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 5.34e-06/0.9369, allocations: 0 / 0.6074 GB, free: 94.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1402/1.077, allocations: 43.54 MB / 0.6499 GB, free: 60.73 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.844e-05/1.077, allocations: 394.3 kB / 0.6503 GB, free: 60.26 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008561/1.086, allocations: 7.385 MB / 0.6575 GB, free: 52.91 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000626/1.086, allocations: 85.64 kB / 0.6576 GB, free: 52.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002218/1.089, allocations: 5.239 MB / 0.6627 GB, free: 47.58 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/1.09, allocations: 1.348 MB / 0.664 GB, free: 46.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002112/1.092, allocations: 1.939 MB / 0.6659 GB, free: 44.29 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.358e-05/1.092, allocations: 309.1 kB / 0.6662 GB, free: 43.99 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004872/1.097, allocations: 4.278 MB / 0.6704 GB, free: 39.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006211/1.103, allocations: 9.195 MB / 0.6793 GB, free: 28.15 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/1.116, allocations: 14.25 MB / 0.6933 GB, free: 11.53 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.218e-05/1.116, allocations: 48 kB / 0.6933 GB, free: 11.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03098/1.147, allocations: 18 MB / 0.7109 GB, free: 9.438 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.643e-05/1.147, allocations: 80 kB / 0.711 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001638/1.147, allocations: 164 kB / 0.7111 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01608/1.163, allocations: 5.328 MB / 0.7163 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006712/1.17, allocations: 2.012 MB / 0.7183 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04468/1.215, allocations: 31.12 MB / 0.7487 GB, free: 2.293 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007415/1.222, allocations: 0.5501 MB / 0.7492 GB, free: 1.742 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.223, allocations: 0.5117 MB / 0.7497 GB, free: 1.23 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.1728/1.396, allocations: 3.634 MB / 0.7533 GB, free: 171.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.397, allocations: 0.6595 MB / 0.7539 GB, free: 171.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02326/1.421, allocations: 11.27 MB / 0.7649 GB, free: 170.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.03e-05/1.421, allocations: 16.36 kB / 0.7649 GB, free: 170.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/1.421, allocations: 1.281 kB / 0.7649 GB, free: 170.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003335/1.424, allocations: 1.337 MB / 0.7662 GB, free: 169.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009623/1.425, allocations: 62.67 kB / 0.7663 GB, free: 169.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003223/1.428, allocations: 261.9 kB / 0.7665 GB, free: 169.8 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007718/1.429, allocations: 312.1 kB / 0.7668 GB, free: 169.8 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02205/1.451, allocations: 11.09 MB / 0.7777 GB, free: 166.6 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01275/1.464, allocations: 11.56 MB / 0.789 GB, free: 162.2 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003264/1.467, allocations: 3.231 MB / 0.7921 GB, free: 161 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006091/1.473, allocations: 4.729 MB / 0.7967 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of Backend: time 7.11e-07/1.473, allocations: 0 / 0.7967 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01315/1.487, allocations: 8.257 MB / 0.8048 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of SimCode: time 0.02389/1.51, allocations: 18.03 MB / 0.8224 GB, free: 135.2 MB / 0.5138 GB Notification: Performance of Templates: time 0.1416/1.652, allocations: 102.7 MB / 0.9227 GB, free: 32.75 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)