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.555/1.555, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.000361, allocations: 8 kB / 233.2 MB, free: 3 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06905/0.06944, allocations: 38.77 MB / 272 MB, free: 12.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3055/0.375, allocations: 84.99 MB / 357 MB, free: 5.121 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.3753, allocations: 87.64 kB / 357.1 MB, free: 5.074 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7482/1.124, allocations: 159.9 MB / 0.5048 GB, free: 45.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.689e-06/1.124, allocations: 4 kB / 0.5049 GB, free: 45.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005711/1.124, allocations: 167.9 kB / 0.505 GB, free: 45.1 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.02718/1.151, allocations: 8.957 MB / 0.5138 GB, free: 36.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/1.151, allocations: 12.03 kB / 0.5138 GB, free: 36.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07837/1.23, allocations: 16.46 MB / 0.5298 GB, free: 19.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0346/1.264, allocations: 13.55 MB / 0.5431 GB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005748/1.265, allocations: 0.5293 MB / 0.5436 GB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002802/1.268, allocations: 0.7182 MB / 0.5443 GB, free: 4.637 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2621/1.53, allocations: 16.38 MB / 0.5603 GB, free: 43.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005956/1.531, allocations: 112.6 kB / 0.5604 GB, free: 43.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002406/1.533, allocations: 339.6 kB / 0.5607 GB, free: 43.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002914/1.536, allocations: 1.479 MB / 0.5622 GB, free: 43.72 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0331/1.569, allocations: 12.91 MB / 0.5748 GB, free: 43.67 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09698/1.666, allocations: 73.3 MB / 0.6464 GB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0249/1.691, allocations: 7.513 MB / 0.6537 GB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02409/1.715, allocations: 11.58 MB / 0.665 GB, free: 1.031 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.112e-05/1.715, allocations: 63 kB / 0.6651 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of pre-optimization done (n=280): time 7.162e-06/1.715, allocations: 0 / 0.6651 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of matching and sorting (n=339): time 0.4427/2.158, allocations: 46.36 MB / 0.7103 GB, free: 74.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/2.158, allocations: 395.4 kB / 0.7107 GB, free: 74.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01398/2.172, allocations: 6.245 MB / 0.7168 GB, free: 73.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007393/2.173, allocations: 77.91 kB / 0.7169 GB, free: 73.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003968/2.177, allocations: 4.877 MB / 0.7216 GB, free: 71.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00163/2.179, allocations: 1.246 MB / 0.7229 GB, free: 70.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008448/2.18, allocations: 170.7 kB / 0.723 GB, free: 70.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005682/2.18, allocations: 0.6594 MB / 0.7237 GB, free: 70.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007732/2.188, allocations: 3.791 MB / 0.7274 GB, free: 70.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01009/2.198, allocations: 8.446 MB / 0.7356 GB, free: 64.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/2.208, allocations: 5.498 MB / 0.741 GB, free: 62.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001463/2.209, allocations: 46.69 kB / 0.741 GB, free: 62.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.04214/2.251, allocations: 16.34 MB / 0.757 GB, free: 57.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001458/2.251, allocations: 80.38 kB / 0.7571 GB, free: 57.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002232/2.251, allocations: 161.4 kB / 0.7572 GB, free: 57.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02115/2.272, allocations: 5.511 MB / 0.7626 GB, free: 56.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007478/2.28, allocations: 1.784 MB / 0.7643 GB, free: 56.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04744/2.327, allocations: 28.96 MB / 0.7926 GB, free: 31.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01325/2.341, allocations: 0.5219 MB / 0.7931 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00263/2.343, allocations: 476.9 kB / 0.7936 GB, free: 30.33 MB / 378.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 () * Number of clocked 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.01321/2.357, allocations: 3.475 MB / 0.797 GB, free: 27.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003094/2.36, allocations: 0.6556 MB / 0.7976 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04545/2.405, allocations: 10.96 MB / 0.8083 GB, free: 18.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.525e-05/2.405, allocations: 32 kB / 0.8084 GB, free: 18.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.198e-05/2.405, allocations: 27.52 kB / 0.8084 GB, free: 18.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.29e-05/2.405, allocations: 15.94 kB / 0.8084 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2997/2.705, allocations: 23.99 MB / 0.8318 GB, free: 65.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.773e-05/2.705, allocations: 6.875 kB / 0.8318 GB, free: 65.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002793/2.708, allocations: 425.7 kB / 0.8322 GB, free: 65.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02059/2.729, allocations: 5.094 MB / 0.8372 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008193/2.73, allocations: 65.14 kB / 0.8373 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05094/2.781, allocations: 27.7 MB / 0.8643 GB, free: 61.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.046e-05/2.781, allocations: 13 kB / 0.8643 GB, free: 61.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03669/2.817, allocations: 16.86 MB / 0.8808 GB, free: 54.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00425/2.822, allocations: 1.27 MB / 0.882 GB, free: 54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001962/2.824, allocations: 59.34 kB / 0.8821 GB, free: 53.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005127/2.829, allocations: 252.6 kB / 0.8823 GB, free: 53.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001253/2.83, allocations: 245.8 kB / 0.8826 GB, free: 53.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000422/2.83, allocations: 90.41 kB / 0.8827 GB, free: 53.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01144/2.842, allocations: 4.523 MB / 0.8871 GB, free: 52.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.654e-06/2.842, allocations: 0 / 0.8871 GB, free: 52.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01196/2.854, allocations: 1.966 MB / 0.889 GB, free: 52.21 MB / 378.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 () * Number of clocked 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.001085/2.855, allocations: 220.8 kB / 0.8892 GB, free: 52.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02106/2.876, allocations: 10.12 MB / 0.8991 GB, free: 48.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/2.876, allocations: 1.562 kB / 0.8991 GB, free: 48.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01036/2.887, allocations: 4.482 MB / 0.9035 GB, free: 45.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006663/2.893, allocations: 0.9883 MB / 0.9044 GB, free: 44.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05047/2.944, allocations: 22.46 MB / 0.9264 GB, free: 24.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01332/2.957, allocations: 5.714 MB / 0.9319 GB, free: 20.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001958/2.959, allocations: 445.2 kB / 0.9324 GB, free: 20.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.66e-06/2.959, allocations: 4 kB / 0.9324 GB, free: 20.09 MB / 378.7 MB Notification: Performance of Templates: time 0.8479/3.807, allocations: 195.6 MB / 1.123 GB, free: 106 MB / 426.7 MB