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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.645/1.645, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003629, allocations: 8 kB / 233.2 MB, free: 3.023 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07125/0.07164, allocations: 38.76 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3065/0.3782, allocations: 86.53 MB / 358.5 MB, free: 3.656 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.3785, allocations: 87.27 kB / 358.6 MB, free: 3.609 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7914/1.17, allocations: 165.1 MB / 0.5115 GB, free: 38.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.802e-06/1.17, allocations: 0 / 0.5115 GB, free: 38.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006867/1.171, allocations: 160 kB / 0.5116 GB, free: 38.69 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.03139/1.202, allocations: 9.307 MB / 0.5207 GB, free: 29.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/1.202, allocations: 12.03 kB / 0.5207 GB, free: 29.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08396/1.286, allocations: 16.54 MB / 0.5369 GB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.268/1.554, allocations: 13.82 MB / 0.5504 GB, free: 42.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000809/1.555, allocations: 0.5549 MB / 0.5509 GB, free: 42.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003457/1.559, allocations: 0.7553 MB / 0.5517 GB, free: 42.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04658/1.605, allocations: 16.95 MB / 0.5682 GB, free: 39.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006841/1.606, allocations: 111.1 kB / 0.5683 GB, free: 39.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002977/1.609, allocations: 353.2 kB / 0.5687 GB, free: 39.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/1.612, allocations: 1.531 MB / 0.5701 GB, free: 39.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03596/1.648, allocations: 13.34 MB / 0.5832 GB, free: 39.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1047/1.753, allocations: 74.76 MB / 0.6562 GB, free: 3.758 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0264/1.779, allocations: 7.103 MB / 0.6631 GB, free: 16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02725/1.806, allocations: 11.94 MB / 0.6748 GB, free: 5.855 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.413e-05/1.807, allocations: 64.56 kB / 0.6748 GB, free: 5.785 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 7.949e-06/1.807, allocations: 11.64 kB / 0.6749 GB, free: 5.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.4373/2.244, allocations: 42.7 MB / 0.7166 GB, free: 85.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/2.244, allocations: 407 kB / 0.7169 GB, free: 84.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0152/2.259, allocations: 6.431 MB / 0.7232 GB, free: 84.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007749/2.26, allocations: 82.23 kB / 0.7233 GB, free: 84.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004166/2.264, allocations: 5.071 MB / 0.7282 GB, free: 81.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001753/2.266, allocations: 1.341 MB / 0.7296 GB, free: 80.87 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008784/2.267, allocations: 173.4 kB / 0.7297 GB, free: 80.87 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005798/2.268, allocations: 0.6794 MB / 0.7304 GB, free: 80.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007361/2.275, allocations: 3.539 MB / 0.7338 GB, free: 80.51 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/2.285, allocations: 8.395 MB / 0.742 GB, free: 74.31 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/2.296, allocations: 5.323 MB / 0.7472 GB, free: 74.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001759/2.296, allocations: 49 kB / 0.7473 GB, free: 74.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.03782/2.334, allocations: 14.6 MB / 0.7615 GB, free: 69.92 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/2.334, allocations: 85.34 kB / 0.7616 GB, free: 69.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002318/2.334, allocations: 169.3 kB / 0.7618 GB, free: 69.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01495/2.349, allocations: 3.734 MB / 0.7654 GB, free: 69.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008125/2.358, allocations: 1.866 MB / 0.7673 GB, free: 68.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0457/2.403, allocations: 24.72 MB / 0.7914 GB, free: 55.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00981/2.413, allocations: 0.4884 MB / 0.7919 GB, free: 55.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001899/2.415, allocations: 0.4937 MB / 0.7924 GB, free: 54.85 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.00928/2.424, allocations: 3.625 MB / 0.7959 GB, free: 51.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001756/2.426, allocations: 0.6865 MB / 0.7966 GB, free: 51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02436/2.451, allocations: 8.925 MB / 0.8053 GB, free: 43.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.476e-05/2.451, allocations: 38.28 kB / 0.8053 GB, free: 43.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.035e-05/2.451, allocations: 20 kB / 0.8053 GB, free: 43.88 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.655e-05/2.451, allocations: 21.19 kB / 0.8054 GB, free: 43.88 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05193/2.503, allocations: 19.51 MB / 0.8244 GB, free: 28.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-05/2.503, allocations: 11.69 kB / 0.8244 GB, free: 28.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0027/2.506, allocations: 449.5 kB / 0.8249 GB, free: 27.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01352/2.519, allocations: 3.497 MB / 0.8283 GB, free: 25.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007693/2.52, allocations: 70.72 kB / 0.8283 GB, free: 25.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2917/2.812, allocations: 24.07 MB / 0.8518 GB, free: 75.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.535e-05/2.812, allocations: 10.97 kB / 0.8519 GB, free: 75.34 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03091/2.843, allocations: 15.05 MB / 0.8666 GB, free: 72.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004295/2.847, allocations: 1.226 MB / 0.8678 GB, free: 72.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002149/2.849, allocations: 69.02 kB / 0.8678 GB, free: 72.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005318/2.855, allocations: 217.8 kB / 0.868 GB, free: 72.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00137/2.856, allocations: 274 kB / 0.8683 GB, free: 72.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005526/2.856, allocations: 98.8 kB / 0.8684 GB, free: 72.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01171/2.868, allocations: 4.642 MB / 0.8729 GB, free: 72.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.049e-06/2.868, allocations: 0 / 0.8729 GB, free: 72.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01219/2.88, allocations: 2.008 MB / 0.8749 GB, free: 72.39 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.001138/2.882, allocations: 234.7 kB / 0.8751 GB, free: 72.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01926/2.901, allocations: 9.39 MB / 0.8843 GB, free: 70.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/2.901, allocations: 5.328 kB / 0.8843 GB, free: 70.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009471/2.91, allocations: 4.199 MB / 0.8884 GB, free: 69.08 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007261/2.918, allocations: 1.015 MB / 0.8894 GB, free: 68.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04731/2.965, allocations: 22.37 MB / 0.9112 GB, free: 57.67 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.014/2.979, allocations: 5.937 MB / 0.917 GB, free: 55.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002099/2.981, allocations: 476.8 kB / 0.9175 GB, free: 55.84 MB / 394.7 MB Notification: Performance of SimCode: time 1.819e-06/2.981, allocations: 0 / 0.9175 GB, free: 55.84 MB / 394.7 MB Notification: Performance of Templates: time 0.5647/3.546, allocations: 201.9 MB / 1.115 GB, free: 6.238 MB / 410.7 MB