Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003728, allocations: 12 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08877/0.08918, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4351/0.5244, allocations: 86.53 MB / 359.1 MB, free: 3.164 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.5248, allocations: 93.38 kB / 359.2 MB, free: 3.113 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.013/1.538, allocations: 167.2 MB / 0.5141 GB, free: 36.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.538, allocations: 0 / 0.5141 GB, free: 36.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007854/1.538, allocations: 164 kB / 0.5143 GB, free: 36.13 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: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.03901/1.577, allocations: 9.319 MB / 0.5234 GB, free: 26.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/1.577, allocations: 8.031 kB / 0.5234 GB, free: 26.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1174/1.695, allocations: 16.55 MB / 0.5396 GB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3283/2.023, allocations: 13.81 MB / 0.553 GB, free: 42.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007721/2.024, allocations: 0.5536 MB / 0.5536 GB, free: 42.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004257/2.028, allocations: 0.7628 MB / 0.5543 GB, free: 42.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05753/2.086, allocations: 16.95 MB / 0.5709 GB, free: 38.92 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009007/2.087, allocations: 108.7 kB / 0.571 GB, free: 38.92 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00379/2.091, allocations: 348.6 kB / 0.5713 GB, free: 38.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003666/2.094, allocations: 1.53 MB / 0.5728 GB, free: 38.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05/2.144, allocations: 13.34 MB / 0.5858 GB, free: 38.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1433/2.288, allocations: 74.75 MB / 0.6588 GB, free: 2.434 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0335/2.321, allocations: 7.12 MB / 0.6658 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03409/2.356, allocations: 11.93 MB / 0.6774 GB, free: 3.613 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.043e-05/2.356, allocations: 68.5 kB / 0.6775 GB, free: 3.539 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 7.154e-06/2.356, allocations: 6.469 kB / 0.6775 GB, free: 3.535 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.6535/3.009, allocations: 42.89 MB / 0.7194 GB, free: 83.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001833/3.01, allocations: 407.2 kB / 0.7198 GB, free: 83.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02869/3.038, allocations: 7.259 MB / 0.7269 GB, free: 82.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001227/3.04, allocations: 84.58 kB / 0.727 GB, free: 82.74 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008466/3.048, allocations: 5.434 MB / 0.7323 GB, free: 80.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003209/3.051, allocations: 1.343 MB / 0.7336 GB, free: 79.48 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001894/3.053, allocations: 173.7 kB / 0.7337 GB, free: 79.48 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.001303/3.055, allocations: 0.6693 MB / 0.7344 GB, free: 79.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01362/3.068, allocations: 3.537 MB / 0.7378 GB, free: 79.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01844/3.087, allocations: 8.393 MB / 0.746 GB, free: 72.93 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01848/3.105, allocations: 5.323 MB / 0.7512 GB, free: 72.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000285/3.106, allocations: 49.41 kB / 0.7513 GB, free: 72.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.07132/3.177, allocations: 14.94 MB / 0.7659 GB, free: 67.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002552/3.177, allocations: 74.88 kB / 0.7659 GB, free: 67.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004766/3.178, allocations: 172.3 kB / 0.7661 GB, free: 67.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03086/3.209, allocations: 3.72 MB / 0.7697 GB, free: 67.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01737/3.226, allocations: 1.858 MB / 0.7716 GB, free: 66.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09225/3.319, allocations: 24.72 MB / 0.7957 GB, free: 52.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01724/3.336, allocations: 499.7 kB / 0.7962 GB, free: 52.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00308/3.339, allocations: 0.4997 MB / 0.7967 GB, free: 51.98 MB / 394.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.01561/3.355, allocations: 3.62 MB / 0.8002 GB, free: 48.83 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003349/3.358, allocations: 0.6865 MB / 0.8009 GB, free: 48.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04998/3.408, allocations: 8.904 MB / 0.8096 GB, free: 41.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.742e-05/3.408, allocations: 36.78 kB / 0.8096 GB, free: 41.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.638e-05/3.408, allocations: 21.19 kB / 0.8096 GB, free: 41.03 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.666e-05/3.409, allocations: 16.45 kB / 0.8096 GB, free: 41.03 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09636/3.505, allocations: 19.49 MB / 0.8287 GB, free: 25.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.234e-05/3.505, allocations: 8 kB / 0.8287 GB, free: 25.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006056/3.511, allocations: 455.4 kB / 0.8291 GB, free: 24.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02838/3.54, allocations: 3.479 MB / 0.8325 GB, free: 22.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001304/3.541, allocations: 68 kB / 0.8326 GB, free: 22.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4058/3.947, allocations: 24.08 MB / 0.8561 GB, free: 74.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/3.947, allocations: 15.31 kB / 0.8561 GB, free: 74.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04022/3.987, allocations: 13.48 MB / 0.8693 GB, free: 73.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00531/3.992, allocations: 1.223 MB / 0.8705 GB, free: 73.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00292/3.995, allocations: 73.44 kB / 0.8705 GB, free: 73.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006822/4.002, allocations: 212.9 kB / 0.8707 GB, free: 73.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001651/4.004, allocations: 267.9 kB / 0.871 GB, free: 73.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007971/4.005, allocations: 103.8 kB / 0.8711 GB, free: 73.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01313/4.018, allocations: 4.642 MB / 0.8756 GB, free: 73.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.41e-07/4.018, allocations: 0 / 0.8756 GB, free: 73.14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01518/4.033, allocations: 2.001 MB / 0.8776 GB, free: 73.14 MB / 394.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.001459/4.035, allocations: 230.6 kB / 0.8778 GB, free: 73.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0227/4.057, allocations: 9.386 MB / 0.887 GB, free: 70.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.71e-05/4.057, allocations: 3.531 kB / 0.887 GB, free: 70.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01191/4.069, allocations: 4.207 MB / 0.8911 GB, free: 68.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009063/4.078, allocations: 1.01 MB / 0.8921 GB, free: 68.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05044/4.129, allocations: 21.53 MB / 0.9131 GB, free: 57.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01473/4.144, allocations: 5.933 MB / 0.9189 GB, free: 55.87 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.01385/4.158, allocations: 2.794 MB / 0.9216 GB, free: 55.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002351/4.16, allocations: 411 kB / 0.922 GB, free: 54.93 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/4.16, allocations: 0 / 0.922 GB, free: 54.93 MB / 394.7 MB Notification: Performance of Templates: time 0.5511/4.711, allocations: 83.51 MB / 1.004 GB, free: 62.68 MB / 394.7 MB