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.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003733, allocations: 8 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/0.09023, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3815/0.4718, allocations: 84.99 MB / 357.6 MB, free: 4.598 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/0.4722, allocations: 91.2 kB / 357.7 MB, free: 4.551 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9498/1.422, allocations: 162 MB / 0.5075 GB, free: 42.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.422, allocations: 4 kB / 0.5075 GB, free: 42.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007404/1.423, allocations: 156 kB / 0.5077 GB, free: 42.74 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03635/1.459, allocations: 8.973 MB / 0.5165 GB, free: 33.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/1.459, allocations: 8.031 kB / 0.5165 GB, free: 33.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1171/1.576, allocations: 16.46 MB / 0.5325 GB, free: 17.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04554/1.622, allocations: 13.55 MB / 0.5458 GB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006922/1.623, allocations: 0.5177 MB / 0.5463 GB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004006/1.627, allocations: 0.726 MB / 0.547 GB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3487/1.975, allocations: 16.38 MB / 0.563 GB, free: 43.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008168/1.976, allocations: 108 kB / 0.5631 GB, free: 43.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003539/1.98, allocations: 335.4 kB / 0.5634 GB, free: 43.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003638/1.984, allocations: 1.483 MB / 0.5649 GB, free: 43.67 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04325/2.027, allocations: 12.92 MB / 0.5775 GB, free: 43.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1239/2.151, allocations: 73.3 MB / 0.6491 GB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0336/2.185, allocations: 7.498 MB / 0.6564 GB, free: 7.207 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03244/2.217, allocations: 11.58 MB / 0.6677 GB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.039e-05/2.217, allocations: 70.81 kB / 0.6678 GB, free: 14.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 6.872e-06/2.217, allocations: 0 / 0.6678 GB, free: 14.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.6333/2.85, allocations: 51.27 MB / 0.7178 GB, free: 73.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/2.851, allocations: 404.2 kB / 0.7182 GB, free: 73.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01896/2.87, allocations: 7.062 MB / 0.7251 GB, free: 72.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001044/2.871, allocations: 79.02 kB / 0.7252 GB, free: 72.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006263/2.877, allocations: 5.223 MB / 0.7303 GB, free: 70.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002198/2.879, allocations: 1.246 MB / 0.7315 GB, free: 69.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/2.881, allocations: 167.2 kB / 0.7317 GB, free: 69.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0008307/2.882, allocations: 0.6476 MB / 0.7323 GB, free: 69.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01003/2.892, allocations: 3.794 MB / 0.736 GB, free: 69.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/2.905, allocations: 8.445 MB / 0.7442 GB, free: 62.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/2.918, allocations: 5.493 MB / 0.7496 GB, free: 60.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/2.918, allocations: 47.94 kB / 0.7496 GB, free: 60.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05686/2.975, allocations: 16.66 MB / 0.7659 GB, free: 53.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/2.975, allocations: 76 kB / 0.766 GB, free: 53.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002729/2.975, allocations: 160 kB / 0.7661 GB, free: 53.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02863/3.004, allocations: 5.488 MB / 0.7715 GB, free: 49.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01123/3.015, allocations: 1.791 MB / 0.7732 GB, free: 48.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07944/3.095, allocations: 28.96 MB / 0.8015 GB, free: 23.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01743/3.112, allocations: 0.5135 MB / 0.802 GB, free: 22.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002972/3.115, allocations: 480.8 kB / 0.8025 GB, free: 22.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (944): * Single equations (assignments): 938 * 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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01236/3.128, allocations: 3.47 MB / 0.8059 GB, free: 19.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002153/3.13, allocations: 0.6623 MB / 0.8065 GB, free: 18.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04218/3.172, allocations: 10.93 MB / 0.8172 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.476e-05/3.172, allocations: 36 kB / 0.8172 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.786e-05/3.172, allocations: 19.94 kB / 0.8173 GB, free: 8.391 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.652e-05/3.172, allocations: 23.78 kB / 0.8173 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3721/3.544, allocations: 23.96 MB / 0.8407 GB, free: 63.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-05/3.544, allocations: 8.203 kB / 0.8407 GB, free: 63.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003818/3.548, allocations: 426.6 kB / 0.8411 GB, free: 63.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02787/3.576, allocations: 5.072 MB / 0.846 GB, free: 63.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/3.577, allocations: 64.31 kB / 0.8461 GB, free: 63.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06662/3.644, allocations: 27.69 MB / 0.8731 GB, free: 56.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.136e-05/3.644, allocations: 13.84 kB / 0.8732 GB, free: 56.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05705/3.701, allocations: 15.67 MB / 0.8885 GB, free: 50.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006871/3.708, allocations: 1.272 MB / 0.8897 GB, free: 50.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003462/3.712, allocations: 62.58 kB / 0.8898 GB, free: 50.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009195/3.721, allocations: 248.8 kB / 0.89 GB, free: 50.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002024/3.723, allocations: 245 kB / 0.8902 GB, free: 50.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006687/3.724, allocations: 88.23 kB / 0.8903 GB, free: 50.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01697/3.741, allocations: 4.522 MB / 0.8947 GB, free: 48.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.41e-07/3.741, allocations: 3.938 kB / 0.8947 GB, free: 48.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0182/3.759, allocations: 1.963 MB / 0.8967 GB, free: 48.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001582/3.76, allocations: 223.9 kB / 0.8969 GB, free: 48.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02627/3.787, allocations: 10.16 MB / 0.9068 GB, free: 42.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/3.787, allocations: 0 / 0.9068 GB, free: 42.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01358/3.8, allocations: 4.523 MB / 0.9112 GB, free: 38.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008876/3.809, allocations: 0.9791 MB / 0.9122 GB, free: 37.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05285/3.862, allocations: 21.63 MB / 0.9333 GB, free: 18.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01325/3.875, allocations: 5.714 MB / 0.9389 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.01256/3.888, allocations: 2.626 MB / 0.9414 GB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002282/3.89, allocations: 393.2 kB / 0.9418 GB, free: 11.97 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/3.89, allocations: 0 / 0.9418 GB, free: 11.97 MB / 378.7 MB Notification: Performance of Templates: time 0.5864/4.477, allocations: 83.9 MB / 1.024 GB, free: 64.79 MB / 394.7 MB