Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+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.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.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6551/0.6551, allocations: 110.9 MB / 125.9 MB, free: 6.211 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001681/0.001682, allocations: 139.4 kB / 151.8 MB, free: 4.996 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002584/0.0002584, allocations: 12 kB / 184.9 MB, free: 3.918 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1343, allocations: 25.15 MB / 210.1 MB, free: 29.7 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06946/0.2038, allocations: 60.98 MB / 271 MB, free: 4.793 MB / 202.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.2041, allocations: 83.95 kB / 271.1 MB, free: 4.711 MB / 202.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9993/1.203, allocations: 277.8 MB / 0.5361 GB, free: 16.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.203, allocations: 4 kB / 0.5361 GB, free: 16.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.001074/1.205, allocations: 219.6 kB / 0.5363 GB, free: 16.58 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3326 * Number of variables: 3326 Notification: Performance of Generate backend data structure: time 0.04896/1.253, allocations: 13.94 MB / 0.5499 GB, free: 12.14 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/1.254, allocations: 7.25 kB / 0.5499 GB, free: 12.14 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3497/1.603, allocations: 38.17 MB / 0.5872 GB, free: 30.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04611/1.649, allocations: 16.68 MB / 0.6035 GB, free: 30.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001135/1.651, allocations: 0.7529 MB / 0.6042 GB, free: 30.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009358/1.66, allocations: 1.004 MB / 0.6052 GB, free: 30.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1224/1.782, allocations: 38.91 MB / 0.6432 GB, free: 23.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006416/1.783, allocations: 87.14 kB / 0.6433 GB, free: 23.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005381/1.788, allocations: 441.8 kB / 0.6437 GB, free: 23.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04161/1.83, allocations: 10.29 MB / 0.6537 GB, free: 19.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1088/1.939, allocations: 38.96 MB / 0.6918 GB, free: 1.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9249/2.864, allocations: 159.2 MB / 0.8473 GB, free: 27.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03519/2.899, allocations: 12.91 MB / 0.8599 GB, free: 26.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08274/2.982, allocations: 32.33 MB / 0.8915 GB, free: 21.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.23e-05/2.982, allocations: 78.55 kB / 0.8915 GB, free: 21.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=360): time 8.285e-06/2.982, allocations: 0 / 0.8915 GB, free: 21.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=466): time 0.4171/3.399, allocations: 65.9 MB / 0.9559 GB, free: 68.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/3.399, allocations: 412.2 kB / 0.9563 GB, free: 67.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01532/3.415, allocations: 7.956 MB / 0.964 GB, free: 67.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001194/3.416, allocations: 98.84 kB / 0.9641 GB, free: 67.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005023/3.421, allocations: 6.894 MB / 0.9709 GB, free: 63.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002478/3.423, allocations: 1.701 MB / 0.9725 GB, free: 62.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/3.425, allocations: 230.9 kB / 0.9728 GB, free: 62.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0005646/3.425, allocations: 0.7796 MB / 0.9735 GB, free: 62.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01997/3.445, allocations: 8.364 MB / 0.9817 GB, free: 62.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02448/3.47, allocations: 14.65 MB / 0.996 GB, free: 51.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02041/3.49, allocations: 9.651 MB / 1.005 GB, free: 49.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002578/3.491, allocations: 63.69 kB / 1.005 GB, free: 49.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=1479) (initialization): time 0.06183/3.552, allocations: 25.48 MB / 1.03 GB, free: 32.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003728/3.553, allocations: 101.9 kB / 1.03 GB, free: 32.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004226/3.553, allocations: 216 kB / 1.031 GB, free: 31.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01444/3.568, allocations: 4.578 MB / 1.035 GB, free: 28.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009267/3.577, allocations: 2.524 MB / 1.038 GB, free: 26.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1965/3.774, allocations: 7.03 MB / 1.044 GB, free: 60.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01771/3.791, allocations: 1.846 MB / 1.046 GB, free: 60.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003139/3.795, allocations: 0.8049 MB / 1.047 GB, free: 60.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 999 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1311): * Single equations (assignments): 1298 * Array equations: 12 * 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: 0 * Non-linear torn systems: 1 {3 124} Notification: Performance of prepare postOptimizeDAE: time 0.01143/3.806, allocations: 4.736 MB / 1.052 GB, free: 60.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002703/3.809, allocations: 0.8093 MB / 1.052 GB, free: 60.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02134/3.83, allocations: 10.5 MB / 1.063 GB, free: 60.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009501/3.84, allocations: 2.302 MB / 1.065 GB, free: 60.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.825e-05/3.84, allocations: 8.297 kB / 1.065 GB, free: 60.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001394/3.84, allocations: 22.28 kB / 1.065 GB, free: 60.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08054/3.92, allocations: 32.21 MB / 1.096 GB, free: 52.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-05/3.92, allocations: 10.56 kB / 1.096 GB, free: 52.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003037/3.923, allocations: 0.6194 MB / 1.097 GB, free: 52.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01209/3.936, allocations: 3.946 MB / 1.101 GB, free: 51.81 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009805/3.937, allocations: 150.4 kB / 1.101 GB, free: 51.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006158/3.943, allocations: 6.089 MB / 1.107 GB, free: 49.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/3.943, allocations: 12.12 kB / 1.107 GB, free: 49.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05846/4.001, allocations: 27.7 MB / 1.134 GB, free: 29.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006241/4.008, allocations: 1.826 MB / 1.136 GB, free: 28.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002891/4.01, allocations: 87.95 kB / 1.136 GB, free: 27.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01042/4.021, allocations: 1.421 MB / 1.137 GB, free: 26.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001493/4.022, allocations: 256.2 kB / 1.138 GB, free: 26.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001382/4.024, allocations: 259.9 kB / 1.138 GB, free: 26.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.01259/4.036, allocations: 5.724 MB / 1.143 GB, free: 20.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/4.036, allocations: 0 / 1.143 GB, free: 20.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.01558/4.052, allocations: 2.382 MB / 1.146 GB, free: 18 MB / 314.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (326): * Single equations (assignments): 314 * Array equations: 11 * 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: 0 * Non-linear torn systems: 1 {3 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.001865/4.054, allocations: 293 kB / 1.146 GB, free: 17.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.2051/4.259, allocations: 18.32 MB / 1.164 GB, free: 64.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/4.259, allocations: 2.719 kB / 1.164 GB, free: 64.03 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01848/4.278, allocations: 7.527 MB / 1.171 GB, free: 63.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006563/4.284, allocations: 1.079 MB / 1.172 GB, free: 63.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06494/4.349, allocations: 31.41 MB / 1.203 GB, free: 53.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01586/4.365, allocations: 7.436 MB / 1.21 GB, free: 52.04 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.01486/4.38, allocations: 3.986 MB / 1.214 GB, free: 51.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004225/4.384, allocations: 0.822 MB / 1.215 GB, free: 51.47 MB / 314.7 MB Notification: Performance of SimCode: time 1.774e-06/4.384, allocations: 0 / 1.215 GB, free: 51.47 MB / 314.7 MB Notification: Performance of Templates: time 0.3634/4.748, allocations: 122.3 MB / 1.334 GB, free: 28.55 MB / 314.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)