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.001049/0.001049, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001153/0.001153, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.353/1.353, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001127/0.001127, allocations: 51.92 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08882, allocations: 46.61 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2846/0.3734, allocations: 111.5 MB / 437.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.06351/0.437, allocations: 21.29 MB / 458.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02965/0.4667, allocations: 0.5026 MB / 459.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01243/0.4792, allocations: 6.366 MB / 465.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.4904, allocations: 3.281 MB / 468.9 MB, free: 7.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004418/0.4949, allocations: 1.537 MB / 470.4 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02087/0.5157, allocations: 16.36 MB / 486.8 MB, free: 5.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01081/0.5266, allocations: 7.894 MB / 494.7 MB, free: 13.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006602/0.5333, allocations: 3.395 MB / 498.1 MB, free: 9.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007853/0.5411, allocations: 5.324 MB / 0.4916 GB, free: 4.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002516/0.5437, allocations: 0.5 MB / 0.4921 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0049/0.5486, allocations: 1.529 MB / 0.4936 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006515/0.5551, allocations: 4.2 MB / 0.4977 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009374/0.5645, allocations: 4.42 MB / 0.502 GB, free: 9.719 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01793/0.5825, allocations: 13.65 MB / 0.5153 GB, free: 12.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.5825, allocations: 0 / 0.5153 GB, free: 12.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.148e-06/0.5826, allocations: 4 kB / 0.5154 GB, free: 12.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005944/0.5832, allocations: 3.938 kB / 0.5154 GB, free: 12.02 MB / 430.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.02894/0.6121, allocations: 10.06 MB / 0.5252 GB, free: 1.867 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/0.6122, allocations: 12.03 kB / 0.5252 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04286/0.6551, allocations: 5.271 MB / 0.5303 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02013/0.6752, allocations: 8.376 MB / 0.5385 GB, free: 4.098 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003876/0.6757, allocations: 448.2 kB / 0.5389 GB, free: 3.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002335/0.678, allocations: 0.6204 MB / 0.5395 GB, free: 3.039 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4968/1.175, allocations: 17.12 MB / 0.5563 GB, free: 64.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005229/1.175, allocations: 97.75 kB / 0.5564 GB, free: 64.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001732/1.177, allocations: 282.2 kB / 0.5566 GB, free: 64.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004379/1.182, allocations: 2.856 MB / 0.5594 GB, free: 64.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02823/1.21, allocations: 14.04 MB / 0.5731 GB, free: 64.03 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.08033/1.29, allocations: 69.43 MB / 0.6409 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0193/1.31, allocations: 7.462 MB / 0.6482 GB, free: 6.777 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006695/1.316, allocations: 4.47 MB / 0.6526 GB, free: 2.301 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02293/1.339, allocations: 12.77 MB / 0.6651 GB, free: 5.332 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.763e-05/1.339, allocations: 67.09 kB / 0.6651 GB, free: 5.262 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 5.54e-06/1.339, allocations: 0 / 0.6651 GB, free: 5.262 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1577/1.497, allocations: 43.51 MB / 0.7076 GB, free: 10.04 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/1.497, allocations: 400.9 kB / 0.708 GB, free: 9.559 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01412/1.511, allocations: 7.384 MB / 0.7152 GB, free: 2.211 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001324/1.513, allocations: 94.47 kB / 0.7153 GB, free: 2.117 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005903/1.519, allocations: 5.231 MB / 0.7204 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003216/1.522, allocations: 1.349 MB / 0.7217 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008385/1.53, allocations: 1.935 MB / 0.7236 GB, free: 9.625 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001608/1.531, allocations: 309.1 kB / 0.7239 GB, free: 9.32 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0118/1.542, allocations: 4.282 MB / 0.7281 GB, free: 5.031 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2533/1.796, allocations: 9.19 MB / 0.7371 GB, free: 234.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02285/1.819, allocations: 14.24 MB / 0.751 GB, free: 225.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003093/1.819, allocations: 51.97 kB / 0.751 GB, free: 225.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04064/1.86, allocations: 18.01 MB / 0.7686 GB, free: 219.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.00045/1.86, allocations: 76.5 kB / 0.7687 GB, free: 219.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004953/1.861, allocations: 173.4 kB / 0.7688 GB, free: 219.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01615/1.877, allocations: 5.334 MB / 0.774 GB, free: 218.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007444/1.884, allocations: 2.01 MB / 0.776 GB, free: 218.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04126/1.926, allocations: 29 MB / 0.8043 GB, free: 193.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01002/1.936, allocations: 0.555 MB / 0.8049 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002266/1.938, allocations: 0.5117 MB / 0.8054 GB, free: 192.7 MB / 0.5294 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.009578/1.948, allocations: 3.617 MB / 0.8089 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002525/1.95, allocations: 0.662 MB / 0.8095 GB, free: 188.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02427/1.975, allocations: 11.27 MB / 0.8206 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.279e-05/1.975, allocations: 40 kB / 0.8206 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.848e-05/1.975, allocations: 21.97 kB / 0.8206 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.448e-05/1.975, allocations: 15.94 kB / 0.8206 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04608/2.021, allocations: 22.17 MB / 0.8423 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.951e-05/2.021, allocations: 12.92 kB / 0.8423 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002666/2.024, allocations: 459.2 kB / 0.8427 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01462/2.038, allocations: 5.041 MB / 0.8476 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008122/2.039, allocations: 68 kB / 0.8477 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03462/2.074, allocations: 28.39 MB / 0.8754 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/2.074, allocations: 12 kB / 0.8755 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02775/2.102, allocations: 16.49 MB / 0.8916 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003889/2.106, allocations: 1.338 MB / 0.8929 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002116/2.108, allocations: 71.98 kB / 0.8929 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00467/2.112, allocations: 267.6 kB / 0.8932 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001339/2.114, allocations: 266.5 kB / 0.8934 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005183/2.114, allocations: 99.98 kB / 0.8935 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.009064/2.123, allocations: 4.734 MB / 0.8982 GB, free: 97.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/2.123, allocations: 0 / 0.8982 GB, free: 97.62 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0124/2.136, allocations: 2.178 MB / 0.9003 GB, free: 95.45 MB / 0.5294 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.001224/2.137, allocations: 234.1 kB / 0.9005 GB, free: 95.23 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01766/2.155, allocations: 10.83 MB / 0.9111 GB, free: 84.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/2.155, allocations: 0 / 0.9111 GB, free: 84.36 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006635/2.161, allocations: 4.489 MB / 0.9155 GB, free: 79.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00814/2.17, allocations: 0.9523 MB / 0.9164 GB, free: 78.88 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03624/2.206, allocations: 23.32 MB / 0.9392 GB, free: 55.44 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009456/2.215, allocations: 5.764 MB / 0.9448 GB, free: 49.63 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007479/2.223, allocations: 2.751 MB / 0.9475 GB, free: 46.88 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/2.225, allocations: 419.4 kB / 0.9479 GB, free: 46.46 MB / 0.5294 GB Notification: Performance of SimCode: time 1.282e-06/2.225, allocations: 0 / 0.9479 GB, free: 46.46 MB / 0.5294 GB Notification: Performance of Templates: time 0.368/2.593, allocations: 94.74 MB / 1.04 GB, free: 182.7 MB / 0.5294 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)