Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.602/1.602, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004696/0.0004698, allocations: 8 kB / 233.8 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08184/0.08235, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4483, allocations: 86.52 MB / 359.1 MB, free: 3.703 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003372/0.4487, allocations: 97.19 kB / 359.2 MB, free: 3.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9278/1.377, allocations: 167.2 MB / 0.5141 GB, free: 36.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.336e-06/1.377, allocations: 4 kB / 0.5141 GB, free: 36.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007872/1.377, allocations: 160 kB / 0.5142 GB, free: 36.73 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.0392/1.417, allocations: 9.319 MB / 0.5233 GB, free: 27.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/1.417, allocations: 8.031 kB / 0.5233 GB, free: 27.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1447/1.561, allocations: 16.54 MB / 0.5395 GB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4388/2, allocations: 13.82 MB / 0.553 GB, free: 42.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007731/2.001, allocations: 0.552 MB / 0.5535 GB, free: 42.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004069/2.005, allocations: 0.7583 MB / 0.5543 GB, free: 42.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05843/2.064, allocations: 17.01 MB / 0.5709 GB, free: 39.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008979/2.065, allocations: 107.3 kB / 0.571 GB, free: 39.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004151/2.069, allocations: 350 kB / 0.5713 GB, free: 39.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003802/2.073, allocations: 1.529 MB / 0.5728 GB, free: 39.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04446/2.117, allocations: 13.34 MB / 0.5858 GB, free: 39.06 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1315/2.249, allocations: 74.75 MB / 0.6588 GB, free: 2.855 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04241/2.291, allocations: 7.236 MB / 0.6659 GB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07129/2.362, allocations: 11.92 MB / 0.6775 GB, free: 4.461 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001111/2.363, allocations: 74.14 kB / 0.6776 GB, free: 4.391 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 9.899e-06/2.363, allocations: 0 / 0.6776 GB, free: 4.391 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.5734/2.936, allocations: 42.56 MB / 0.7192 GB, free: 84.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/2.936, allocations: 403.2 kB / 0.7195 GB, free: 83.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02061/2.957, allocations: 7.263 MB / 0.7266 GB, free: 83.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001162/2.958, allocations: 81.14 kB / 0.7267 GB, free: 83.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007058/2.965, allocations: 5.077 MB / 0.7317 GB, free: 80.51 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003094/2.968, allocations: 1.341 MB / 0.733 GB, free: 79.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00156/2.97, allocations: 176.7 kB / 0.7331 GB, free: 79.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0009086/2.971, allocations: 0.676 MB / 0.7338 GB, free: 79.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01276/2.984, allocations: 3.543 MB / 0.7373 GB, free: 79.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01711/3.001, allocations: 8.425 MB / 0.7455 GB, free: 73.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01746/3.018, allocations: 5.324 MB / 0.7507 GB, free: 73.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002733/3.019, allocations: 46.69 kB / 0.7507 GB, free: 73.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.05174/3.071, allocations: 14.58 MB / 0.765 GB, free: 68.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001372/3.071, allocations: 79.53 kB / 0.7651 GB, free: 68.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002505/3.071, allocations: 173.6 kB / 0.7652 GB, free: 68.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01974/3.091, allocations: 3.715 MB / 0.7688 GB, free: 67.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01177/3.103, allocations: 1.866 MB / 0.7707 GB, free: 67.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06428/3.167, allocations: 24.73 MB / 0.7948 GB, free: 53.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01148/3.178, allocations: 0.4887 MB / 0.7953 GB, free: 53.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/3.181, allocations: 0.49 MB / 0.7958 GB, free: 53.04 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.01092/3.192, allocations: 3.628 MB / 0.7993 GB, free: 49.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002054/3.194, allocations: 0.6788 MB / 0.8 GB, free: 49.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03126/3.225, allocations: 8.902 MB / 0.8087 GB, free: 42.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.27e-05/3.225, allocations: 38.67 kB / 0.8087 GB, free: 42.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.836e-05/3.225, allocations: 22.91 kB / 0.8087 GB, free: 42.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-05/3.225, allocations: 16.22 kB / 0.8087 GB, free: 42.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07548/3.301, allocations: 19.5 MB / 0.8278 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.497e-05/3.301, allocations: 8 kB / 0.8278 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0041/3.305, allocations: 450.4 kB / 0.8282 GB, free: 25.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0189/3.324, allocations: 3.486 MB / 0.8316 GB, free: 23.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009518/3.325, allocations: 68 kB / 0.8317 GB, free: 23.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3608/3.686, allocations: 24.23 MB / 0.8554 GB, free: 75.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/3.686, allocations: 15.22 kB / 0.8554 GB, free: 75.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05545/3.741, allocations: 13.48 MB / 0.8685 GB, free: 74.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006616/3.748, allocations: 1.222 MB / 0.8697 GB, free: 74.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003567/3.752, allocations: 74.52 kB / 0.8698 GB, free: 74.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008982/3.761, allocations: 215 kB / 0.87 GB, free: 74.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002015/3.763, allocations: 266.9 kB / 0.8703 GB, free: 74.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007718/3.764, allocations: 104 kB / 0.8704 GB, free: 74.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01596/3.78, allocations: 4.642 MB / 0.8749 GB, free: 73.97 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.303e-06/3.78, allocations: 0 / 0.8749 GB, free: 73.97 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01494/3.795, allocations: 2.007 MB / 0.8769 GB, free: 73.97 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.001525/3.796, allocations: 231 kB / 0.8771 GB, free: 73.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02412/3.82, allocations: 9.388 MB / 0.8862 GB, free: 71.92 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/3.82, allocations: 0 / 0.8862 GB, free: 71.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01225/3.833, allocations: 4.2 MB / 0.8903 GB, free: 70.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00968/3.842, allocations: 1.02 MB / 0.8913 GB, free: 69.81 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05817/3.901, allocations: 22.43 MB / 0.9132 GB, free: 58.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01563/3.916, allocations: 5.937 MB / 0.919 GB, free: 56.94 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002615/3.919, allocations: 471.2 kB / 0.9195 GB, free: 56.93 MB / 394.7 MB Notification: Performance of SimCode: time 2.174e-06/3.919, allocations: 0 / 0.9195 GB, free: 56.93 MB / 394.7 MB Notification: Performance of Templates: time 0.7812/4.7, allocations: 201.9 MB / 1.117 GB, free: 4.566 MB / 410.7 MB