Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,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_analytic") Notification: Performance of loadModel(Modelica): time 1.735/1.735, allocations: 171.1 MB / 187.3 MB, free: 1.148 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003584, allocations: 12 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.09489, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4868/0.5818, allocations: 98.17 MB / 370.7 MB, free: 8.145 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/0.5822, allocations: 97.7 kB / 370.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9831/1.565, allocations: 184.4 MB / 0.5422 GB, free: 9.312 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.466e-06/1.565, allocations: 0 / 0.5422 GB, free: 9.312 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001158/1.567, allocations: 184 kB / 0.5424 GB, free: 9.133 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.5725/2.139, allocations: 10.31 MB / 0.5524 GB, free: 25.74 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/2.139, allocations: 8.781 kB / 0.5524 GB, free: 25.74 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1196/2.259, allocations: 16.63 MB / 0.5687 GB, free: 25.13 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04976/2.309, allocations: 14.66 MB / 0.583 GB, free: 24.28 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008146/2.309, allocations: 0.6246 MB / 0.5836 GB, free: 24.26 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004629/2.314, allocations: 0.8608 MB / 0.5844 GB, free: 24.24 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06445/2.379, allocations: 19.47 MB / 0.6034 GB, free: 20.59 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007401/2.379, allocations: 111.1 kB / 0.6036 GB, free: 20.57 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003519/2.383, allocations: 391.7 kB / 0.6039 GB, free: 20.57 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003605/2.387, allocations: 1.596 MB / 0.6055 GB, free: 20.56 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05136/2.438, allocations: 15.59 MB / 0.6207 GB, free: 17.06 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4338/2.872, allocations: 80.85 MB / 0.6997 GB, free: 63.5 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03751/2.909, allocations: 7.88 MB / 0.7074 GB, free: 62.8 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03459/2.944, allocations: 14.11 MB / 0.7211 GB, free: 59.36 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.735e-05/2.944, allocations: 68.97 kB / 0.7212 GB, free: 59.31 MB / 394.8 MB Notification: Performance of pre-optimization done (n=308): time 6.953e-06/2.944, allocations: 0 / 0.7212 GB, free: 59.31 MB / 394.8 MB Notification: Performance of matching and sorting (n=408): time 0.2988/3.243, allocations: 47.64 MB / 0.7677 GB, free: 53.64 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/3.243, allocations: 404.3 kB / 0.7681 GB, free: 53.2 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02022/3.264, allocations: 7.515 MB / 0.7755 GB, free: 52.51 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001151/3.265, allocations: 89.17 kB / 0.7755 GB, free: 52.48 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00564/3.27, allocations: 5.488 MB / 0.7809 GB, free: 48.98 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0026/3.273, allocations: 1.478 MB / 0.7823 GB, free: 47.88 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001499/3.275, allocations: 187.6 kB / 0.7825 GB, free: 47.73 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.000741/3.275, allocations: 0.7007 MB / 0.7832 GB, free: 47.25 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01052/3.286, allocations: 4.181 MB / 0.7873 GB, free: 45.28 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01407/3.3, allocations: 9.235 MB / 0.7963 GB, free: 34.54 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01385/3.314, allocations: 6.096 MB / 0.8023 GB, free: 29.19 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002016/3.314, allocations: 48 kB / 0.8023 GB, free: 29.14 MB / 394.8 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.056/3.37, allocations: 16.83 MB / 0.8187 GB, free: 15.38 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001673/3.37, allocations: 83.94 kB / 0.8188 GB, free: 15.3 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002919/3.371, allocations: 176 kB / 0.819 GB, free: 15.12 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02632/3.397, allocations: 4.682 MB / 0.8236 GB, free: 11.71 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01216/3.409, allocations: 1.961 MB / 0.8255 GB, free: 9.996 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3771/3.786, allocations: 26.84 MB / 0.8517 GB, free: 54.57 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01217/3.799, allocations: 0.5345 MB / 0.8522 GB, free: 54.57 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002643/3.801, allocations: 0.5111 MB / 0.8527 GB, free: 54.57 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01345/3.815, allocations: 4.089 MB / 0.8567 GB, free: 54.45 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002211/3.817, allocations: 0.7081 MB / 0.8574 GB, free: 54.45 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04255/3.86, allocations: 10.91 MB / 0.868 GB, free: 54.16 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.471e-05/3.86, allocations: 40.84 kB / 0.8681 GB, free: 54.16 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.834e-05/3.86, allocations: 22 kB / 0.8681 GB, free: 54.16 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.182e-05/3.86, allocations: 19.97 kB / 0.8681 GB, free: 54.16 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08167/3.942, allocations: 23.7 MB / 0.8913 GB, free: 49.41 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-05/3.942, allocations: 6.625 kB / 0.8913 GB, free: 49.41 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004675/3.946, allocations: 0.5276 MB / 0.8918 GB, free: 49.39 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02483/3.971, allocations: 4.105 MB / 0.8958 GB, free: 48.5 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001032/3.972, allocations: 85.2 kB / 0.8959 GB, free: 48.46 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05625/4.029, allocations: 22.86 MB / 0.9182 GB, free: 38.5 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/4.029, allocations: 12.56 kB / 0.9182 GB, free: 38.5 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04981/4.079, allocations: 16.08 MB / 0.9339 GB, free: 32.17 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005564/4.084, allocations: 1.375 MB / 0.9353 GB, free: 31.49 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002815/4.087, allocations: 71.06 kB / 0.9353 GB, free: 31.44 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00713/4.094, allocations: 246.2 kB / 0.9356 GB, free: 31.39 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001613/4.096, allocations: 286.4 kB / 0.9358 GB, free: 31.35 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004878/4.096, allocations: 104.7 kB / 0.9359 GB, free: 31.32 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01314/4.11, allocations: 4.806 MB / 0.9406 GB, free: 29.73 MB / 394.8 MB Notification: Performance of sort global known variables: time 7.82e-07/4.11, allocations: 0 / 0.9406 GB, free: 29.73 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01384/4.123, allocations: 2.199 MB / 0.9428 GB, free: 28.62 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001536/4.125, allocations: 271.3 kB / 0.943 GB, free: 28.41 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02403/4.149, allocations: 10.61 MB / 0.9534 GB, free: 19.52 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.626e-05/4.149, allocations: 7.25 kB / 0.9534 GB, free: 19.52 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01049/4.16, allocations: 4.415 MB / 0.9577 GB, free: 15.64 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00941/4.169, allocations: 1.055 MB / 0.9587 GB, free: 14.79 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0909/4.26, allocations: 26.49 MB / 0.9846 GB, free: 9.27 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3461/4.606, allocations: 6.774 MB / 0.9912 GB, free: 67.47 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003018/4.609, allocations: 497.8 kB / 0.9917 GB, free: 67.46 MB / 410.8 MB Notification: Performance of SimCode: time 1.843e-06/4.609, allocations: 3.656 kB / 0.9917 GB, free: 67.46 MB / 410.8 MB Notification: Performance of Templates: time 0.6477/5.257, allocations: 154.2 MB / 1.142 GB, free: 81.47 MB / 426.8 MB