Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 2.218/2.218, allocations: 194.8 MB / 211.7 MB, free: 2.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003545, allocations: 12 kB / 264.5 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0964/0.09679, allocations: 44.51 MB / 309 MB, free: 344 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4671/0.5639, allocations: 92.24 MB / 401.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.5643, allocations: 95.14 kB / 401.4 MB, free: 14.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9864/1.551, allocations: 167.2 MB / 0.5553 GB, free: 64.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.551, allocations: 0 / 0.5553 GB, free: 64.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007938/1.552, allocations: 171.1 kB / 0.5555 GB, free: 64.86 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.04006/1.592, allocations: 9.309 MB / 0.5645 GB, free: 61.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/1.592, allocations: 10.66 kB / 0.5646 GB, free: 61.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1168/1.708, allocations: 16.54 MB / 0.5807 GB, free: 60.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04582/1.754, allocations: 13.82 MB / 0.5942 GB, free: 59.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007248/1.755, allocations: 0.5491 MB / 0.5947 GB, free: 59.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004094/1.759, allocations: 0.7604 MB / 0.5955 GB, free: 59.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05371/1.813, allocations: 16.95 MB / 0.612 GB, free: 54.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000742/1.814, allocations: 110 kB / 0.6121 GB, free: 54.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003647/1.817, allocations: 349.9 kB / 0.6125 GB, free: 54.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003388/1.821, allocations: 1.536 MB / 0.614 GB, free: 54.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0429/1.864, allocations: 13.34 MB / 0.627 GB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4668/2.331, allocations: 74.75 MB / 0.7 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04867/2.379, allocations: 7.089 MB / 0.7069 GB, free: 30.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03605/2.416, allocations: 11.94 MB / 0.7186 GB, free: 28.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.449e-05/2.416, allocations: 66.78 kB / 0.7187 GB, free: 28.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 1.104e-05/2.416, allocations: 2.281 kB / 0.7187 GB, free: 28.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=366): time 0.2726/2.688, allocations: 42.17 MB / 0.7598 GB, free: 22.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/2.689, allocations: 402.6 kB / 0.7602 GB, free: 22.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01701/2.706, allocations: 7.25 MB / 0.7673 GB, free: 21.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000936/2.707, allocations: 86.45 kB / 0.7674 GB, free: 21.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005193/2.712, allocations: 5.435 MB / 0.7727 GB, free: 18.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002042/2.714, allocations: 1.343 MB / 0.774 GB, free: 17.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/2.715, allocations: 172 kB / 0.7742 GB, free: 17.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005951/2.716, allocations: 0.6723 MB / 0.7748 GB, free: 17.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008344/2.724, allocations: 3.541 MB / 0.7783 GB, free: 15.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01218/2.736, allocations: 8.383 MB / 0.7865 GB, free: 8.184 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/2.749, allocations: 5.331 MB / 0.7917 GB, free: 5.914 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002073/2.749, allocations: 48 kB / 0.7917 GB, free: 5.867 MB / 426.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.05306/2.802, allocations: 14.93 MB / 0.8063 GB, free: 9.801 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/2.802, allocations: 80 kB / 0.8064 GB, free: 9.723 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003491/2.803, allocations: 168 kB / 0.8065 GB, free: 9.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02019/2.823, allocations: 3.717 MB / 0.8102 GB, free: 6.812 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0121/2.835, allocations: 1.864 MB / 0.812 GB, free: 5.184 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06956/2.905, allocations: 24.99 MB / 0.8364 GB, free: 152 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01186/2.917, allocations: 0.5261 MB / 0.8369 GB, free: 15.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00238/2.919, allocations: 0.4909 MB / 0.8374 GB, free: 15.34 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 768 * Number of states: 0 () * Number of discrete variables: 69 (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.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 (1001): * Single equations (assignments): 995 * 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.01174/2.931, allocations: 3.62 MB / 0.8409 GB, free: 12.19 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002288/2.933, allocations: 0.6821 MB / 0.8416 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05374/2.987, allocations: 8.91 MB / 0.8503 GB, free: 4.348 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/2.987, allocations: 40 kB / 0.8503 GB, free: 4.309 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.069e-05/2.987, allocations: 22.75 kB / 0.8503 GB, free: 4.289 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001026/2.987, allocations: 19.94 kB / 0.8504 GB, free: 4.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4979/3.485, allocations: 19.48 MB / 0.8694 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.873e-05/3.485, allocations: 7.562 kB / 0.8694 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005961/3.491, allocations: 456.3 kB / 0.8698 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0283/3.52, allocations: 3.485 MB / 0.8732 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001304/3.521, allocations: 67.16 kB / 0.8733 GB, free: 109.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08267/3.604, allocations: 24 MB / 0.8967 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.055e-05/3.604, allocations: 12.94 kB / 0.8968 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05799/3.662, allocations: 13.48 MB / 0.9099 GB, free: 102.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00724/3.669, allocations: 1.23 MB / 0.9111 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003501/3.673, allocations: 64.31 kB / 0.9112 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009431/3.682, allocations: 215.1 kB / 0.9114 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002229/3.685, allocations: 266.5 kB / 0.9116 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008843/3.686, allocations: 100.1 kB / 0.9117 GB, free: 101.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0146/3.7, allocations: 4.641 MB / 0.9163 GB, free: 100.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/3.7, allocations: 0 / 0.9163 GB, free: 100.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01364/3.714, allocations: 2.006 MB / 0.9182 GB, free: 100.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001546/3.715, allocations: 239 kB / 0.9185 GB, free: 99.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0224/3.738, allocations: 9.387 MB / 0.9276 GB, free: 96.82 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-05/3.738, allocations: 3.906 kB / 0.9276 GB, free: 96.82 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01142/3.749, allocations: 4.198 MB / 0.9317 GB, free: 95.08 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009196/3.759, allocations: 1.011 MB / 0.9327 GB, free: 94.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05317/3.812, allocations: 21.52 MB / 0.9537 GB, free: 83.18 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01541/3.827, allocations: 5.935 MB / 0.9595 GB, free: 78.89 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01334/3.841, allocations: 2.788 MB / 0.9622 GB, free: 77.28 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/3.843, allocations: 413.2 kB / 0.9626 GB, free: 76.88 MB / 474.7 MB Notification: Performance of SimCode: time 1.142e-06/3.843, allocations: 0 / 0.9626 GB, free: 76.88 MB / 474.7 MB Notification: Performance of Templates: time 0.6526/4.496, allocations: 83.52 MB / 1.044 GB, free: 103.6 MB / 474.7 MB