Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.829/1.829, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.000358, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09582/0.09621, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4575/0.5538, allocations: 92.24 MB / 401.2 MB, free: 14.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.5542, allocations: 95.52 kB / 401.3 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9652/1.519, allocations: 167.2 MB / 0.5552 GB, free: 64.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.965e-06/1.519, allocations: 0 / 0.5552 GB, free: 64.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007457/1.52, allocations: 172.4 kB / 0.5554 GB, free: 64.2 MB / 410.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.03909/1.559, allocations: 9.303 MB / 0.5645 GB, free: 60.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/1.559, allocations: 9.281 kB / 0.5645 GB, free: 60.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1157/1.675, allocations: 16.53 MB / 0.5806 GB, free: 60.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04664/1.722, allocations: 13.83 MB / 0.5941 GB, free: 58.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007793/1.723, allocations: 0.5556 MB / 0.5947 GB, free: 58.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004391/1.727, allocations: 0.7591 MB / 0.5954 GB, free: 58.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.054/1.781, allocations: 17.01 MB / 0.612 GB, free: 54.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007321/1.782, allocations: 118.1 kB / 0.6121 GB, free: 54.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003583/1.785, allocations: 349.2 kB / 0.6125 GB, free: 54.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003543/1.789, allocations: 1.527 MB / 0.614 GB, free: 53.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04382/1.833, allocations: 13.34 MB / 0.627 GB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4515/2.284, allocations: 74.76 MB / 0.7 GB, free: 31.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03198/2.316, allocations: 7.085 MB / 0.7069 GB, free: 30.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0298/2.346, allocations: 11.94 MB / 0.7186 GB, free: 28.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.739e-05/2.346, allocations: 64.53 kB / 0.7186 GB, free: 28.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 8.105e-06/2.346, allocations: 0 / 0.7186 GB, free: 28.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=366): time 0.2548/2.601, allocations: 42.16 MB / 0.7598 GB, free: 23.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/2.601, allocations: 402.7 kB / 0.7602 GB, free: 22.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01798/2.619, allocations: 7.254 MB / 0.7673 GB, free: 22.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009836/2.62, allocations: 83.7 kB / 0.7673 GB, free: 22.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004924/2.625, allocations: 5.076 MB / 0.7723 GB, free: 19.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002268/2.628, allocations: 1.337 MB / 0.7736 GB, free: 18.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001326/2.629, allocations: 175.8 kB / 0.7738 GB, free: 18.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007541/2.63, allocations: 0.6779 MB / 0.7744 GB, free: 17.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009078/2.639, allocations: 3.542 MB / 0.7779 GB, free: 16.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01245/2.652, allocations: 8.422 MB / 0.7861 GB, free: 8.609 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01243/2.664, allocations: 5.324 MB / 0.7913 GB, free: 6.445 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002055/2.664, allocations: 54.28 kB / 0.7914 GB, free: 6.395 MB / 426.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.05703/2.721, allocations: 15.02 MB / 0.806 GB, free: 11.81 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/2.722, allocations: 76 kB / 0.8061 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003372/2.722, allocations: 168 kB / 0.8063 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0205/2.742, allocations: 3.719 MB / 0.8099 GB, free: 8.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01204/2.754, allocations: 1.857 MB / 0.8117 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.071/2.826, allocations: 25.25 MB / 0.8364 GB, free: 2.855 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01138/2.837, allocations: 489 kB / 0.8368 GB, free: 2.441 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002323/2.839, allocations: 0.4894 MB / 0.8373 GB, free: 1.961 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.3321/3.171, allocations: 3.794 MB / 0.841 GB, free: 95.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001951/3.173, allocations: 0.6859 MB / 0.8417 GB, free: 95.83 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03446/3.208, allocations: 8.91 MB / 0.8504 GB, free: 95.56 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-05/3.208, allocations: 37.06 kB / 0.8504 GB, free: 95.56 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.083e-05/3.208, allocations: 21.78 kB / 0.8505 GB, free: 95.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.018e-05/3.208, allocations: 21.27 kB / 0.8505 GB, free: 95.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0641/3.272, allocations: 19.5 MB / 0.8695 GB, free: 94.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-05/3.272, allocations: 9.906 kB / 0.8695 GB, free: 94.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004043/3.276, allocations: 448 kB / 0.87 GB, free: 94.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01869/3.295, allocations: 3.479 MB / 0.8734 GB, free: 94.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009969/3.296, allocations: 68.14 kB / 0.8734 GB, free: 94.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05837/3.355, allocations: 24 MB / 0.8969 GB, free: 87.28 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-05/3.355, allocations: 10.31 kB / 0.8969 GB, free: 87.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05472/3.409, allocations: 13.48 MB / 0.91 GB, free: 82.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006518/3.416, allocations: 1.225 MB / 0.9112 GB, free: 81.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003799/3.42, allocations: 68.47 kB / 0.9113 GB, free: 81.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009234/3.429, allocations: 215.4 kB / 0.9115 GB, free: 81.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002077/3.431, allocations: 269.1 kB / 0.9118 GB, free: 81.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001169/3.433, allocations: 104.6 kB / 0.9119 GB, free: 81.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01402/3.447, allocations: 4.632 MB / 0.9164 GB, free: 79.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.51e-07/3.447, allocations: 3.25 kB / 0.9164 GB, free: 79.93 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01416/3.461, allocations: 2.006 MB / 0.9184 GB, free: 79.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.001497/3.462, allocations: 237.1 kB / 0.9186 GB, free: 79.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02309/3.486, allocations: 9.39 MB / 0.9277 GB, free: 76.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/3.486, allocations: 0 / 0.9277 GB, free: 76.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01291/3.499, allocations: 4.2 MB / 0.9318 GB, free: 74.47 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009139/3.508, allocations: 1.025 MB / 0.9328 GB, free: 74.08 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05522/3.563, allocations: 22.41 MB / 0.9547 GB, free: 54.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01484/3.578, allocations: 5.933 MB / 0.9605 GB, free: 50.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002613/3.581, allocations: 481.2 kB / 0.961 GB, free: 50.09 MB / 458.7 MB Notification: Performance of SimCode: time 1.352e-06/3.581, allocations: 1.094 kB / 0.961 GB, free: 50.09 MB / 458.7 MB Notification: Performance of Templates: time 0.7114/4.292, allocations: 201.9 MB / 1.158 GB, free: 4.965 MB / 474.7 MB