Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.0003601, allocations: 12 kB / 264 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08408/0.08447, allocations: 44.5 MB / 308.5 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3861/0.4706, allocations: 92.24 MB / 400.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.4709, allocations: 98.83 kB / 400.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8409/1.312, allocations: 165.1 MB / 0.5526 GB, free: 56.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.874e-06/1.312, allocations: 3.281 kB / 0.5526 GB, free: 56.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006924/1.313, allocations: 161.8 kB / 0.5528 GB, free: 56.29 MB / 394.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.03131/1.344, allocations: 9.311 MB / 0.5619 GB, free: 52.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/1.344, allocations: 6.906 kB / 0.5619 GB, free: 52.7 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08275/1.427, allocations: 16.54 MB / 0.578 GB, free: 52.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03898/1.466, allocations: 13.82 MB / 0.5915 GB, free: 50.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006384/1.466, allocations: 0.5514 MB / 0.5921 GB, free: 50.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003198/1.47, allocations: 0.7557 MB / 0.5928 GB, free: 50.76 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0429/1.513, allocations: 16.96 MB / 0.6094 GB, free: 37.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006478/1.513, allocations: 112.1 kB / 0.6095 GB, free: 37.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002868/1.516, allocations: 354.8 kB / 0.6098 GB, free: 37.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002653/1.519, allocations: 1.535 MB / 0.6113 GB, free: 36.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03409/1.553, allocations: 13.34 MB / 0.6243 GB, free: 22.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3814/1.934, allocations: 74.75 MB / 0.6973 GB, free: 36.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02576/1.96, allocations: 7.085 MB / 0.7043 GB, free: 35.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02412/1.984, allocations: 11.94 MB / 0.7159 GB, free: 33.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.492e-05/1.984, allocations: 67.62 kB / 0.716 GB, free: 33.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 7.811e-06/1.984, allocations: 2.875 kB / 0.716 GB, free: 33.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=366): time 0.2019/2.186, allocations: 42.58 MB / 0.7576 GB, free: 27.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/2.187, allocations: 404.6 kB / 0.758 GB, free: 27.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0153/2.202, allocations: 6.422 MB / 0.7642 GB, free: 25.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007451/2.203, allocations: 76.61 kB / 0.7643 GB, free: 25.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004155/2.207, allocations: 5.075 MB / 0.7693 GB, free: 21.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001731/2.209, allocations: 1.335 MB / 0.7706 GB, free: 20.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001145/2.21, allocations: 175.5 kB / 0.7707 GB, free: 20.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008394/2.211, allocations: 0.6783 MB / 0.7714 GB, free: 19.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007528/2.218, allocations: 3.548 MB / 0.7749 GB, free: 18.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/2.229, allocations: 8.387 MB / 0.7831 GB, free: 10.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/2.239, allocations: 5.32 MB / 0.7882 GB, free: 6.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001676/2.239, allocations: 48 kB / 0.7883 GB, free: 6.703 MB / 426.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04652/2.286, allocations: 14.95 MB / 0.8029 GB, free: 11.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001774/2.286, allocations: 84.06 kB / 0.803 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003147/2.286, allocations: 171.9 kB / 0.8031 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01531/2.302, allocations: 3.727 MB / 0.8068 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00843/2.31, allocations: 1.867 MB / 0.8086 GB, free: 7.168 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06192/2.372, allocations: 25.25 MB / 0.8333 GB, free: 2.645 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009689/2.382, allocations: 499.3 kB / 0.8337 GB, free: 2.156 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002112/2.384, allocations: 0.496 MB / 0.8342 GB, free: 1.66 MB / 458.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.28/2.664, allocations: 3.618 MB / 0.8378 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001912/2.666, allocations: 0.6814 MB / 0.8384 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02697/2.693, allocations: 8.923 MB / 0.8471 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.783e-05/2.693, allocations: 37.89 kB / 0.8472 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.425e-05/2.693, allocations: 22.38 kB / 0.8472 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.4e-05/2.693, allocations: 17.47 kB / 0.8472 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05369/2.747, allocations: 19.52 MB / 0.8663 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-05/2.747, allocations: 9.188 kB / 0.8663 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002698/2.75, allocations: 449.5 kB / 0.8667 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01406/2.764, allocations: 3.495 MB / 0.8701 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008054/2.765, allocations: 74.25 kB / 0.8702 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04483/2.81, allocations: 24.01 MB / 0.8936 GB, free: 93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/2.81, allocations: 13.72 kB / 0.8937 GB, free: 93 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03112/2.841, allocations: 15.04 MB / 0.9083 GB, free: 86.23 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004269/2.845, allocations: 1.224 MB / 0.9095 GB, free: 85.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002368/2.848, allocations: 74.95 kB / 0.9096 GB, free: 85.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005315/2.853, allocations: 220.8 kB / 0.9098 GB, free: 85.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001314/2.854, allocations: 260.6 kB / 0.9101 GB, free: 85.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000619/2.855, allocations: 104.2 kB / 0.9102 GB, free: 85.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01137/2.866, allocations: 4.643 MB / 0.9147 GB, free: 83.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.101e-06/2.866, allocations: 0 / 0.9147 GB, free: 83.93 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.012/2.878, allocations: 2.003 MB / 0.9167 GB, free: 83.72 MB / 458.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.001143/2.88, allocations: 228.2 kB / 0.9169 GB, free: 83.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01899/2.899, allocations: 9.389 MB / 0.926 GB, free: 79.31 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/2.899, allocations: 4 kB / 0.926 GB, free: 79.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009105/2.908, allocations: 4.208 MB / 0.9302 GB, free: 75.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007059/2.915, allocations: 1.013 MB / 0.9311 GB, free: 74.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04553/2.96, allocations: 22.37 MB / 0.953 GB, free: 54.68 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01325/2.974, allocations: 5.934 MB / 0.9588 GB, free: 50.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001981/2.976, allocations: 476.2 kB / 0.9592 GB, free: 49.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.774e-06/2.976, allocations: 0 / 0.9592 GB, free: 49.93 MB / 458.7 MB Notification: Performance of Templates: time 0.6265/3.602, allocations: 201.9 MB / 1.156 GB, free: 6.957 MB / 474.7 MB