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.000823/0.000823, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009027/0.0009028, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0004177/0.0004178, allocations: 14.64 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2323, allocations: 47.58 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.08959/0.322, allocations: 101.3 MB / 427.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0593/0.3813, allocations: 20.43 MB / 448.2 MB, free: 9.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03339/0.4148, allocations: 0.4948 MB / 448.7 MB, free: 8.992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02298/0.4378, allocations: 5.288 MB / 454 MB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2849/0.7228, allocations: 15.65 MB / 469.6 MB, free: 4.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005957/0.7288, allocations: 1.498 MB / 471.1 MB, free: 4.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1151/0.8439, allocations: 98.58 MB / 0.5563 GB, free: 9.051 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01553/0.8594, allocations: 9.305 MB / 0.5654 GB, free: 2.422 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01124/0.8708, allocations: 3.102 MB / 0.5684 GB, free: 292 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008927/0.8797, allocations: 4.639 MB / 0.573 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002584/0.8824, allocations: 292 kB / 0.5733 GB, free: 12.64 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004364/0.8867, allocations: 1.131 MB / 0.5744 GB, free: 11.7 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006371/0.8931, allocations: 3.847 MB / 0.5781 GB, free: 8.832 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004274/0.8974, allocations: 1.629 MB / 0.5797 GB, free: 8.234 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01644/0.9139, allocations: 11 MB / 0.5904 GB, free: 14.67 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.848e-06/0.914, allocations: 0 / 0.5904 GB, free: 14.67 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.676e-06/0.914, allocations: 1.641 kB / 0.5904 GB, free: 14.67 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0006717/0.9147, allocations: 3.656 kB / 0.5905 GB, free: 14.67 MB / 478.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.02235/0.937, allocations: 8.431 MB / 0.5987 GB, free: 6.863 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.9371, allocations: 10.22 kB / 0.5987 GB, free: 6.855 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03818/0.9753, allocations: 5.402 MB / 0.604 GB, free: 1.641 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02101/0.9963, allocations: 8.211 MB / 0.612 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004591/0.9968, allocations: 451.7 kB / 0.6124 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00271/0.9996, allocations: 0.6076 MB / 0.613 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4652/1.465, allocations: 17.15 MB / 0.6298 GB, free: 209.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007965/1.466, allocations: 100.7 kB / 0.6299 GB, free: 209.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002747/1.468, allocations: 277.3 kB / 0.6301 GB, free: 209.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00592/1.474, allocations: 2.856 MB / 0.6329 GB, free: 209.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02932/1.504, allocations: 14.04 MB / 0.6466 GB, free: 203.2 MB / 494.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.09746/1.601, allocations: 69.46 MB / 0.7145 GB, free: 135 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0178/1.619, allocations: 7.488 MB / 0.7218 GB, free: 127.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005736/1.625, allocations: 4.457 MB / 0.7261 GB, free: 122.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02426/1.649, allocations: 12.75 MB / 0.7386 GB, free: 110 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.126e-05/1.649, allocations: 64.56 kB / 0.7386 GB, free: 109.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 1.015e-05/1.649, allocations: 0 / 0.7386 GB, free: 109.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.1576/1.807, allocations: 43.93 MB / 0.7815 GB, free: 66.17 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/1.807, allocations: 402.3 kB / 0.7819 GB, free: 65.69 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/1.818, allocations: 7.338 MB / 0.7891 GB, free: 58.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00127/1.82, allocations: 81.7 kB / 0.7892 GB, free: 58.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002938/1.823, allocations: 5.235 MB / 0.7943 GB, free: 53.06 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001645/1.824, allocations: 1.35 MB / 0.7956 GB, free: 51.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00068/1.825, allocations: 192 kB / 0.7958 GB, free: 51.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003787/1.825, allocations: 0.703 MB / 0.7965 GB, free: 50.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005727/1.831, allocations: 4.243 MB / 0.8006 GB, free: 46.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009531/1.841, allocations: 9.157 MB / 0.8095 GB, free: 35.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009107/1.85, allocations: 6.077 MB / 0.8155 GB, free: 28.95 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.559e-05/1.85, allocations: 44.09 kB / 0.8155 GB, free: 28.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03652/1.887, allocations: 17.91 MB / 0.833 GB, free: 10.95 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002372/1.887, allocations: 80.19 kB / 0.8331 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003698/1.887, allocations: 171.9 kB / 0.8333 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01379/1.901, allocations: 5.323 MB / 0.8385 GB, free: 5.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007047/1.908, allocations: 2.008 MB / 0.8404 GB, free: 3.348 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3287/2.237, allocations: 29.03 MB / 0.8688 GB, free: 176.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009482/2.246, allocations: 0.5564 MB / 0.8693 GB, free: 176.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00235/2.249, allocations: 0.509 MB / 0.8698 GB, free: 176.2 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.009183/2.258, allocations: 3.627 MB / 0.8733 GB, free: 174.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002626/2.261, allocations: 0.6631 MB / 0.874 GB, free: 174.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02158/2.282, allocations: 11.25 MB / 0.885 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-05/2.282, allocations: 34.38 kB / 0.885 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.053e-05/2.282, allocations: 22.41 kB / 0.885 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.071e-05/2.282, allocations: 18.84 kB / 0.885 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04256/2.325, allocations: 22.13 MB / 0.9067 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.437e-05/2.325, allocations: 11.98 kB / 0.9067 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/2.327, allocations: 451.3 kB / 0.9071 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01252/2.34, allocations: 5.033 MB / 0.912 GB, free: 145.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007062/2.34, allocations: 68 kB / 0.9121 GB, free: 145.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03189/2.372, allocations: 28.4 MB / 0.9398 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/2.372, allocations: 8 kB / 0.9398 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0243/2.397, allocations: 16.45 MB / 0.9559 GB, free: 100.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004021/2.401, allocations: 1.343 MB / 0.9572 GB, free: 98.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001618/2.402, allocations: 71.98 kB / 0.9573 GB, free: 98.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003359/2.406, allocations: 270.6 kB / 0.9575 GB, free: 98.64 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007893/2.407, allocations: 266.4 kB / 0.9578 GB, free: 98.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002634/2.407, allocations: 99.98 kB / 0.9579 GB, free: 98.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006737/2.414, allocations: 4.683 MB / 0.9625 GB, free: 93.64 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/2.414, allocations: 2.188 kB / 0.9625 GB, free: 93.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009883/2.424, allocations: 2.187 MB / 0.9646 GB, free: 91.46 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 96,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000734/2.424, allocations: 222.8 kB / 0.9648 GB, free: 91.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01694/2.441, allocations: 10.75 MB / 0.9753 GB, free: 80.54 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.646e-05/2.441, allocations: 7.969 kB / 0.9753 GB, free: 80.53 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006828/2.448, allocations: 4.466 MB / 0.9797 GB, free: 76.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009164/2.457, allocations: 0.9797 MB / 0.9806 GB, free: 75.07 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04166/2.499, allocations: 22.4 MB / 1.002 GB, free: 52.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01166/2.511, allocations: 5.768 MB / 1.008 GB, free: 47.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008364/2.519, allocations: 2.755 MB / 1.011 GB, free: 44.25 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/2.521, allocations: 415.4 kB / 1.011 GB, free: 43.85 MB / 494.1 MB Notification: Performance of SimCode: time 3.477e-06/2.521, allocations: 0 / 1.011 GB, free: 43.85 MB / 494.1 MB Notification: Performance of Templates: time 0.3903/2.911, allocations: 90.82 MB / 1.1 GB, free: 133 MB / 494.1 MB 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)