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.661/1.661, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.896e-05/2.911e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2076, allocations: 38.76 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.3362, allocations: 86.45 MB / 354 MB, free: 2.855 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003024/0.3366, allocations: 83.95 kB / 354.1 MB, free: 2.773 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.002/1.338, allocations: 165.2 MB / 0.5072 GB, free: 38.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.605e-06/1.338, allocations: 0 / 0.5072 GB, free: 38.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006432/1.339, allocations: 171 kB / 0.5074 GB, free: 38.04 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.02579/1.365, allocations: 8.183 MB / 0.5153 GB, free: 34.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/1.365, allocations: 7.031 kB / 0.5153 GB, free: 34.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08701/1.452, allocations: 16.57 MB / 0.5315 GB, free: 34.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03738/1.489, allocations: 13.76 MB / 0.545 GB, free: 33.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006271/1.49, allocations: 0.55 MB / 0.5455 GB, free: 33.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003141/1.493, allocations: 0.7625 MB / 0.5462 GB, free: 33.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04289/1.536, allocations: 16.82 MB / 0.5627 GB, free: 27.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006108/1.537, allocations: 113 kB / 0.5628 GB, free: 27.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00269/1.539, allocations: 344.9 kB / 0.5631 GB, free: 27.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002664/1.542, allocations: 1.538 MB / 0.5646 GB, free: 26.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03341/1.575, allocations: 13.12 MB / 0.5774 GB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3662/1.942, allocations: 74.79 MB / 0.6505 GB, free: 19.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02475/1.967, allocations: 7.018 MB / 0.6573 GB, free: 18.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006273/1.973, allocations: 3.927 MB / 0.6611 GB, free: 18.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02343/1.996, allocations: 11.94 MB / 0.6728 GB, free: 16.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.259e-05/1.996, allocations: 70.94 kB / 0.6729 GB, free: 16.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 7.658e-06/1.996, allocations: 0 / 0.6729 GB, free: 16.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.1613/2.158, allocations: 35.32 MB / 0.7074 GB, free: 11.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/2.158, allocations: 399.7 kB / 0.7077 GB, free: 11.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01434/2.172, allocations: 6.351 MB / 0.7139 GB, free: 10.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007342/2.173, allocations: 84.05 kB / 0.714 GB, free: 10.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00394/2.177, allocations: 5.068 MB / 0.719 GB, free: 7.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001661/2.179, allocations: 1.346 MB / 0.7203 GB, free: 6.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009159/2.18, allocations: 171.8 kB / 0.7205 GB, free: 6.277 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000598/2.18, allocations: 0.6796 MB / 0.7211 GB, free: 5.805 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007152/2.187, allocations: 3.463 MB / 0.7245 GB, free: 4.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0111/2.199, allocations: 8.32 MB / 0.7326 GB, free: 12.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/2.21, allocations: 5.294 MB / 0.7378 GB, free: 9.371 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001763/2.21, allocations: 48 kB / 0.7378 GB, free: 9.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04123/2.251, allocations: 14.51 MB / 0.752 GB, free: 13.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/2.252, allocations: 86.3 kB / 0.7521 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002623/2.252, allocations: 172 kB / 0.7523 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01515/2.267, allocations: 3.727 MB / 0.7559 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008838/2.276, allocations: 1.863 MB / 0.7577 GB, free: 9.188 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0571/2.333, allocations: 24.07 MB / 0.7812 GB, free: 4.891 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009847/2.343, allocations: 497.3 kB / 0.7817 GB, free: 4.473 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00208/2.345, allocations: 0.4926 MB / 0.7822 GB, free: 3.992 MB / 426.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 () * 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.003441/2.349, allocations: 0.7793 MB / 0.7829 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002023/2.351, allocations: 0.6788 MB / 0.7836 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2684/2.619, allocations: 8.952 MB / 0.7923 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.166e-05/2.619, allocations: 37.5 kB / 0.7924 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.764e-05/2.619, allocations: 23.47 kB / 0.7924 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.325e-05/2.619, allocations: 20.44 kB / 0.7924 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0498/2.669, allocations: 19.43 MB / 0.8114 GB, free: 98.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-05/2.669, allocations: 12.23 kB / 0.8114 GB, free: 98.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00289/2.672, allocations: 448.1 kB / 0.8118 GB, free: 98.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01393/2.686, allocations: 3.491 MB / 0.8152 GB, free: 98.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008468/2.687, allocations: 69.56 kB / 0.8153 GB, free: 98.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04217/2.729, allocations: 23.08 MB / 0.8378 GB, free: 93.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.337e-05/2.729, allocations: 11.44 kB / 0.8379 GB, free: 93.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03082/2.76, allocations: 14.93 MB / 0.8524 GB, free: 86.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004631/2.765, allocations: 1.225 MB / 0.8536 GB, free: 86.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002261/2.767, allocations: 73.5 kB / 0.8537 GB, free: 86.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005385/2.773, allocations: 217.6 kB / 0.8539 GB, free: 86.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/2.774, allocations: 268.1 kB / 0.8542 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006408/2.775, allocations: 99.62 kB / 0.8543 GB, free: 86.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01131/2.786, allocations: 4.574 MB / 0.8587 GB, free: 84.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.441e-06/2.786, allocations: 2.625 kB / 0.8587 GB, free: 84.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01193/2.798, allocations: 2.003 MB / 0.8607 GB, free: 84.41 MB / 426.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 (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.001094/2.799, allocations: 234.1 kB / 0.8609 GB, free: 84.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01898/2.818, allocations: 9.253 MB / 0.87 GB, free: 81.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/2.818, allocations: 3.812 kB / 0.87 GB, free: 81.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009215/2.827, allocations: 4.121 MB / 0.874 GB, free: 77.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00714/2.835, allocations: 1.018 MB / 0.875 GB, free: 76.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04086/2.875, allocations: 16.25 MB / 0.8908 GB, free: 62.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01358/2.889, allocations: 5.938 MB / 0.8966 GB, free: 58.15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002118/2.891, allocations: 476.3 kB / 0.8971 GB, free: 57.7 MB / 426.7 MB Notification: Performance of SimCode: time 3.297e-06/2.891, allocations: 0 / 0.8971 GB, free: 57.7 MB / 426.7 MB Notification: Performance of Templates: time 0.8272/3.718, allocations: 201.9 MB / 1.094 GB, free: 91.39 MB / 426.7 MB