Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.0003758, allocations: 12 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08896, allocations: 44.51 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.4715/0.5605, allocations: 91.39 MB / 400.5 MB, free: 7.594 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04976/0.6104, allocations: 20.65 MB / 421.1 MB, free: 1.656 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02054/0.6309, allocations: 479.5 kB / 421.6 MB, free: 1.578 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01554/0.6465, allocations: 4.699 MB / 426.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04823/0.6948, allocations: 13.2 MB / 439.5 MB, free: 4.695 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008564/0.7034, allocations: 1.49 MB / 441 MB, free: 3.207 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1472/0.8506, allocations: 50.45 MB / 491.4 MB, free: 0.707 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0194/0.8701, allocations: 9.332 MB / 0.489 GB, free: 7.305 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006343/0.8765, allocations: 2.574 MB / 0.4915 GB, free: 4.723 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007061/0.8836, allocations: 3.295 MB / 0.4947 GB, free: 1.418 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001664/0.8853, allocations: 292 kB / 0.495 GB, free: 1.133 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004092/0.8894, allocations: 1.163 MB / 0.4962 GB, free: 15.96 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00542/0.8948, allocations: 3.55 MB / 0.4996 GB, free: 12.41 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002917/0.8978, allocations: 1.657 MB / 0.5012 GB, free: 10.74 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01756/0.9154, allocations: 11.68 MB / 0.5126 GB, free: 15.03 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.9154, allocations: 0 / 0.5126 GB, free: 15.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.9154, allocations: 0 / 0.5126 GB, free: 15.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003913/0.9158, allocations: 4 kB / 0.5126 GB, free: 15.02 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.03905/0.9549, allocations: 9.266 MB / 0.5217 GB, free: 5.668 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.955, allocations: 8.031 kB / 0.5217 GB, free: 5.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.07/2.025, allocations: 29.83 MB / 0.5508 GB, free: 151.1 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02679/2.052, allocations: 9.341 MB / 0.56 GB, free: 142.2 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003529/2.052, allocations: 452.5 kB / 0.5604 GB, free: 141.8 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002096/2.054, allocations: 0.6072 MB / 0.561 GB, free: 141.2 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03998/2.094, allocations: 17.03 MB / 0.5776 GB, free: 123.3 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003694/2.094, allocations: 99.17 kB / 0.5777 GB, free: 123.2 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001215/2.096, allocations: 281.5 kB / 0.578 GB, free: 123 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006916/2.103, allocations: 2.747 MB / 0.5807 GB, free: 120.3 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05608/2.159, allocations: 13.52 MB / 0.5939 GB, free: 106.7 MB / 426.8 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.1199/2.279, allocations: 68.1 MB / 0.6604 GB, free: 36.88 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04673/2.325, allocations: 7.268 MB / 0.6675 GB, free: 29.48 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03923/2.365, allocations: 12.21 MB / 0.6794 GB, free: 17.02 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.724e-05/2.365, allocations: 68.56 kB / 0.6795 GB, free: 16.94 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 1.228e-05/2.365, allocations: 0 / 0.6795 GB, free: 16.94 MB / 426.8 MB Notification: Performance of matching and sorting (n=365): time 0.4921/2.857, allocations: 42.02 MB / 0.7205 GB, free: 140.6 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/2.857, allocations: 401.1 kB / 0.7209 GB, free: 140.1 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01425/2.871, allocations: 8.12 MB / 0.7288 GB, free: 137.4 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009359/2.872, allocations: 89 kB / 0.7289 GB, free: 137.3 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004327/2.877, allocations: 5.377 MB / 0.7341 GB, free: 132.9 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001873/2.879, allocations: 1.33 MB / 0.7354 GB, free: 131.8 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007833/2.88, allocations: 174.3 kB / 0.7356 GB, free: 131.7 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004318/2.88, allocations: 0.6763 MB / 0.7363 GB, free: 131.1 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008003/2.888, allocations: 3.656 MB / 0.7398 GB, free: 128.7 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01031/2.898, allocations: 8.433 MB / 0.7481 GB, free: 118.1 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01113/2.91, allocations: 5.415 MB / 0.7534 GB, free: 112.9 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.361e-05/2.91, allocations: 48 kB / 0.7534 GB, free: 112.8 MB / 426.8 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.04293/2.953, allocations: 15.32 MB / 0.7684 GB, free: 97.43 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/2.953, allocations: 79.95 kB / 0.7684 GB, free: 97.36 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001593/2.953, allocations: 168 kB / 0.7686 GB, free: 97.19 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01943/2.972, allocations: 4.057 MB / 0.7726 GB, free: 93.12 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01051/2.983, allocations: 1.84 MB / 0.7744 GB, free: 91.28 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05271/3.036, allocations: 26.44 MB / 0.8002 GB, free: 64.44 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0101/3.046, allocations: 0.5004 MB / 0.8007 GB, free: 63.95 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001312/3.047, allocations: 496 kB / 0.8011 GB, free: 63.46 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.00747/3.055, allocations: 3.604 MB / 0.8047 GB, free: 59.84 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001775/3.056, allocations: 0.6787 MB / 0.8053 GB, free: 59.16 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02889/3.085, allocations: 9.401 MB / 0.8145 GB, free: 49.69 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-05/3.085, allocations: 15.94 kB / 0.8145 GB, free: 49.67 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/3.085, allocations: 3.938 kB / 0.8145 GB, free: 49.67 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004537/3.09, allocations: 1.322 MB / 0.8158 GB, free: 48.32 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00178/3.092, allocations: 56 kB / 0.8159 GB, free: 48.27 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005272/3.097, allocations: 224.7 kB / 0.8161 GB, free: 48.05 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001022/3.098, allocations: 301.9 kB / 0.8164 GB, free: 47.75 MB / 426.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03107/3.129, allocations: 9.498 MB / 0.8256 GB, free: 38.28 MB / 426.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02007/3.149, allocations: 10.57 MB / 0.836 GB, free: 27.62 MB / 426.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005497/3.155, allocations: 2.928 MB / 0.8388 GB, free: 24.68 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.009842/3.165, allocations: 5.337 MB / 0.844 GB, free: 19.39 MB / 426.8 MB Notification: Performance of Backend: time 5.82e-07/3.165, allocations: 0 / 0.844 GB, free: 19.39 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.2759/3.441, allocations: 7.202 MB / 0.8511 GB, free: 140.9 MB / 426.8 MB Notification: Performance of SimCode: time 0.04349/3.484, allocations: 21.03 MB / 0.8716 GB, free: 130.8 MB / 426.8 MB Notification: Performance of Templates: time 0.2409/3.725, allocations: 96.1 MB / 0.9654 GB, free: 42.87 MB / 426.8 MB