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.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.0003379, allocations: 12 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1352, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.3859/0.5211, allocations: 84.75 MB / 393.8 MB, free: 7.746 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04604/0.5672, allocations: 19.34 MB / 413.2 MB, free: 5.129 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01819/0.5854, allocations: 444.7 kB / 413.6 MB, free: 5.055 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01387/0.5994, allocations: 4.358 MB / 418 MB, free: 2.426 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04385/0.6433, allocations: 12.29 MB / 430.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007658/0.651, allocations: 1.396 MB / 431.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1565/0.8074, allocations: 50.3 MB / 481.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01923/0.8267, allocations: 8.851 MB / 490.8 MB, free: 1.285 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006559/0.8333, allocations: 2.438 MB / 493.2 MB, free: 14.84 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007053/0.8404, allocations: 3.167 MB / 496.4 MB, free: 11.66 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001857/0.8423, allocations: 276 kB / 496.7 MB, free: 11.39 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004498/0.8469, allocations: 1.147 MB / 497.8 MB, free: 10.25 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005813/0.8527, allocations: 3.413 MB / 0.4895 GB, free: 6.824 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003247/0.856, allocations: 1.598 MB / 0.491 GB, free: 5.215 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.018/0.874, allocations: 11.28 MB / 0.5021 GB, free: 9.906 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.8741, allocations: 4 kB / 0.5021 GB, free: 9.902 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.8741, allocations: 0 / 0.5021 GB, free: 9.902 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004235/0.8746, allocations: 4 kB / 0.5021 GB, free: 9.898 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.04065/0.9152, allocations: 8.968 MB / 0.5108 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.9153, allocations: 8.031 kB / 0.5108 GB, free: 0.832 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.16/2.076, allocations: 29.78 MB / 0.5399 GB, free: 159.4 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02675/2.102, allocations: 9.169 MB / 0.5489 GB, free: 153.8 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003518/2.103, allocations: 421.9 kB / 0.5493 GB, free: 153.4 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002021/2.105, allocations: 0.5845 MB / 0.5498 GB, free: 152.9 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03839/2.143, allocations: 16.44 MB / 0.5659 GB, free: 135.6 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003314/2.144, allocations: 99.3 kB / 0.566 GB, free: 135.6 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001063/2.145, allocations: 266.7 kB / 0.5662 GB, free: 135.4 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005255/2.15, allocations: 2.647 MB / 0.5688 GB, free: 132.7 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03772/2.188, allocations: 13.11 MB / 0.5816 GB, free: 119.6 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.1001/2.288, allocations: 66.72 MB / 0.6468 GB, free: 51.34 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03135/2.319, allocations: 7.709 MB / 0.6543 GB, free: 43.5 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02435/2.344, allocations: 11.88 MB / 0.6659 GB, free: 31.48 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/2.344, allocations: 68.5 kB / 0.666 GB, free: 31.41 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 7.234e-06/2.344, allocations: 3.938 kB / 0.666 GB, free: 31.41 MB / 426.8 MB Notification: Performance of matching and sorting (n=340): time 0.596/2.94, allocations: 50.33 MB / 0.7151 GB, free: 142.3 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/2.94, allocations: 396.4 kB / 0.7155 GB, free: 141.8 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01483/2.955, allocations: 7.922 MB / 0.7233 GB, free: 139.1 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008744/2.956, allocations: 77.33 kB / 0.7233 GB, free: 139.1 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0044/2.96, allocations: 5.173 MB / 0.7284 GB, free: 135.1 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002075/2.962, allocations: 1.246 MB / 0.7296 GB, free: 134.2 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009849/2.963, allocations: 168.2 kB / 0.7298 GB, free: 134 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004916/2.964, allocations: 0.6521 MB / 0.7304 GB, free: 133.6 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008843/2.973, allocations: 3.924 MB / 0.7342 GB, free: 132.2 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01163/2.984, allocations: 8.507 MB / 0.7425 GB, free: 124.2 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/2.996, allocations: 5.612 MB / 0.748 GB, free: 119.5 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001153/2.996, allocations: 48 kB / 0.7481 GB, free: 119.5 MB / 426.8 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.05413/3.05, allocations: 17.08 MB / 0.7647 GB, free: 102.5 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/3.051, allocations: 72 kB / 0.7648 GB, free: 102.4 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001866/3.051, allocations: 156.9 kB / 0.765 GB, free: 102.2 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02955/3.08, allocations: 5.825 MB / 0.7706 GB, free: 96.41 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009962/3.09, allocations: 1.751 MB / 0.7724 GB, free: 94.66 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06453/3.155, allocations: 30.67 MB / 0.8023 GB, free: 63.61 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01061/3.166, allocations: 0.5321 MB / 0.8028 GB, free: 63.07 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001625/3.167, allocations: 472 kB / 0.8033 GB, free: 62.61 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * 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 (932): * Single equations (assignments): 926 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.008139/3.175, allocations: 3.464 MB / 0.8067 GB, free: 59.14 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002001/3.177, allocations: 0.6556 MB / 0.8073 GB, free: 58.48 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04086/3.218, allocations: 11.46 MB / 0.8185 GB, free: 46.95 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-05/3.218, allocations: 16.5 kB / 0.8185 GB, free: 46.93 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/3.218, allocations: 0 / 0.8185 GB, free: 46.93 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005085/3.224, allocations: 1.367 MB / 0.8198 GB, free: 45.54 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002399/3.226, allocations: 52 kB / 0.8199 GB, free: 45.49 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006827/3.233, allocations: 273.1 kB / 0.8201 GB, free: 45.22 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/3.234, allocations: 281.8 kB / 0.8204 GB, free: 44.95 MB / 426.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03494/3.269, allocations: 10.7 MB / 0.8309 GB, free: 34.26 MB / 426.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02389/3.293, allocations: 11.57 MB / 0.8422 GB, free: 22.61 MB / 426.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.2801/3.573, allocations: 3.251 MB / 0.8453 GB, free: 133.5 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01348/3.587, allocations: 5.216 MB / 0.8504 GB, free: 133.3 MB / 426.8 MB Notification: Performance of Backend: time 1.313e-06/3.587, allocations: 3.844 kB / 0.8504 GB, free: 133.3 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02522/3.612, allocations: 7.713 MB / 0.858 GB, free: 130.8 MB / 426.8 MB Notification: Performance of SimCode: time 0.04481/3.657, allocations: 20.19 MB / 0.8777 GB, free: 120.7 MB / 426.8 MB Notification: Performance of Templates: time 0.292/3.949, allocations: 97.83 MB / 0.9732 GB, free: 32.9 MB / 426.8 MB