Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.006311/0.006312, allocations: 100.5 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.001166/0.001166, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.46/1.46, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001541/0.001541, allocations: 52.98 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1036, allocations: 46.62 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02269/0.1264, allocations: 20.6 MB / 393.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.143, allocations: 6.219 MB / 400 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005899/0.1489, allocations: 167.4 kB / 400.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01257/0.1616, allocations: 6.355 MB / 406.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.173, allocations: 3.556 MB / 410.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005199/0.1783, allocations: 1.665 MB / 411.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01774/0.196, allocations: 11.65 MB / 423.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01254/0.2086, allocations: 8.088 MB / 431.5 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009368/0.218, allocations: 3.774 MB / 435.3 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01047/0.2285, allocations: 5.001 MB / 440.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003946/0.2325, allocations: 0.7461 MB / 441 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006481/0.239, allocations: 1.709 MB / 442.7 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00847/0.2475, allocations: 4.485 MB / 447.2 MB, free: 6.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01115/0.2588, allocations: 4.666 MB / 451.9 MB, free: 2.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2737/0.5325, allocations: 14.21 MB / 466.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-05/0.5326, allocations: 3.656 kB / 466.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.5326, allocations: 0 / 466.1 MB, free: 22.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001074/0.5337, allocations: 1.156 kB / 466.1 MB, free: 22.7 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.03757/0.5713, allocations: 10.06 MB / 476.2 MB, free: 19.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.5713, allocations: 8.812 kB / 476.2 MB, free: 19.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04043/0.6118, allocations: 5.277 MB / 481.4 MB, free: 18.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02087/0.6327, allocations: 8.558 MB / 490 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003438/0.6331, allocations: 448.4 kB / 490.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003215/0.6363, allocations: 0.6141 MB / 491 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03545/0.6717, allocations: 17.13 MB / 0.4963 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005667/0.6724, allocations: 91.36 kB / 0.4964 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002805/0.6752, allocations: 283.4 kB / 0.4966 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00394/0.6791, allocations: 2.861 MB / 0.4994 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03383/0.713, allocations: 14.04 MB / 0.5131 GB, free: 3.445 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.1114/0.8244, allocations: 69.1 MB / 0.5806 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01984/0.8443, allocations: 7.468 MB / 0.5879 GB, free: 5.605 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006904/0.8512, allocations: 4.458 MB / 0.5923 GB, free: 1.137 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02409/0.8753, allocations: 12.74 MB / 0.6047 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.324e-05/0.8755, allocations: 76.3 kB / 0.6048 GB, free: 4.094 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 1.037e-05/0.8755, allocations: 0 / 0.6048 GB, free: 4.094 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.4274/1.303, allocations: 43.53 MB / 0.6473 GB, free: 194.2 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001818/1.303, allocations: 399 kB / 0.6477 GB, free: 193.8 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01344/1.317, allocations: 7.384 MB / 0.6549 GB, free: 191.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001386/1.318, allocations: 85.33 kB / 0.655 GB, free: 191.5 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003739/1.322, allocations: 5.235 MB / 0.6601 GB, free: 188.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002491/1.324, allocations: 1.35 MB / 0.6614 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003809/1.328, allocations: 1.938 MB / 0.6633 GB, free: 186.6 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.189e-05/1.328, allocations: 309.8 kB / 0.6636 GB, free: 186.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005975/1.334, allocations: 4.285 MB / 0.6678 GB, free: 184.8 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009922/1.344, allocations: 9.19 MB / 0.6767 GB, free: 176.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01688/1.361, allocations: 14.26 MB / 0.6907 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001569/1.361, allocations: 48 kB / 0.6907 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04306/1.404, allocations: 18 MB / 0.7083 GB, free: 144.4 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/1.404, allocations: 76 kB / 0.7084 GB, free: 144.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/1.405, allocations: 168 kB / 0.7085 GB, free: 144.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01427/1.419, allocations: 5.336 MB / 0.7137 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007141/1.426, allocations: 2.016 MB / 0.7157 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03705/1.463, allocations: 31.1 MB / 0.7461 GB, free: 105.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01099/1.474, allocations: 0.5461 MB / 0.7466 GB, free: 104.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002194/1.477, allocations: 0.5204 MB / 0.7471 GB, free: 104.2 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.007986/1.485, allocations: 3.633 MB / 0.7507 GB, free: 100.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001741/1.486, allocations: 0.6595 MB / 0.7513 GB, free: 99.88 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02031/1.507, allocations: 11.26 MB / 0.7623 GB, free: 88.54 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.246e-05/1.507, allocations: 36.78 kB / 0.7623 GB, free: 88.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.419e-05/1.507, allocations: 23.98 kB / 0.7624 GB, free: 88.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.987e-05/1.507, allocations: 19.94 kB / 0.7624 GB, free: 88.46 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04279/1.55, allocations: 22.02 MB / 0.7839 GB, free: 66.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.001e-05/1.55, allocations: 8.156 kB / 0.7839 GB, free: 66.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002253/1.552, allocations: 451.3 kB / 0.7843 GB, free: 65.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01399/1.566, allocations: 5.009 MB / 0.7892 GB, free: 60.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00131/1.567, allocations: 75.34 kB / 0.7893 GB, free: 60.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03663/1.604, allocations: 30.51 MB / 0.8191 GB, free: 29.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/1.604, allocations: 15.94 kB / 0.8191 GB, free: 29.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2825/1.887, allocations: 16.47 MB / 0.8352 GB, free: 175.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004953/1.892, allocations: 1.343 MB / 0.8365 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002609/1.894, allocations: 73 kB / 0.8366 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004431/1.899, allocations: 264.7 kB / 0.8368 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009578/1.9, allocations: 265.3 kB / 0.8371 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003215/1.9, allocations: 100.2 kB / 0.8372 GB, free: 175.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00887/1.909, allocations: 4.735 MB / 0.8418 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.653e-06/1.909, allocations: 0 / 0.8418 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0128/1.922, allocations: 2.187 MB / 0.8439 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.0008404/1.923, allocations: 216.9 kB / 0.8441 GB, free: 174.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01607/1.939, allocations: 10.89 MB / 0.8548 GB, free: 170.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/1.939, allocations: 0 / 0.8548 GB, free: 170.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006596/1.945, allocations: 4.48 MB / 0.8591 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.008127/1.953, allocations: 1.029 MB / 0.8601 GB, free: 167.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04027/1.994, allocations: 19.35 MB / 0.879 GB, free: 151.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01202/2.006, allocations: 5.765 MB / 0.8847 GB, free: 147.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007941/2.014, allocations: 2.753 MB / 0.8874 GB, free: 145.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002008/2.016, allocations: 415.4 kB / 0.8878 GB, free: 145 MB / 0.5137 GB Notification: Performance of SimCode: time 9.22e-07/2.016, allocations: 0 / 0.8878 GB, free: 145 MB / 0.5137 GB Notification: Performance of Templates: time 0.1567/2.173, allocations: 93.4 MB / 0.979 GB, free: 51.65 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)