Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001243/0.001243, allocations: 168.8 kB / 7.639 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.248/1.248, allocations: 170.7 MB / 178.7 MB, free: 15.65 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001573/0.001573, allocations: 107.5 kB / 218 MB, free: 8.418 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.61e-05/1.613e-05, allocations: 0 / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06874/0.06877, allocations: 38.77 MB / 301 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2955/0.3643, allocations: 97.42 MB / 398.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.3647, allocations: 85.39 kB / 398.5 MB, free: 3.312 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6101/0.9748, allocations: 178.7 MB / 0.5637 GB, free: 27.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.9749, allocations: 0 / 0.5637 GB, free: 27.96 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007463/0.9756, allocations: 187.1 kB / 0.5639 GB, free: 27.78 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03181/1.007, allocations: 9.154 MB / 0.5728 GB, free: 18.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.963e-05/1.008, allocations: 12.03 kB / 0.5728 GB, free: 18.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06066/1.068, allocations: 16.65 MB / 0.5891 GB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2406/1.309, allocations: 14.58 MB / 0.6033 GB, free: 36.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003968/1.309, allocations: 273.9 kB / 0.6036 GB, free: 36.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002687/1.312, allocations: 0.5228 MB / 0.6041 GB, free: 36.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01759/1.33, allocations: 11.71 MB / 0.6155 GB, free: 36.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02899/1.359, allocations: 16.52 MB / 0.6316 GB, free: 33.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004154/1.359, allocations: 114.9 kB / 0.6318 GB, free: 33.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001152/1.36, allocations: 39.47 kB / 0.6318 GB, free: 33.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001925/1.362, allocations: 1.6 MB / 0.6334 GB, free: 33.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09177/1.454, allocations: 78.11 MB / 0.7096 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008808/1.463, allocations: 5.427 MB / 0.7149 GB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005864/1.469, allocations: 3.884 MB / 0.7187 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003324/1.472, allocations: 2.866 MB / 0.7215 GB, free: 14.78 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.556e-05/1.472, allocations: 66.62 kB / 0.7216 GB, free: 14.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=314): time 6.913e-06/1.472, allocations: 3.562 kB / 0.7216 GB, free: 14.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=415): time 0.3428/1.815, allocations: 40.67 MB / 0.7613 GB, free: 79.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/1.815, allocations: 407.2 kB / 0.7617 GB, free: 79.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01006/1.825, allocations: 5.925 MB / 0.7675 GB, free: 78.99 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001037/1.826, allocations: 29.3 kB / 0.7675 GB, free: 78.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003752/1.83, allocations: 5.874 MB / 0.7732 GB, free: 75.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001845/1.832, allocations: 1.455 MB / 0.7747 GB, free: 75.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004816/1.832, allocations: 0 / 0.7747 GB, free: 75.05 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004617/1.833, allocations: 0.7066 MB / 0.7754 GB, free: 74.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004812/1.838, allocations: 3.981 MB / 0.7792 GB, free: 74.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007207/1.845, allocations: 9.086 MB / 0.7881 GB, free: 68.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008842/1.854, allocations: 5.957 MB / 0.7939 GB, free: 68.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001628/1.854, allocations: 50.88 kB / 0.794 GB, free: 68.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=1244) (initialization): time 0.03369/1.888, allocations: 16.03 MB / 0.8096 GB, free: 64.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004014/1.888, allocations: 81.88 kB / 0.8097 GB, free: 64.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005007/1.889, allocations: 181.8 kB / 0.8099 GB, free: 64.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01399/1.903, allocations: 4.555 MB / 0.8143 GB, free: 63.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007568/1.91, allocations: 2.017 MB / 0.8163 GB, free: 63.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02986/1.94, allocations: 23.44 MB / 0.8392 GB, free: 45.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0088/1.949, allocations: 364.7 kB / 0.8395 GB, free: 44.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002007/1.951, allocations: 0.5291 MB / 0.8401 GB, free: 44.22 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1092): * Single equations (assignments): 1087 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002064/1.953, allocations: 0.5777 MB / 0.8406 GB, free: 43.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/1.955, allocations: 0.6826 MB / 0.8413 GB, free: 42.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0212/1.976, allocations: 10.51 MB / 0.8516 GB, free: 34.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.634e-05/1.976, allocations: 40.78 kB / 0.8516 GB, free: 34.64 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.001e-05/1.976, allocations: 24 kB / 0.8516 GB, free: 34.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.343e-05/1.976, allocations: 22.22 kB / 0.8516 GB, free: 34.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04296/2.019, allocations: 22.14 MB / 0.8733 GB, free: 16.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.317e-05/2.02, allocations: 11.61 kB / 0.8733 GB, free: 16.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002644/2.022, allocations: 0.5426 MB / 0.8738 GB, free: 16.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2873/2.31, allocations: 4.348 MB / 0.878 GB, free: 72.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009476/2.311, allocations: 18.73 kB / 0.8781 GB, free: 72.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02834/2.339, allocations: 20.28 MB / 0.8979 GB, free: 71.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/2.339, allocations: 9.906 kB / 0.8979 GB, free: 71.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02855/2.367, allocations: 17.21 MB / 0.9147 GB, free: 69 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004551/2.372, allocations: 1.344 MB / 0.916 GB, free: 68.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001718/2.374, allocations: 17.02 kB / 0.916 GB, free: 68.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003657/2.377, allocations: 182 kB / 0.9162 GB, free: 68.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008199/2.378, allocations: 293.7 kB / 0.9165 GB, free: 68.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002942/2.379, allocations: 114.4 kB / 0.9166 GB, free: 68.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007288/2.386, allocations: 4.14 MB / 0.9206 GB, free: 67.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/2.386, allocations: 0 / 0.9206 GB, free: 67.78 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01148/2.397, allocations: 1.931 MB / 0.9225 GB, free: 67.78 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 287 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000956/2.398, allocations: 204.7 kB / 0.9227 GB, free: 67.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01424/2.413, allocations: 10.05 MB / 0.9325 GB, free: 64.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/2.413, allocations: 4.406 kB / 0.9325 GB, free: 64.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006234/2.419, allocations: 4.246 MB / 0.9367 GB, free: 62.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006979/2.426, allocations: 0.9158 MB / 0.9376 GB, free: 61.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04152/2.468, allocations: 17.72 MB / 0.9549 GB, free: 54.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01444/2.482, allocations: 6.568 MB / 0.9613 GB, free: 50.08 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.009175/2.491, allocations: 3.015 MB / 0.9642 GB, free: 48.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/2.493, allocations: 423.4 kB / 0.9646 GB, free: 47.91 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/2.493, allocations: 0 / 0.9646 GB, free: 47.91 MB / 394.7 MB Notification: Performance of Templates: time 0.3992/2.892, allocations: 85.58 MB / 1.048 GB, free: 67.1 MB / 394.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)