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.00131/0.00131, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001547/0.001547, allocations: 196 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.471/1.471, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001276/0.001276, allocations: 47.94 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.106, allocations: 46.61 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2413/0.3473, allocations: 20.6 MB / 395.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.366, allocations: 6.215 MB / 401.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006419/0.3724, allocations: 173.5 kB / 401.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01285/0.3854, allocations: 6.35 MB / 407.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.3984, allocations: 3.451 MB / 411.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004901/0.4033, allocations: 1.669 MB / 413 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01747/0.4208, allocations: 11.65 MB / 424.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01395/0.4348, allocations: 8.089 MB / 432.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009181/0.444, allocations: 3.778 MB / 436.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008791/0.4529, allocations: 4.997 MB / 441.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003876/0.4568, allocations: 0.75 MB / 442.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00611/0.4629, allocations: 1.705 MB / 443.9 MB, free: 9.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007538/0.4705, allocations: 4.489 MB / 448.4 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009673/0.4802, allocations: 4.67 MB / 453.1 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02049/0.5007, allocations: 14.2 MB / 467.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.5008, allocations: 0 / 467.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5008, allocations: 0 / 467.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008584/0.5017, allocations: 0 / 467.3 MB, free: 2.488 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.03211/0.5338, allocations: 10.06 MB / 477.4 MB, free: 8.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.5339, allocations: 12.03 kB / 477.4 MB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04987/0.5837, allocations: 5.283 MB / 482.7 MB, free: 3.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02456/0.6083, allocations: 8.548 MB / 491.2 MB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005692/0.609, allocations: 452.2 kB / 491.6 MB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003358/0.6123, allocations: 0.6126 MB / 492.3 MB, free: 9.324 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03958/0.6519, allocations: 17.13 MB / 0.4974 GB, free: 7.141 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004525/0.6524, allocations: 99.11 kB / 0.4975 GB, free: 7.043 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001659/0.6541, allocations: 283.8 kB / 0.4978 GB, free: 6.766 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004647/0.6588, allocations: 2.858 MB / 0.5006 GB, free: 3.906 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03348/0.6923, allocations: 14.04 MB / 0.5143 GB, free: 5.852 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.4951/1.187, allocations: 69.09 MB / 0.5818 GB, free: 104.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01964/1.207, allocations: 7.471 MB / 0.5891 GB, free: 102.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005552/1.213, allocations: 4.464 MB / 0.5934 GB, free: 100.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01955/1.232, allocations: 12.75 MB / 0.6059 GB, free: 94.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/1.232, allocations: 66.22 kB / 0.606 GB, free: 94.54 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 5.7e-06/1.232, allocations: 0.5469 kB / 0.606 GB, free: 94.54 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1469/1.379, allocations: 43.54 MB / 0.6485 GB, free: 60.77 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/1.379, allocations: 406.2 kB / 0.6489 GB, free: 60.28 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00943/1.389, allocations: 7.385 MB / 0.6561 GB, free: 52.93 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001205/1.39, allocations: 81.7 kB / 0.6562 GB, free: 52.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003/1.393, allocations: 5.232 MB / 0.6613 GB, free: 47.61 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001704/1.395, allocations: 1.356 MB / 0.6626 GB, free: 46.26 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002484/1.397, allocations: 1.931 MB / 0.6645 GB, free: 44.32 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.091e-05/1.397, allocations: 301.1 kB / 0.6648 GB, free: 44.02 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004877/1.402, allocations: 4.289 MB / 0.669 GB, free: 39.73 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007572/1.41, allocations: 9.192 MB / 0.6779 GB, free: 28.17 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01509/1.425, allocations: 14.25 MB / 0.6918 GB, free: 11.55 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001497/1.425, allocations: 48 kB / 0.6919 GB, free: 11.51 MB / 478.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04036/1.466, allocations: 18.01 MB / 0.7095 GB, free: 9.453 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002249/1.466, allocations: 79.94 kB / 0.7095 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003391/1.466, allocations: 168 kB / 0.7097 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0169/1.483, allocations: 5.325 MB / 0.7149 GB, free: 3.875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007755/1.491, allocations: 2.012 MB / 0.7169 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04776/1.539, allocations: 31.1 MB / 0.7472 GB, free: 2.324 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008316/1.547, allocations: 0.5557 MB / 0.7478 GB, free: 1.77 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001989/1.549, allocations: 0.5078 MB / 0.7483 GB, free: 1.262 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.2218/1.771, allocations: 3.631 MB / 0.7518 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002349/1.773, allocations: 0.6627 MB / 0.7525 GB, free: 172 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02569/1.799, allocations: 11.27 MB / 0.7635 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.84e-05/1.799, allocations: 37.62 kB / 0.7635 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-05/1.799, allocations: 19.38 kB / 0.7635 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.523e-05/1.799, allocations: 24.39 kB / 0.7636 GB, free: 170.4 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05029/1.85, allocations: 22.01 MB / 0.7851 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.771e-05/1.85, allocations: 8.25 kB / 0.7851 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002208/1.852, allocations: 458.6 kB / 0.7855 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01372/1.866, allocations: 5.011 MB / 0.7904 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000923/1.867, allocations: 66.62 kB / 0.7905 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03654/1.903, allocations: 30.51 MB / 0.8203 GB, free: 134.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/1.903, allocations: 11.94 kB / 0.8203 GB, free: 134.9 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02746/1.931, allocations: 16.49 MB / 0.8364 GB, free: 118.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005181/1.936, allocations: 1.345 MB / 0.8377 GB, free: 117.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002247/1.938, allocations: 68 kB / 0.8377 GB, free: 117.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004571/1.943, allocations: 263.6 kB / 0.838 GB, free: 117 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/1.944, allocations: 273.5 kB / 0.8383 GB, free: 116.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005902/1.945, allocations: 103.3 kB / 0.8384 GB, free: 116.7 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008756/1.953, allocations: 4.73 MB / 0.843 GB, free: 112 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.61e-07/1.953, allocations: 0 / 0.843 GB, free: 112 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01097/1.964, allocations: 2.177 MB / 0.8451 GB, free: 109.8 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.001312/1.966, allocations: 227.8 kB / 0.8453 GB, free: 109.6 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0164/1.982, allocations: 10.88 MB / 0.8559 GB, free: 98.72 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/1.982, allocations: 4 kB / 0.8559 GB, free: 98.72 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007071/1.989, allocations: 4.475 MB / 0.8603 GB, free: 94.21 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01151/2.001, allocations: 1.036 MB / 0.8613 GB, free: 93.22 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03676/2.038, allocations: 19.36 MB / 0.8802 GB, free: 73.84 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008263/2.046, allocations: 5.767 MB / 0.8859 GB, free: 68.05 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006714/2.053, allocations: 2.746 MB / 0.8886 GB, free: 65.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/2.054, allocations: 415.4 kB / 0.8889 GB, free: 64.89 MB / 0.5138 GB Notification: Performance of SimCode: time 1.212e-06/2.054, allocations: 0 / 0.8889 GB, free: 64.89 MB / 0.5138 GB Notification: Performance of Templates: time 0.4243/2.479, allocations: 94.5 MB / 0.9812 GB, free: 149 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)