Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.007427/0.007427, allocations: 107.4 kB / 15.74 MB, free: 6.02 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.001252/0.001252, allocations: 193.2 kB / 16.67 MB, free: 5.934 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.455/1.455, allocations: 205.1 MB / 222.6 MB, free: 4.559 MB / 174.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.001116/0.001116, allocations: 46.59 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09784, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02057/0.1184, allocations: 20.59 MB / 393.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.1322, allocations: 6.219 MB / 400 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003985/0.1362, allocations: 167.4 kB / 400.2 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01138/0.1476, allocations: 6.355 MB / 406.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009503/0.1572, allocations: 3.56 MB / 410.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004034/0.1612, allocations: 1.665 MB / 411.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01772/0.179, allocations: 11.66 MB / 423.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01646/0.1955, allocations: 8.076 MB / 431.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01152/0.2071, allocations: 3.778 MB / 435.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01204/0.2191, allocations: 4.997 MB / 440.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004471/0.2237, allocations: 0.75 MB / 441 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007314/0.231, allocations: 1.709 MB / 442.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008287/0.2393, allocations: 4.485 MB / 447.2 MB, free: 6.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01408/0.2535, allocations: 4.67 MB / 451.9 MB, free: 2.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3109/0.5644, allocations: 14.26 MB / 466.1 MB, free: 22.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.5645, allocations: 0 / 466.1 MB, free: 22.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.5645, allocations: 0 / 466.1 MB, free: 22.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008586/0.5654, allocations: 3.438 kB / 466.1 MB, free: 22.96 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.04808/0.6135, allocations: 10.32 MB / 476.5 MB, free: 19.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.6135, allocations: 9.719 kB / 476.5 MB, free: 19.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05067/0.6642, allocations: 5.333 MB / 481.8 MB, free: 18.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02769/0.692, allocations: 8.588 MB / 490.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004393/0.6924, allocations: 455.9 kB / 490.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004398/0.6969, allocations: 0.6167 MB / 491.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03861/0.7355, allocations: 17.13 MB / 0.4967 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006285/0.7362, allocations: 94.55 kB / 0.4968 GB, free: 3.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003241/0.7394, allocations: 278.6 kB / 0.497 GB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00465/0.7441, allocations: 2.853 MB / 0.4998 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04068/0.7848, allocations: 14.04 MB / 0.5135 GB, free: 3.164 MB / 398.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.1238/0.9087, allocations: 69.23 MB / 0.5811 GB, free: 12.84 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02145/0.9302, allocations: 7.464 MB / 0.5884 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007109/0.9373, allocations: 4.461 MB / 0.5928 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03072/0.9681, allocations: 12.77 MB / 0.6053 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/0.9683, allocations: 64.56 kB / 0.6053 GB, free: 3.742 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 1.178e-05/0.9684, allocations: 0 / 0.6053 GB, free: 3.742 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.4809/1.449, allocations: 43.97 MB / 0.6482 GB, free: 194.1 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/1.45, allocations: 401 kB / 0.6486 GB, free: 193.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01758/1.467, allocations: 7.4 MB / 0.6559 GB, free: 191.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001505/1.469, allocations: 80.95 kB / 0.6559 GB, free: 191.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00386/1.473, allocations: 5.42 MB / 0.6612 GB, free: 187.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002395/1.475, allocations: 1.414 MB / 0.6626 GB, free: 186.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003342/1.478, allocations: 1.952 MB / 0.6645 GB, free: 185.8 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.538e-05/1.478, allocations: 310.6 kB / 0.6648 GB, free: 185.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005778/1.484, allocations: 4.283 MB / 0.669 GB, free: 184 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008392/1.493, allocations: 9.191 MB / 0.678 GB, free: 176 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0157/1.508, allocations: 14.25 MB / 0.6919 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001448/1.509, allocations: 48 kB / 0.6919 GB, free: 161.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03466/1.543, allocations: 18.03 MB / 0.7095 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000298/1.544, allocations: 76 kB / 0.7096 GB, free: 143.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003283/1.544, allocations: 168 kB / 0.7098 GB, free: 143.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01524/1.559, allocations: 5.335 MB / 0.715 GB, free: 137.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007635/1.567, allocations: 2.012 MB / 0.7169 GB, free: 135.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04581/1.613, allocations: 31.12 MB / 0.7473 GB, free: 104.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01142/1.624, allocations: 0.5541 MB / 0.7479 GB, free: 103.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003125/1.627, allocations: 0.5134 MB / 0.7484 GB, free: 103.3 MB / 0.5137 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.01155/1.639, allocations: 3.629 MB / 0.7519 GB, free: 99.68 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003401/1.642, allocations: 0.7024 MB / 0.7526 GB, free: 98.97 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0283/1.671, allocations: 11.26 MB / 0.7636 GB, free: 87.64 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.165e-05/1.671, allocations: 45.41 kB / 0.7637 GB, free: 87.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.55e-05/1.671, allocations: 23.28 kB / 0.7637 GB, free: 87.58 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001034/1.671, allocations: 15.94 kB / 0.7637 GB, free: 87.56 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06233/1.733, allocations: 22.04 MB / 0.7852 GB, free: 65.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.164e-05/1.733, allocations: 8 kB / 0.7852 GB, free: 65.38 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/1.736, allocations: 448.2 kB / 0.7856 GB, free: 64.94 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.015/1.751, allocations: 5.011 MB / 0.7905 GB, free: 59.91 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001908/1.753, allocations: 68 kB / 0.7906 GB, free: 59.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04023/1.793, allocations: 30.53 MB / 0.8204 GB, free: 28.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.793, allocations: 11.94 kB / 0.8204 GB, free: 28.89 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2828/2.076, allocations: 16.52 MB / 0.8366 GB, free: 175.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005718/2.082, allocations: 1.378 MB / 0.8379 GB, free: 175.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002423/2.084, allocations: 69.16 kB / 0.838 GB, free: 175.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005373/2.09, allocations: 259.5 kB / 0.8382 GB, free: 175.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/2.091, allocations: 272.1 kB / 0.8385 GB, free: 175.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003086/2.091, allocations: 96.73 kB / 0.8386 GB, free: 175.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.008771/2.1, allocations: 4.728 MB / 0.8432 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.4e-07/2.1, allocations: 0 / 0.8432 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01262/2.112, allocations: 2.191 MB / 0.8453 GB, free: 174.5 MB / 0.5137 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.001061/2.114, allocations: 225.2 kB / 0.8456 GB, free: 174.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01638/2.13, allocations: 10.89 MB / 0.8562 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/2.13, allocations: 2.5 kB / 0.8562 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00739/2.137, allocations: 4.494 MB / 0.8606 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01618/2.154, allocations: 1.028 MB / 0.8616 GB, free: 167.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0472/2.201, allocations: 19.65 MB / 0.8808 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01369/2.215, allocations: 5.766 MB / 0.8864 GB, free: 147 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.008655/2.223, allocations: 2.745 MB / 0.8891 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002474/2.226, allocations: 411.4 kB / 0.8895 GB, free: 144.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.673e-06/2.226, allocations: 4 kB / 0.8895 GB, free: 144.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.1537/2.379, allocations: 93.42 MB / 0.9807 GB, free: 50.85 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)