Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.588/1.588, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003585, allocations: 8 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07854/0.07892, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.3508/0.4297, allocations: 91.4 MB / 364 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05726/0.4871, allocations: 20.61 MB / 384.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01949/0.5066, allocations: 478.8 kB / 385.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01648/0.5231, allocations: 4.701 MB / 389.8 MB, free: 7.688 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04828/0.5715, allocations: 13.19 MB / 403 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008428/0.5799, allocations: 1.496 MB / 404.5 MB, free: 8.965 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.4333/1.013, allocations: 50.46 MB / 455 MB, free: 41.96 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01702/1.03, allocations: 9.335 MB / 464.3 MB, free: 41.24 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006165/1.037, allocations: 2.572 MB / 466.9 MB, free: 41.23 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00681/1.043, allocations: 3.291 MB / 470.2 MB, free: 41.22 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002326/1.046, allocations: 295.6 kB / 470.4 MB, free: 41.21 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004751/1.051, allocations: 1.169 MB / 471.6 MB, free: 41.21 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005869/1.056, allocations: 3.54 MB / 475.2 MB, free: 41.21 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003993/1.061, allocations: 1.659 MB / 476.8 MB, free: 41.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01594/1.076, allocations: 11.69 MB / 488.5 MB, free: 33.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/1.077, allocations: 0 / 488.5 MB, free: 33.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.246e-06/1.077, allocations: 0 / 488.5 MB, free: 33.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005071/1.077, allocations: 0 / 488.5 MB, free: 33.76 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.03765/1.115, allocations: 9.275 MB / 497.8 MB, free: 25.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/1.115, allocations: 8.031 kB / 497.8 MB, free: 25.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5846/1.699, allocations: 29.83 MB / 0.5152 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03139/1.731, allocations: 9.35 MB / 0.5244 GB, free: 6.574 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005804/1.731, allocations: 445.9 kB / 0.5248 GB, free: 6.332 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003089/1.735, allocations: 0.6182 MB / 0.5254 GB, free: 5.922 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05475/1.789, allocations: 17.02 MB / 0.542 GB, free: 8.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004072/1.79, allocations: 99.3 kB / 0.5421 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00146/1.791, allocations: 278.6 kB / 0.5424 GB, free: 8.543 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006458/1.798, allocations: 2.744 MB / 0.5451 GB, free: 6.324 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04483/1.843, allocations: 13.53 MB / 0.5583 GB, free: 12.91 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.5942/2.437, allocations: 68.08 MB / 0.6248 GB, free: 136.1 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03021/2.467, allocations: 7.246 MB / 0.6318 GB, free: 135.4 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02855/2.496, allocations: 12.23 MB / 0.6438 GB, free: 130.6 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/2.496, allocations: 67.03 kB / 0.6439 GB, free: 130.6 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 6.532e-06/2.496, allocations: 3.719 kB / 0.6439 GB, free: 130.6 MB / 426.8 MB Notification: Performance of matching and sorting (n=365): time 0.2619/2.758, allocations: 42.03 MB / 0.6849 GB, free: 98.78 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/2.758, allocations: 402.3 kB / 0.6853 GB, free: 98.3 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01574/2.774, allocations: 8.13 MB / 0.6932 GB, free: 90.22 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009652/2.775, allocations: 85.7 kB / 0.6933 GB, free: 90.13 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004548/2.779, allocations: 5.366 MB / 0.6985 GB, free: 84.79 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002027/2.781, allocations: 1.339 MB / 0.6999 GB, free: 83.46 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001011/2.782, allocations: 175.8 kB / 0.7 GB, free: 83.29 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000481/2.783, allocations: 0.6658 MB / 0.7007 GB, free: 82.61 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008569/2.792, allocations: 3.663 MB / 0.7042 GB, free: 78.94 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01164/2.803, allocations: 8.427 MB / 0.7125 GB, free: 68.29 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/2.815, allocations: 5.415 MB / 0.7178 GB, free: 62.96 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.301e-05/2.815, allocations: 44 kB / 0.7178 GB, free: 62.91 MB / 426.8 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.04576/2.861, allocations: 15.32 MB / 0.7328 GB, free: 47.54 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/2.861, allocations: 76 kB / 0.7328 GB, free: 47.46 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001995/2.861, allocations: 172 kB / 0.733 GB, free: 47.29 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02022/2.881, allocations: 4.068 MB / 0.737 GB, free: 43.21 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01094/2.892, allocations: 1.829 MB / 0.7388 GB, free: 41.38 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05591/2.948, allocations: 26.46 MB / 0.7646 GB, free: 14.52 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01115/2.959, allocations: 0.5003 MB / 0.7651 GB, free: 14.02 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001945/2.961, allocations: 0.4893 MB / 0.7656 GB, free: 13.54 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.00924/2.971, allocations: 3.601 MB / 0.7691 GB, free: 9.918 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002047/2.973, allocations: 0.6865 MB / 0.7698 GB, free: 9.223 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2828/3.255, allocations: 9.393 MB / 0.7789 GB, free: 156.9 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.692e-05/3.256, allocations: 18.06 kB / 0.7789 GB, free: 156.9 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/3.256, allocations: 1.125 kB / 0.7789 GB, free: 156.9 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00537/3.261, allocations: 1.309 MB / 0.7802 GB, free: 156.8 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002555/3.264, allocations: 57.05 kB / 0.7803 GB, free: 156.8 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006784/3.27, allocations: 226.1 kB / 0.7805 GB, free: 156.8 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001648/3.272, allocations: 304 kB / 0.7808 GB, free: 156.8 MB / 426.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03686/3.309, allocations: 9.506 MB / 0.7901 GB, free: 156.4 MB / 426.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0308/3.34, allocations: 10.58 MB / 0.8004 GB, free: 152.7 MB / 426.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.008831/3.349, allocations: 2.918 MB / 0.8032 GB, free: 151.6 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01691/3.366, allocations: 5.342 MB / 0.8085 GB, free: 149.9 MB / 426.8 MB Notification: Performance of Backend: time 1.333e-06/3.366, allocations: 0 / 0.8085 GB, free: 149.9 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02662/3.392, allocations: 7.222 MB / 0.8155 GB, free: 147.1 MB / 426.8 MB Notification: Performance of SimCode: time 0.04502/3.437, allocations: 21.03 MB / 0.8361 GB, free: 132.4 MB / 426.8 MB Notification: Performance of Templates: time 0.2683/3.706, allocations: 96.1 MB / 0.9299 GB, free: 37.49 MB / 426.8 MB