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.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.568/1.568, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.9e-05, allocations: 3.984 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2063, allocations: 38.78 MB / 267.6 MB, free: 9.301 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.3325, allocations: 84.9 MB / 352.5 MB, free: 4.27 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.3328, allocations: 83.95 kB / 352.6 MB, free: 4.188 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9473/1.28, allocations: 160 MB / 0.5006 GB, free: 38.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.28, allocations: 0 / 0.5006 GB, free: 38.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005818/1.281, allocations: 153.9 kB / 0.5007 GB, free: 38.46 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.02443/1.305, allocations: 7.889 MB / 0.5084 GB, free: 35.51 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/1.305, allocations: 11.31 kB / 0.5084 GB, free: 35.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07946/1.385, allocations: 16.48 MB / 0.5245 GB, free: 34.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0356/1.42, allocations: 13.48 MB / 0.5377 GB, free: 33.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005951/1.421, allocations: 0.5224 MB / 0.5382 GB, free: 33.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002921/1.424, allocations: 0.7314 MB / 0.5389 GB, free: 33.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04/1.464, allocations: 16.25 MB / 0.5548 GB, free: 30.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005364/1.465, allocations: 108.8 kB / 0.5549 GB, free: 30.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002583/1.467, allocations: 335.4 kB / 0.5552 GB, free: 30.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002704/1.47, allocations: 1.49 MB / 0.5567 GB, free: 29.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03149/1.501, allocations: 12.71 MB / 0.5691 GB, free: 20.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3598/1.861, allocations: 73.29 MB / 0.6407 GB, free: 22.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02447/1.886, allocations: 7.453 MB / 0.6479 GB, free: 22.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006249/1.892, allocations: 3.967 MB / 0.6518 GB, free: 22.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02266/1.915, allocations: 11.57 MB / 0.6631 GB, free: 20.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.792e-05/1.915, allocations: 76.69 kB / 0.6632 GB, free: 20.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 7.425e-06/1.915, allocations: 0 / 0.6632 GB, free: 20.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.1636/2.079, allocations: 37.94 MB / 0.7002 GB, free: 15.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/2.079, allocations: 404.8 kB / 0.7006 GB, free: 15.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01401/2.093, allocations: 6.176 MB / 0.7066 GB, free: 14.76 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007293/2.094, allocations: 77.58 kB / 0.7067 GB, free: 14.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003872/2.097, allocations: 4.872 MB / 0.7115 GB, free: 11.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001591/2.099, allocations: 1.243 MB / 0.7127 GB, free: 11.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008396/2.1, allocations: 167.4 kB / 0.7128 GB, free: 10.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005348/2.1, allocations: 0.6584 MB / 0.7135 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007382/2.108, allocations: 3.723 MB / 0.7171 GB, free: 9.102 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/2.118, allocations: 8.372 MB / 0.7253 GB, free: 15.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01837/2.136, allocations: 5.489 MB / 0.7307 GB, free: 11.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002837/2.137, allocations: 44 kB / 0.7307 GB, free: 11.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.0823/2.219, allocations: 16.22 MB / 0.7465 GB, free: 14.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/2.219, allocations: 79.94 kB / 0.7466 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002501/2.22, allocations: 160 kB / 0.7468 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02184/2.241, allocations: 5.498 MB / 0.7521 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008042/2.25, allocations: 1.789 MB / 0.7539 GB, free: 9.289 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06982/2.319, allocations: 28.64 MB / 0.7819 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009356/2.329, allocations: 0.5188 MB / 0.7824 GB, free: 24 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2357/2.565, allocations: 474.6 kB / 0.7828 GB, free: 100.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (944): * Single equations (assignments): 938 * 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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001957/2.567, allocations: 0.736 MB / 0.7835 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/2.568, allocations: 0.6589 MB / 0.7842 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02866/2.597, allocations: 10.89 MB / 0.7948 GB, free: 99.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.555e-05/2.597, allocations: 38.12 kB / 0.7948 GB, free: 99.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.453e-05/2.597, allocations: 21.56 kB / 0.7949 GB, free: 99.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.097e-05/2.597, allocations: 15.8 kB / 0.7949 GB, free: 99.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08916/2.686, allocations: 23.92 MB / 0.8182 GB, free: 96.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-05/2.686, allocations: 4.25 kB / 0.8182 GB, free: 96.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004874/2.691, allocations: 430.1 kB / 0.8187 GB, free: 96.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02745/2.719, allocations: 5.077 MB / 0.8236 GB, free: 96.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007119/2.72, allocations: 66.17 kB / 0.8237 GB, free: 96.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04477/2.764, allocations: 26.73 MB / 0.8498 GB, free: 86.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.961e-06/2.764, allocations: 6.281 kB / 0.8498 GB, free: 86.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04023/2.805, allocations: 16.76 MB / 0.8661 GB, free: 79.85 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004081/2.809, allocations: 1.273 MB / 0.8674 GB, free: 79.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001906/2.811, allocations: 57.62 kB / 0.8674 GB, free: 79.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004823/2.816, allocations: 251.9 kB / 0.8677 GB, free: 79.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00113/2.817, allocations: 249.8 kB / 0.8679 GB, free: 79.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004128/2.817, allocations: 92.75 kB / 0.868 GB, free: 79.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01014/2.827, allocations: 4.455 MB / 0.8724 GB, free: 77.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.132e-06/2.827, allocations: 0 / 0.8724 GB, free: 77.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01106/2.838, allocations: 1.96 MB / 0.8743 GB, free: 75.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001043/2.84, allocations: 222.7 kB / 0.8745 GB, free: 75.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0196/2.859, allocations: 9.991 MB / 0.8842 GB, free: 66.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/2.859, allocations: 4 kB / 0.8842 GB, free: 66.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009194/2.868, allocations: 4.417 MB / 0.8886 GB, free: 62.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0063/2.875, allocations: 0.9826 MB / 0.8895 GB, free: 61.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03947/2.914, allocations: 16.6 MB / 0.9057 GB, free: 47.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01195/2.926, allocations: 5.718 MB / 0.9113 GB, free: 43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/2.928, allocations: 448.3 kB / 0.9117 GB, free: 42.57 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/2.928, allocations: 0 / 0.9117 GB, free: 42.57 MB / 426.7 MB Notification: Performance of Templates: time 0.7445/3.673, allocations: 195.6 MB / 1.103 GB, free: 88.41 MB / 426.7 MB