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.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003675, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08137/0.08176, allocations: 44.5 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3819/0.4637, allocations: 90.74 MB / 399.2 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004162/0.4642, allocations: 91.69 kB / 399.3 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8164/1.281, allocations: 159.9 MB / 0.546 GB, free: 55.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.941e-06/1.281, allocations: 0 / 0.546 GB, free: 55.33 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006104/1.281, allocations: 156.8 kB / 0.5462 GB, free: 55.33 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: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.02884/1.31, allocations: 8.974 MB / 0.555 GB, free: 51.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/1.31, allocations: 10.28 kB / 0.555 GB, free: 51.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08191/1.392, allocations: 16.46 MB / 0.571 GB, free: 51.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03672/1.429, allocations: 13.55 MB / 0.5843 GB, free: 50.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006113/1.43, allocations: 0.5201 MB / 0.5848 GB, free: 50.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002976/1.433, allocations: 0.7258 MB / 0.5855 GB, free: 50.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04241/1.475, allocations: 16.38 MB / 0.6015 GB, free: 42.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005642/1.476, allocations: 116.2 kB / 0.6016 GB, free: 42.13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002515/1.478, allocations: 331.6 kB / 0.6019 GB, free: 41.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002597/1.481, allocations: 1.482 MB / 0.6034 GB, free: 40.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03313/1.514, allocations: 12.91 MB / 0.616 GB, free: 29.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3779/1.892, allocations: 73.31 MB / 0.6876 GB, free: 36.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0262/1.918, allocations: 7.502 MB / 0.6949 GB, free: 35.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02347/1.942, allocations: 11.58 MB / 0.7062 GB, free: 33.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.298e-05/1.942, allocations: 66.48 kB / 0.7063 GB, free: 33.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 8.231e-06/1.942, allocations: 0 / 0.7063 GB, free: 33.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2138/2.156, allocations: 45.52 MB / 0.7507 GB, free: 28.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/2.156, allocations: 404.4 kB / 0.7511 GB, free: 28.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0145/2.17, allocations: 6.235 MB / 0.7572 GB, free: 27.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007542/2.171, allocations: 76.14 kB / 0.7573 GB, free: 27.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003983/2.175, allocations: 4.874 MB / 0.762 GB, free: 23.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001632/2.177, allocations: 1.246 MB / 0.7633 GB, free: 22.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009265/2.178, allocations: 163.8 kB / 0.7634 GB, free: 22.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006981/2.178, allocations: 0.6637 MB / 0.7641 GB, free: 22.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007755/2.186, allocations: 3.788 MB / 0.7678 GB, free: 20.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01042/2.197, allocations: 8.439 MB / 0.776 GB, free: 12.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/2.207, allocations: 5.502 MB / 0.7814 GB, free: 8.242 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001349/2.207, allocations: 48 kB / 0.7814 GB, free: 8.195 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.04679/2.254, allocations: 16.35 MB / 0.7974 GB, free: 11.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/2.254, allocations: 79.42 kB / 0.7975 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002791/2.254, allocations: 160 kB / 0.7976 GB, free: 11.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02216/2.277, allocations: 5.512 MB / 0.803 GB, free: 7.344 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007998/2.285, allocations: 1.79 MB / 0.8047 GB, free: 5.789 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3651/2.65, allocations: 28.97 MB / 0.833 GB, free: 97.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009398/2.659, allocations: 0.5216 MB / 0.8335 GB, free: 97.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002055/2.661, allocations: 479.3 kB / 0.834 GB, free: 97.79 MB / 458.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.009318/2.671, allocations: 3.473 MB / 0.8374 GB, free: 97.67 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001818/2.672, allocations: 0.6572 MB / 0.838 GB, free: 97.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03268/2.705, allocations: 10.95 MB / 0.8487 GB, free: 97.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.707e-05/2.705, allocations: 34.47 kB / 0.8488 GB, free: 97.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-05/2.705, allocations: 19.19 kB / 0.8488 GB, free: 97.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.361e-05/2.705, allocations: 15.28 kB / 0.8488 GB, free: 97.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06066/2.766, allocations: 24.01 MB / 0.8722 GB, free: 94.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.741e-05/2.766, allocations: 3.688 kB / 0.8722 GB, free: 94.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002597/2.769, allocations: 429.8 kB / 0.8727 GB, free: 94.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02055/2.789, allocations: 5.093 MB / 0.8776 GB, free: 94.08 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007554/2.79, allocations: 64.38 kB / 0.8777 GB, free: 94.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06154/2.852, allocations: 27.69 MB / 0.9047 GB, free: 81.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.858e-05/2.852, allocations: 10.59 kB / 0.9047 GB, free: 81.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06196/2.914, allocations: 16.86 MB / 0.9212 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004313/2.918, allocations: 1.266 MB / 0.9224 GB, free: 73.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002244/2.92, allocations: 67.97 kB / 0.9225 GB, free: 73.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004964/2.925, allocations: 255.9 kB / 0.9227 GB, free: 73.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/2.927, allocations: 237 kB / 0.923 GB, free: 73.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005312/2.927, allocations: 91.03 kB / 0.9231 GB, free: 73.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01114/2.938, allocations: 4.516 MB / 0.9275 GB, free: 71.92 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.938, allocations: 1.812 kB / 0.9275 GB, free: 71.92 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01167/2.95, allocations: 1.961 MB / 0.9294 GB, free: 70.64 MB / 458.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.001094/2.951, allocations: 223.8 kB / 0.9296 GB, free: 70.47 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02027/2.971, allocations: 10.13 MB / 0.9395 GB, free: 62.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/2.972, allocations: 0 / 0.9395 GB, free: 62.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009757/2.981, allocations: 4.48 MB / 0.9439 GB, free: 58.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006477/2.988, allocations: 0.9848 MB / 0.9448 GB, free: 57.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04738/3.035, allocations: 22.45 MB / 0.9668 GB, free: 37.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01309/3.048, allocations: 5.713 MB / 0.9723 GB, free: 33.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/3.05, allocations: 448.8 kB / 0.9728 GB, free: 32.74 MB / 458.7 MB Notification: Performance of SimCode: time 1.842e-06/3.05, allocations: 0 / 0.9728 GB, free: 32.74 MB / 458.7 MB Notification: Performance of Templates: time 0.8418/3.892, allocations: 195.7 MB / 1.164 GB, free: 98.72 MB / 474.7 MB