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.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,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") Notification: Performance of loadModel(Modelica): time 1.583/1.583, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003556, allocations: 11.98 kB / 233.2 MB, free: 3.039 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07348/0.07386, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.3005/0.3744, allocations: 91.39 MB / 363.3 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05534/0.4298, allocations: 20.61 MB / 383.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02072/0.4506, allocations: 478.8 kB / 384.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01488/0.4655, allocations: 4.705 MB / 389.1 MB, free: 8.094 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04445/0.51, allocations: 13.19 MB / 402.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007271/0.5173, allocations: 1.499 MB / 403.8 MB, free: 9.367 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.3417/0.859, allocations: 50.48 MB / 454.3 MB, free: 42.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01501/0.8741, allocations: 9.325 MB / 463.6 MB, free: 41.75 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005512/0.8796, allocations: 2.595 MB / 466.2 MB, free: 41.74 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005745/0.8854, allocations: 3.302 MB / 469.5 MB, free: 41.72 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002026/0.8875, allocations: 290.8 kB / 469.8 MB, free: 41.72 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004049/0.8916, allocations: 1.164 MB / 470.9 MB, free: 41.72 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004969/0.8966, allocations: 3.547 MB / 474.5 MB, free: 41.72 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003433/0.9001, allocations: 1.659 MB / 476.1 MB, free: 41.69 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01383/0.9139, allocations: 11.68 MB / 487.8 MB, free: 34.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.889e-06/0.914, allocations: 0 / 487.8 MB, free: 34.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.687e-06/0.914, allocations: 4 kB / 487.8 MB, free: 34.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003563/0.9144, allocations: 0 / 487.8 MB, free: 34.28 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: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.02631/0.9407, allocations: 9.272 MB / 497.1 MB, free: 25.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.9407, allocations: 9.812 kB / 497.1 MB, free: 25.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3232/1.264, allocations: 29.83 MB / 0.5146 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03012/1.294, allocations: 9.35 MB / 0.5237 GB, free: 7.078 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007856/1.295, allocations: 448.3 kB / 0.5242 GB, free: 6.832 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002939/1.298, allocations: 0.6127 MB / 0.5248 GB, free: 6.426 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04164/1.34, allocations: 17.07 MB / 0.5414 GB, free: 9.129 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004302/1.34, allocations: 100.2 kB / 0.5415 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001677/1.342, allocations: 274.6 kB / 0.5418 GB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005193/1.347, allocations: 2.744 MB / 0.5445 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03715/1.384, allocations: 13.54 MB / 0.5577 GB, free: 13.36 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5143/1.899, allocations: 68.07 MB / 0.6242 GB, free: 135.5 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02583/1.924, allocations: 7.241 MB / 0.6312 GB, free: 134.8 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02383/1.948, allocations: 12.23 MB / 0.6432 GB, free: 129.9 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/1.948, allocations: 66.69 kB / 0.6432 GB, free: 129.8 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 7.7e-06/1.948, allocations: 0 / 0.6432 GB, free: 129.8 MB / 426.8 MB Notification: Performance of matching and sorting (n=365): time 0.1811/2.13, allocations: 42.04 MB / 0.6843 GB, free: 98.2 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/2.13, allocations: 407.9 kB / 0.6847 GB, free: 97.71 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01449/2.144, allocations: 8.13 MB / 0.6926 GB, free: 89.64 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007461/2.145, allocations: 81.7 kB / 0.6927 GB, free: 89.55 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003731/2.149, allocations: 5.003 MB / 0.6976 GB, free: 84.57 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001673/2.15, allocations: 1.337 MB / 0.6989 GB, free: 83.24 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008303/2.151, allocations: 168 kB / 0.699 GB, free: 83.08 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000506/2.152, allocations: 0.6783 MB / 0.6997 GB, free: 82.39 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007609/2.159, allocations: 3.657 MB / 0.7033 GB, free: 78.72 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01011/2.17, allocations: 8.459 MB / 0.7115 GB, free: 68.09 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00971/2.179, allocations: 5.421 MB / 0.7168 GB, free: 62.75 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/2.18, allocations: 44 kB / 0.7169 GB, free: 62.7 MB / 426.8 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03544/2.215, allocations: 14.97 MB / 0.7315 GB, free: 47.68 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/2.215, allocations: 76 kB / 0.7316 GB, free: 47.61 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001876/2.215, allocations: 164.8 kB / 0.7317 GB, free: 47.45 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01484/2.23, allocations: 4.062 MB / 0.7357 GB, free: 43.37 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01503/2.245, allocations: 1.836 MB / 0.7375 GB, free: 41.53 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08119/2.327, allocations: 26.45 MB / 0.7633 GB, free: 14.68 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008713/2.335, allocations: 0.5049 MB / 0.7638 GB, free: 14.18 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001552/2.337, allocations: 492 kB / 0.7643 GB, free: 13.7 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 754 * Number of states: 0 () * Number of discrete variables: 69 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.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 (986): * Single equations (assignments): 980 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.007715/2.345, allocations: 3.61 MB / 0.7678 GB, free: 10.07 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/2.346, allocations: 0.6865 MB / 0.7685 GB, free: 9.375 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2352/2.581, allocations: 9.396 MB / 0.7777 GB, free: 156 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.545e-05/2.582, allocations: 36.72 kB / 0.7777 GB, free: 156 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.048e-05/2.582, allocations: 20.36 kB / 0.7777 GB, free: 156 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.55e-05/2.582, allocations: 17.78 kB / 0.7777 GB, free: 156 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05615/2.638, allocations: 20.36 MB / 0.7976 GB, free: 151.7 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-05/2.638, allocations: 9.906 kB / 0.7976 GB, free: 151.7 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002805/2.641, allocations: 457 kB / 0.7981 GB, free: 151.7 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01595/2.657, allocations: 3.827 MB / 0.8018 GB, free: 150.9 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007859/2.658, allocations: 70.47 kB / 0.8019 GB, free: 150.9 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04647/2.704, allocations: 25.77 MB / 0.827 GB, free: 138.3 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/2.704, allocations: 15.78 kB / 0.827 GB, free: 138.3 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03015/2.734, allocations: 14.16 MB / 0.8409 GB, free: 125.2 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004171/2.739, allocations: 1.312 MB / 0.8421 GB, free: 124.3 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001835/2.74, allocations: 71.98 kB / 0.8422 GB, free: 124.2 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004912/2.745, allocations: 227.5 kB / 0.8424 GB, free: 124 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001286/2.747, allocations: 267.5 kB / 0.8427 GB, free: 123.7 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005313/2.747, allocations: 102.8 kB / 0.8428 GB, free: 123.6 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01074/2.758, allocations: 5.338 MB / 0.848 GB, free: 118.3 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.393e-06/2.758, allocations: 0 / 0.848 GB, free: 118.3 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01107/2.769, allocations: 2.05 MB / 0.85 GB, free: 116.3 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001252/2.77, allocations: 229.1 kB / 0.8502 GB, free: 116.1 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01833/2.789, allocations: 9.627 MB / 0.8596 GB, free: 106.5 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/2.789, allocations: 0 / 0.8596 GB, free: 106.5 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009197/2.798, allocations: 4.349 MB / 0.8639 GB, free: 102.1 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006584/2.805, allocations: 1.013 MB / 0.8649 GB, free: 101.1 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04465/2.849, allocations: 22.57 MB / 0.8869 GB, free: 78.75 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01238/2.862, allocations: 5.932 MB / 0.8927 GB, free: 72.79 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002187/2.864, allocations: 489.7 kB / 0.8932 GB, free: 72.32 MB / 426.8 MB Notification: Performance of SimCode: time 1.965e-06/2.864, allocations: 0 / 0.8932 GB, free: 72.32 MB / 426.8 MB Notification: Performance of Templates: time 0.777/3.641, allocations: 203.5 MB / 1.092 GB, free: 143.2 MB / 426.8 MB