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_analytic.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_analytic,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_analytic") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003507, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09694, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4981/0.5951, allocations: 103.9 MB / 412.9 MB, free: 11.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.5955, allocations: 101.7 kB / 413 MB, free: 11.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.011/1.607, allocations: 184.3 MB / 0.5833 GB, free: 66.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.607, allocations: 0 / 0.5833 GB, free: 66.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008609/1.608, allocations: 182.5 kB / 0.5835 GB, free: 66.92 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.04308/1.651, allocations: 10.31 MB / 0.5935 GB, free: 63.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/1.651, allocations: 10.78 kB / 0.5935 GB, free: 63.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1183/1.769, allocations: 16.62 MB / 0.6098 GB, free: 62.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05146/1.82, allocations: 14.66 MB / 0.6241 GB, free: 54.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008301/1.821, allocations: 0.6228 MB / 0.6247 GB, free: 53.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004945/1.826, allocations: 0.8609 MB / 0.6255 GB, free: 52.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06502/1.891, allocations: 19.48 MB / 0.6446 GB, free: 32.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008211/1.892, allocations: 107 kB / 0.6447 GB, free: 31.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004112/1.896, allocations: 392.7 kB / 0.645 GB, free: 31.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003544/1.9, allocations: 1.599 MB / 0.6466 GB, free: 30.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05151/1.952, allocations: 15.58 MB / 0.6618 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4602/2.412, allocations: 80.55 MB / 0.7405 GB, free: 42.86 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0369/2.449, allocations: 7.885 MB / 0.7482 GB, free: 42.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03458/2.483, allocations: 14.11 MB / 0.7619 GB, free: 37.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.398e-05/2.484, allocations: 74.06 kB / 0.762 GB, free: 37.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 7.825e-06/2.484, allocations: 0 / 0.762 GB, free: 37.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.2958/2.779, allocations: 47.62 MB / 0.8085 GB, free: 24.24 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002121/2.78, allocations: 412.1 kB / 0.8089 GB, free: 23.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01685/2.797, allocations: 7.501 MB / 0.8162 GB, free: 17.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001124/2.798, allocations: 89.7 kB / 0.8163 GB, free: 17.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005399/2.803, allocations: 5.491 MB / 0.8217 GB, free: 12.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002303/2.805, allocations: 1.48 MB / 0.8231 GB, free: 11.36 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/2.807, allocations: 190 kB / 0.8233 GB, free: 11.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000775/2.808, allocations: 0.6983 MB / 0.824 GB, free: 10.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01044/2.818, allocations: 4.187 MB / 0.8281 GB, free: 6.984 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3376/3.156, allocations: 9.225 MB / 0.8371 GB, free: 83.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0159/3.172, allocations: 6.092 MB / 0.843 GB, free: 83.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000251/3.172, allocations: 49.41 kB / 0.8431 GB, free: 83.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.05875/3.231, allocations: 16.83 MB / 0.8595 GB, free: 82.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/3.231, allocations: 84.28 kB / 0.8596 GB, free: 82.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002686/3.231, allocations: 171.8 kB / 0.8598 GB, free: 82.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02626/3.257, allocations: 4.674 MB / 0.8643 GB, free: 82.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/3.27, allocations: 1.962 MB / 0.8663 GB, free: 82.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06739/3.337, allocations: 26.21 MB / 0.8918 GB, free: 74.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01188/3.349, allocations: 0.5321 MB / 0.8924 GB, free: 74.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002482/3.352, allocations: 0.5154 MB / 0.8929 GB, free: 74.27 MB / 442.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 () * 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.01213/3.364, allocations: 4.085 MB / 0.8969 GB, free: 72.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002007/3.366, allocations: 0.709 MB / 0.8975 GB, free: 72.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05537/3.421, allocations: 10.9 MB / 0.9082 GB, free: 68.47 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.273e-05/3.422, allocations: 42.3 kB / 0.9082 GB, free: 68.47 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.244e-05/3.422, allocations: 22.03 kB / 0.9083 GB, free: 68.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001007/3.422, allocations: 22.86 kB / 0.9083 GB, free: 68.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08333/3.505, allocations: 23.69 MB / 0.9314 GB, free: 58.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-05/3.505, allocations: 8 kB / 0.9314 GB, free: 58.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004728/3.51, allocations: 0.5203 MB / 0.9319 GB, free: 58.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02473/3.535, allocations: 4.109 MB / 0.9359 GB, free: 55.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009834/3.536, allocations: 73.64 kB / 0.936 GB, free: 55.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05255/3.588, allocations: 22.87 MB / 0.9583 GB, free: 35.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.046e-05/3.588, allocations: 11.94 kB / 0.9584 GB, free: 35.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04606/3.634, allocations: 16.08 MB / 0.9741 GB, free: 22.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005122/3.64, allocations: 1.369 MB / 0.9754 GB, free: 20.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002646/3.642, allocations: 79.47 kB / 0.9755 GB, free: 20.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009499/3.652, allocations: 240.5 kB / 0.9757 GB, free: 20.64 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002167/3.654, allocations: 285.7 kB / 0.976 GB, free: 20.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000856/3.655, allocations: 108.9 kB / 0.9761 GB, free: 20.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01798/3.673, allocations: 4.809 MB / 0.9808 GB, free: 16.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.11e-07/3.673, allocations: 0 / 0.9808 GB, free: 16.41 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01376/3.687, allocations: 2.198 MB / 0.9829 GB, free: 14.24 MB / 442.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 () * 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.001603/3.688, allocations: 269.3 kB / 0.9832 GB, free: 14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3467/4.035, allocations: 10.6 MB / 0.9935 GB, free: 82.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-05/4.035, allocations: 2.031 kB / 0.9935 GB, free: 82.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01249/4.048, allocations: 4.425 MB / 0.9979 GB, free: 81.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009536/4.057, allocations: 1.054 MB / 0.9989 GB, free: 81.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07746/4.135, allocations: 25.74 MB / 1.024 GB, free: 73.02 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01725/4.152, allocations: 6.572 MB / 1.03 GB, free: 72.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002996/4.155, allocations: 498.7 kB / 1.031 GB, free: 72.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.483e-06/4.155, allocations: 7.125 kB / 1.031 GB, free: 72.09 MB / 442.7 MB Notification: Performance of Templates: time 0.6333/4.789, allocations: 154.2 MB / 1.182 GB, free: 96.41 MB / 458.7 MB