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.001871/0.00187, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001928/0.001928, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.64/1.64, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001303/0.001303, allocations: 51.92 kB / 280 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08827/0.08958, allocations: 46.62 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.0201/0.1097, allocations: 20.6 MB / 347.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.124, allocations: 6.216 MB / 353.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005262/0.1294, allocations: 171.4 kB / 353.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01279/0.1422, allocations: 6.355 MB / 360 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01076/0.1531, allocations: 3.451 MB / 363.4 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004333/0.1574, allocations: 1.662 MB / 365.1 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01714/0.1746, allocations: 11.67 MB / 376.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2182/0.3928, allocations: 8.084 MB / 384.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009331/0.4021, allocations: 3.764 MB / 388.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009008/0.4112, allocations: 4.977 MB / 393.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002756/0.414, allocations: 0.7467 MB / 394.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004774/0.4188, allocations: 1.705 MB / 396 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005598/0.4244, allocations: 4.39 MB / 400.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009299/0.4337, allocations: 4.675 MB / 405.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01468/0.4484, allocations: 13.88 MB / 419 MB, free: 3.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.4485, allocations: 3.938 kB / 419 MB, free: 3.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4485, allocations: 0 / 419 MB, free: 3.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004402/0.4489, allocations: 3.344 kB / 419 MB, free: 3.547 MB / 318.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.02472/0.4736, allocations: 10.05 MB / 429 MB, free: 9.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.4737, allocations: 12.03 kB / 429 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04738/0.5211, allocations: 5.285 MB / 434.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02253/0.5437, allocations: 8.385 MB / 442.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003835/0.5441, allocations: 447 kB / 443.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002666/0.5468, allocations: 0.6086 MB / 443.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03404/0.5808, allocations: 17.14 MB / 460.9 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003009/0.5812, allocations: 99.08 kB / 461 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000931/0.5821, allocations: 276.6 kB / 461.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004505/0.5866, allocations: 2.865 MB / 464.1 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03127/0.6179, allocations: 14.04 MB / 478.1 MB, free: 8.711 MB / 382.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.1013/0.7193, allocations: 69.43 MB / 0.5347 GB, free: 2.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2112/0.9306, allocations: 7.462 MB / 0.542 GB, free: 153.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006664/0.9373, allocations: 4.46 MB / 0.5464 GB, free: 151.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0197/0.957, allocations: 12.75 MB / 0.5588 GB, free: 145.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.518e-05/0.9571, allocations: 68.73 kB / 0.5589 GB, free: 145.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 6.572e-06/0.9571, allocations: 1.312 kB / 0.5589 GB, free: 145.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.139/1.096, allocations: 43.53 MB / 0.6014 GB, free: 116.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/1.096, allocations: 406.2 kB / 0.6018 GB, free: 115.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/1.108, allocations: 7.377 MB / 0.609 GB, free: 108.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001696/1.109, allocations: 83.03 kB / 0.6091 GB, free: 108.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003864/1.113, allocations: 5.239 MB / 0.6142 GB, free: 103 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001861/1.115, allocations: 1.345 MB / 0.6155 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002844/1.118, allocations: 1.938 MB / 0.6174 GB, free: 99.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.818e-05/1.118, allocations: 314.7 kB / 0.6177 GB, free: 99.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005892/1.124, allocations: 4.282 MB / 0.6219 GB, free: 95.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008521/1.133, allocations: 9.187 MB / 0.6309 GB, free: 83.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01578/1.148, allocations: 14.24 MB / 0.6448 GB, free: 66.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/1.149, allocations: 48 kB / 0.6448 GB, free: 66.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03472/1.183, allocations: 18.01 MB / 0.6624 GB, free: 48.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.183, allocations: 80.22 kB / 0.6625 GB, free: 48.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/1.184, allocations: 164 kB / 0.6626 GB, free: 48.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01511/1.199, allocations: 5.339 MB / 0.6679 GB, free: 43.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006598/1.205, allocations: 2.012 MB / 0.6698 GB, free: 41.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2437/1.449, allocations: 31.12 MB / 0.7002 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008532/1.458, allocations: 0.5518 MB / 0.7007 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00182/1.46, allocations: 0.5129 MB / 0.7012 GB, free: 126.1 MB / 446.1 MB 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.007177/1.467, allocations: 3.624 MB / 0.7048 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/1.468, allocations: 0.6692 MB / 0.7054 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02187/1.49, allocations: 11.26 MB / 0.7164 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.872e-05/1.49, allocations: 40.17 kB / 0.7165 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.481e-05/1.49, allocations: 19.97 kB / 0.7165 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.702e-05/1.49, allocations: 23.59 kB / 0.7165 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04091/1.531, allocations: 22.16 MB / 0.7382 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.856e-05/1.531, allocations: 10.59 kB / 0.7382 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002109/1.533, allocations: 456.5 kB / 0.7386 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01343/1.547, allocations: 5.029 MB / 0.7435 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007594/1.548, allocations: 70.5 kB / 0.7436 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03395/1.582, allocations: 30.52 MB / 0.7734 GB, free: 86.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/1.582, allocations: 11.94 kB / 0.7734 GB, free: 86.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02539/1.607, allocations: 16.49 MB / 0.7895 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003903/1.611, allocations: 1.333 MB / 0.7908 GB, free: 68.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00152/1.613, allocations: 71.98 kB / 0.7909 GB, free: 68.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003544/1.616, allocations: 264.6 kB / 0.7911 GB, free: 68.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009134/1.617, allocations: 266.6 kB / 0.7914 GB, free: 68.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002533/1.617, allocations: 102.9 kB / 0.7915 GB, free: 68.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006486/1.624, allocations: 4.73 MB / 0.7961 GB, free: 63.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.533e-06/1.624, allocations: 0 / 0.7961 GB, free: 63.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008173/1.632, allocations: 2.187 MB / 0.7982 GB, free: 61.22 MB / 446.1 MB 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.0005883/1.633, allocations: 225.6 kB / 0.7984 GB, free: 61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01955/1.652, allocations: 14.32 MB / 0.8124 GB, free: 46.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.652, allocations: 0 / 0.8124 GB, free: 46.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006575/1.659, allocations: 4.48 MB / 0.8168 GB, free: 42.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00692/1.666, allocations: 1.038 MB / 0.8178 GB, free: 41.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03169/1.697, allocations: 19.57 MB / 0.8369 GB, free: 21.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006579/1.704, allocations: 5.772 MB / 0.8426 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006904/1.711, allocations: 2.748 MB / 0.8453 GB, free: 13.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.712, allocations: 415.4 kB / 0.8456 GB, free: 12.67 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/1.712, allocations: 0 / 0.8456 GB, free: 12.67 MB / 446.1 MB Notification: Performance of Templates: time 0.3596/2.072, allocations: 98.52 MB / 0.9419 GB, free: 70.23 MB / 446.1 MB 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)