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.0096/0.0096, allocations: 99.86 kB / 15.73 MB, free: 6.039 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.00181/0.00181, allocations: 202.8 kB / 16.68 MB, free: 5.965 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.403/1.403, allocations: 205.1 MB / 222.5 MB, free: 4.27 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.001188/0.001188, allocations: 51.27 kB / 326.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09363/0.09482, allocations: 46.63 MB / 373.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02094/0.1158, allocations: 20.58 MB / 393.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01447/0.1303, allocations: 6.223 MB / 400 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004138/0.1345, allocations: 163.4 kB / 400.2 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01219/0.1467, allocations: 6.359 MB / 406.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009612/0.1564, allocations: 3.447 MB / 410 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004384/0.1608, allocations: 1.677 MB / 411.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01937/0.1802, allocations: 11.65 MB / 423.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01422/0.1945, allocations: 8.076 MB / 431.4 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008074/0.2026, allocations: 3.77 MB / 435.2 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008984/0.2116, allocations: 4.982 MB / 440.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002904/0.2145, allocations: 0.7461 MB / 440.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005105/0.2197, allocations: 1.705 MB / 442.6 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005543/0.2252, allocations: 4.392 MB / 447 MB, free: 7.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007431/0.2327, allocations: 4.67 MB / 451.7 MB, free: 2.625 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2891/0.5218, allocations: 14.26 MB / 465.9 MB, free: 29.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.114e-05/0.5218, allocations: 1.219 kB / 465.9 MB, free: 29.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.5219, allocations: 0 / 465.9 MB, free: 29.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007958/0.5227, allocations: 0 / 465.9 MB, free: 29.04 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.03897/0.5616, allocations: 10.32 MB / 476.2 MB, free: 25.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.5617, allocations: 11.78 kB / 476.2 MB, free: 25.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0469/0.6086, allocations: 5.331 MB / 481.6 MB, free: 24.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/0.633, allocations: 8.594 MB / 490.2 MB, free: 21.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004141/0.6335, allocations: 449.8 kB / 490.6 MB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004028/0.6375, allocations: 0.6147 MB / 491.2 MB, free: 21.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04071/0.6782, allocations: 17.13 MB / 0.4964 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005699/0.6788, allocations: 98.92 kB / 0.4965 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002403/0.6812, allocations: 276.7 kB / 0.4968 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003952/0.6852, allocations: 2.867 MB / 0.4996 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03168/0.7169, allocations: 14.03 MB / 0.5133 GB, free: 8.004 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.1167/0.8337, allocations: 69.22 MB / 0.5809 GB, free: 1.688 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02055/0.8542, allocations: 7.47 MB / 0.5882 GB, free: 10.09 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006608/0.8609, allocations: 4.462 MB / 0.5925 GB, free: 5.625 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02879/0.8897, allocations: 12.77 MB / 0.605 GB, free: 8.656 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001086/0.8899, allocations: 71.56 kB / 0.6051 GB, free: 8.582 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 8.365e-06/0.8899, allocations: 0 / 0.6051 GB, free: 8.582 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.4244/1.314, allocations: 43.96 MB / 0.648 GB, free: 175.1 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/1.314, allocations: 407 kB / 0.6484 GB, free: 174.6 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01199/1.326, allocations: 7.396 MB / 0.6556 GB, free: 172.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001238/1.328, allocations: 88.83 kB / 0.6557 GB, free: 172 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003196/1.331, allocations: 5.413 MB / 0.661 GB, free: 167.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001999/1.333, allocations: 1.41 MB / 0.6624 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002981/1.336, allocations: 1.955 MB / 0.6643 GB, free: 165.9 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.315e-05/1.336, allocations: 305.1 kB / 0.6646 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005633/1.342, allocations: 4.279 MB / 0.6687 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007648/1.349, allocations: 9.2 MB / 0.6777 GB, free: 151.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01763/1.367, allocations: 14.25 MB / 0.6916 GB, free: 135.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/1.367, allocations: 48 kB / 0.6917 GB, free: 135.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03324/1.4, allocations: 18.05 MB / 0.7093 GB, free: 117.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001914/1.401, allocations: 79.94 kB / 0.7094 GB, free: 117.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002383/1.401, allocations: 168 kB / 0.7096 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01403/1.415, allocations: 5.322 MB / 0.7147 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006757/1.422, allocations: 2.016 MB / 0.7167 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03901/1.461, allocations: 31.12 MB / 0.7471 GB, free: 78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009452/1.47, allocations: 0.5479 MB / 0.7476 GB, free: 77.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001868/1.472, allocations: 0.5195 MB / 0.7482 GB, free: 76.94 MB / 0.4981 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.008174/1.48, allocations: 3.625 MB / 0.7517 GB, free: 73.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001953/1.482, allocations: 0.6985 MB / 0.7524 GB, free: 72.6 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02257/1.505, allocations: 11.27 MB / 0.7634 GB, free: 61.26 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-05/1.505, allocations: 41.23 kB / 0.7634 GB, free: 61.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-05/1.505, allocations: 20 kB / 0.7634 GB, free: 61.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.928e-05/1.505, allocations: 19.94 kB / 0.7635 GB, free: 61.19 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0495/1.555, allocations: 22.03 MB / 0.785 GB, free: 39.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.466e-05/1.555, allocations: 8 kB / 0.785 GB, free: 39.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/1.557, allocations: 463.4 kB / 0.7854 GB, free: 38.56 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01445/1.571, allocations: 5.003 MB / 0.7903 GB, free: 33.54 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001462/1.573, allocations: 68 kB / 0.7904 GB, free: 33.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.311/1.884, allocations: 30.54 MB / 0.8202 GB, free: 160.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.916e-06/1.884, allocations: 13.77 kB / 0.8202 GB, free: 160.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02813/1.912, allocations: 16.52 MB / 0.8363 GB, free: 154.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004875/1.917, allocations: 1.375 MB / 0.8377 GB, free: 154.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003059/1.92, allocations: 72.59 kB / 0.8377 GB, free: 154.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005588/1.926, allocations: 262.2 kB / 0.838 GB, free: 154.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001966/1.928, allocations: 266.8 kB / 0.8383 GB, free: 154.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008948/1.929, allocations: 106.3 kB / 0.8384 GB, free: 154.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.01083/1.94, allocations: 4.729 MB / 0.843 GB, free: 152.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.8e-07/1.94, allocations: 0 / 0.843 GB, free: 152.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01432/1.954, allocations: 2.181 MB / 0.8451 GB, free: 152.3 MB / 0.4981 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.001461/1.955, allocations: 234.8 kB / 0.8453 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01871/1.974, allocations: 10.89 MB / 0.856 GB, free: 142.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/1.974, allocations: 4 kB / 0.856 GB, free: 142.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.007513/1.982, allocations: 4.482 MB / 0.8603 GB, free: 138.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01189/1.994, allocations: 1.031 MB / 0.8613 GB, free: 137.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04029/2.034, allocations: 19.64 MB / 0.8805 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/2.044, allocations: 5.764 MB / 0.8862 GB, free: 113.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008096/2.052, allocations: 2.756 MB / 0.8888 GB, free: 110.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/2.054, allocations: 407.4 kB / 0.8892 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.032e-06/2.054, allocations: 4 kB / 0.8892 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.1401/2.195, allocations: 93.41 MB / 0.9805 GB, free: 17.15 MB / 0.4981 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)