Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.681/1.681, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.351e-05/2.359e-05, allocations: 4 kB / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07075/0.07079, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.3776, allocations: 85.79 MB / 347.1 MB, free: 2.754 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.3779, allocations: 82.14 kB / 347.2 MB, free: 2.711 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7749/1.153, allocations: 161.9 MB / 0.4971 GB, free: 42.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.901e-06/1.153, allocations: 3.938 kB / 0.4971 GB, free: 42.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006179/1.154, allocations: 167 kB / 0.4973 GB, free: 42.09 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.02598/1.18, allocations: 8.185 MB / 0.5052 GB, free: 33.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/1.18, allocations: 12.03 kB / 0.5053 GB, free: 33.83 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0801/1.26, allocations: 16.56 MB / 0.5214 GB, free: 17.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03597/1.296, allocations: 13.74 MB / 0.5348 GB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000427/1.296, allocations: 240 kB / 0.5351 GB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002944/1.299, allocations: 471.6 kB / 0.5355 GB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2422/1.541, allocations: 9.864 MB / 0.5452 GB, free: 48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03441/1.576, allocations: 14.78 MB / 0.5596 GB, free: 44.42 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005809/1.576, allocations: 111.7 kB / 0.5597 GB, free: 44.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002454/1.579, allocations: 38.81 kB / 0.5597 GB, free: 44.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002691/1.582, allocations: 1.53 MB / 0.5612 GB, free: 44.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09632/1.678, allocations: 72.58 MB / 0.6321 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008982/1.687, allocations: 5.393 MB / 0.6374 GB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006305/1.693, allocations: 3.827 MB / 0.6411 GB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001772/1.695, allocations: 1.375 MB / 0.6425 GB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/1.695, allocations: 71 kB / 0.6425 GB, free: 8.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=299): time 8.446e-06/1.695, allocations: 0 / 0.6425 GB, free: 8.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=371): time 0.3481/2.043, allocations: 36.02 MB / 0.6777 GB, free: 74.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/2.044, allocations: 401.1 kB / 0.6781 GB, free: 74.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01445/2.058, allocations: 5.645 MB / 0.6836 GB, free: 74.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007175/2.059, allocations: 30.3 kB / 0.6836 GB, free: 74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004061/2.063, allocations: 5.16 MB / 0.6887 GB, free: 72.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00185/2.065, allocations: 1.314 MB / 0.6899 GB, free: 71.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0011/2.066, allocations: 0 / 0.6899 GB, free: 71.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007947/2.067, allocations: 0.6902 MB / 0.6906 GB, free: 71.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00724/2.074, allocations: 3.352 MB / 0.6939 GB, free: 71.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009825/2.084, allocations: 8.294 MB / 0.702 GB, free: 64.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009668/2.094, allocations: 5.199 MB / 0.7071 GB, free: 64.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001633/2.094, allocations: 52.14 kB / 0.7071 GB, free: 64.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.03512/2.129, allocations: 13.47 MB / 0.7203 GB, free: 64.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/2.129, allocations: 80.44 kB / 0.7204 GB, free: 64.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001979/2.129, allocations: 177.1 kB / 0.7205 GB, free: 64.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01412/2.143, allocations: 3.684 MB / 0.7241 GB, free: 63.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007713/2.151, allocations: 1.916 MB / 0.726 GB, free: 63.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0394/2.191, allocations: 22.22 MB / 0.7477 GB, free: 52.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009476/2.2, allocations: 336.1 kB / 0.748 GB, free: 52.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001939/2.202, allocations: 0.5066 MB / 0.7485 GB, free: 52.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1030): * Single equations (assignments): 1024 * 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,64.1%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002475/2.205, allocations: 0.5509 MB / 0.749 GB, free: 51.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/2.206, allocations: 0.646 MB / 0.7497 GB, free: 51.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02268/2.229, allocations: 8.503 MB / 0.758 GB, free: 48.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.467e-05/2.229, allocations: 42.16 kB / 0.758 GB, free: 48.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-05/2.229, allocations: 19.06 kB / 0.758 GB, free: 48.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.869e-05/2.229, allocations: 22 kB / 0.7581 GB, free: 48.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.045/2.274, allocations: 18.15 MB / 0.7758 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-05/2.274, allocations: 8 kB / 0.7758 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/2.277, allocations: 457.4 kB / 0.7762 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01294/2.29, allocations: 3.412 MB / 0.7796 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007244/2.291, allocations: 15.95 kB / 0.7796 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03618/2.327, allocations: 21.53 MB / 0.8006 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/2.327, allocations: 19.69 kB / 0.8006 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2669/2.594, allocations: 14.6 MB / 0.8149 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004313/2.598, allocations: 1.185 MB / 0.816 GB, free: 61.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002186/2.6, allocations: 13.55 kB / 0.816 GB, free: 61.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005273/2.606, allocations: 163.4 kB / 0.8162 GB, free: 61.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001406/2.607, allocations: 267.2 kB / 0.8165 GB, free: 61.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006498/2.608, allocations: 104.8 kB / 0.8166 GB, free: 61.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01089/2.619, allocations: 3.939 MB / 0.8204 GB, free: 61.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.185e-06/2.619, allocations: 0.9375 kB / 0.8204 GB, free: 61.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01284/2.632, allocations: 1.749 MB / 0.8221 GB, free: 61.36 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 242 * 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,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001157/2.633, allocations: 174.4 kB / 0.8223 GB, free: 61.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01842/2.651, allocations: 8.974 MB / 0.831 GB, free: 60.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/2.651, allocations: 3.75 kB / 0.831 GB, free: 60.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008569/2.66, allocations: 3.933 MB / 0.8349 GB, free: 60.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009692/2.67, allocations: 0.8722 MB / 0.8357 GB, free: 60.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07296/2.743, allocations: 16.07 MB / 0.8514 GB, free: 57.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01808/2.761, allocations: 5.933 MB / 0.8572 GB, free: 56.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002052/2.763, allocations: 458.7 kB / 0.8577 GB, free: 56.39 MB / 378.7 MB Notification: Performance of SimCode: time 2.114e-06/2.763, allocations: 0 / 0.8577 GB, free: 56.39 MB / 378.7 MB Notification: Performance of Templates: time 0.5247/3.288, allocations: 198.6 MB / 1.052 GB, free: 31.2 MB / 394.7 MB