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_analytic.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_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.585/1.585, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.58e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2105, allocations: 38.76 MB / 267.6 MB, free: 9.457 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.5765, allocations: 98.09 MB / 365.7 MB, free: 37.65 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.5768, allocations: 90.06 kB / 365.8 MB, free: 37.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9116/1.488, allocations: 182.5 MB / 0.5354 GB, free: 45.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.25e-06/1.488, allocations: 0 / 0.5354 GB, free: 45.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007677/1.489, allocations: 185.6 kB / 0.5355 GB, free: 45.6 MB / 362.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.03095/1.52, allocations: 9.151 MB / 0.5445 GB, free: 42.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/1.52, allocations: 10.44 kB / 0.5445 GB, free: 42.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08573/1.606, allocations: 16.66 MB / 0.5608 GB, free: 41.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03941/1.645, allocations: 14.61 MB / 0.575 GB, free: 40.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000649/1.646, allocations: 0.624 MB / 0.5756 GB, free: 40.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003528/1.65, allocations: 0.8545 MB / 0.5765 GB, free: 40.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05054/1.7, allocations: 19.24 MB / 0.5953 GB, free: 23.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005727/1.701, allocations: 111.8 kB / 0.5954 GB, free: 23.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003113/1.704, allocations: 391.8 kB / 0.5957 GB, free: 22.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/1.707, allocations: 1.592 MB / 0.5973 GB, free: 21.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03868/1.746, allocations: 15.35 MB / 0.6123 GB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.369/2.115, allocations: 80.55 MB / 0.691 GB, free: 35.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02889/2.144, allocations: 7.832 MB / 0.6986 GB, free: 34.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007284/2.151, allocations: 4.003 MB / 0.7025 GB, free: 34.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0279/2.179, allocations: 14.1 MB / 0.7163 GB, free: 30.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.928e-05/2.179, allocations: 73.81 kB / 0.7163 GB, free: 30.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 7.915e-06/2.179, allocations: 0 / 0.7163 GB, free: 30.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=408): time 0.1729/2.352, allocations: 38.06 MB / 0.7535 GB, free: 22.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002309/2.352, allocations: 408.3 kB / 0.7539 GB, free: 22.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01586/2.368, allocations: 6.58 MB / 0.7603 GB, free: 20.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008617/2.369, allocations: 92.45 kB / 0.7604 GB, free: 20.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004502/2.374, allocations: 5.489 MB / 0.7658 GB, free: 15.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001928/2.375, allocations: 1.48 MB / 0.7672 GB, free: 14.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/2.377, allocations: 188.9 kB / 0.7674 GB, free: 14.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0008074/2.377, allocations: 0.6992 MB / 0.7681 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008672/2.386, allocations: 4.094 MB / 0.7721 GB, free: 11.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01287/2.399, allocations: 9.112 MB / 0.781 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2684/2.667, allocations: 6.817 MB / 0.7876 GB, free: 79.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001722/2.668, allocations: 49.38 kB / 0.7877 GB, free: 79.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04436/2.712, allocations: 16.72 MB / 0.804 GB, free: 79.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/2.712, allocations: 77.06 kB / 0.8041 GB, free: 79.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002098/2.712, allocations: 177.7 kB / 0.8043 GB, free: 79.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01969/2.732, allocations: 4.696 MB / 0.8088 GB, free: 79.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008746/2.741, allocations: 1.964 MB / 0.8108 GB, free: 79.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05199/2.793, allocations: 25.11 MB / 0.8353 GB, free: 74.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01047/2.803, allocations: 0.5358 MB / 0.8358 GB, free: 74.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002068/2.806, allocations: 0.5127 MB / 0.8363 GB, free: 74.27 MB / 410.7 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 () * 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.003369/2.809, allocations: 0.8119 MB / 0.8371 GB, free: 73.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002084/2.811, allocations: 0.7096 MB / 0.8378 GB, free: 73.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0316/2.843, allocations: 10.86 MB / 0.8484 GB, free: 69.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.358e-05/2.843, allocations: 46.56 kB / 0.8484 GB, free: 69.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-05/2.843, allocations: 27.5 kB / 0.8485 GB, free: 69.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.647e-05/2.843, allocations: 24.89 kB / 0.8485 GB, free: 69.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0662/2.909, allocations: 23.7 MB / 0.8716 GB, free: 58.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.887e-05/2.909, allocations: 7.406 kB / 0.8717 GB, free: 58.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003299/2.913, allocations: 0.5222 MB / 0.8722 GB, free: 58.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01794/2.931, allocations: 4.139 MB / 0.8762 GB, free: 55.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008958/2.932, allocations: 85 kB / 0.8763 GB, free: 55.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.045/2.977, allocations: 21.83 MB / 0.8976 GB, free: 36.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.34e-05/2.977, allocations: 14.98 kB / 0.8976 GB, free: 36.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03777/3.014, allocations: 17.5 MB / 0.9147 GB, free: 21.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004822/3.019, allocations: 1.375 MB / 0.9161 GB, free: 20.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002404/3.022, allocations: 76.58 kB / 0.9161 GB, free: 20.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00587/3.028, allocations: 251 kB / 0.9164 GB, free: 19.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00149/3.029, allocations: 281.1 kB / 0.9166 GB, free: 19.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007062/3.03, allocations: 120.4 kB / 0.9167 GB, free: 19.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01202/3.042, allocations: 4.733 MB / 0.9214 GB, free: 15.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.043e-06/3.042, allocations: 0 / 0.9214 GB, free: 15.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01363/3.056, allocations: 2.204 MB / 0.9235 GB, free: 13.2 MB / 410.7 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 () * 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.001402/3.057, allocations: 267.8 kB / 0.9238 GB, free: 12.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2666/3.324, allocations: 10.52 MB / 0.934 GB, free: 79.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/3.324, allocations: 3.812 kB / 0.9341 GB, free: 79.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009133/3.333, allocations: 4.351 MB / 0.9383 GB, free: 79.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007579/3.34, allocations: 1.063 MB / 0.9393 GB, free: 79.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05674/3.397, allocations: 18.95 MB / 0.9578 GB, free: 76.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01612/3.413, allocations: 6.571 MB / 0.9643 GB, free: 75.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/3.416, allocations: 492.3 kB / 0.9647 GB, free: 75.4 MB / 410.7 MB Notification: Performance of SimCode: time 2.122e-06/3.416, allocations: 1.75 kB / 0.9647 GB, free: 75.4 MB / 410.7 MB Notification: Performance of Templates: time 0.5204/3.936, allocations: 154.2 MB / 1.115 GB, free: 77.62 MB / 410.7 MB