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.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.631/1.631, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003509, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07721/0.07758, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.3387/0.4163, allocations: 84.75 MB / 357.4 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05332/0.4697, allocations: 19.3 MB / 376.7 MB, free: 4.852 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01759/0.4873, allocations: 446.8 kB / 377.1 MB, free: 4.414 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01538/0.5028, allocations: 4.351 MB / 381.5 MB, free: 40 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04549/0.5483, allocations: 12.3 MB / 393.8 MB, free: 3.711 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007725/0.556, allocations: 1.404 MB / 395.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.4177/0.9737, allocations: 50.3 MB / 445.5 MB, free: 50.7 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01861/0.9924, allocations: 8.85 MB / 454.3 MB, free: 50.18 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006227/0.9987, allocations: 2.459 MB / 456.8 MB, free: 50.18 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006627/1.005, allocations: 3.154 MB / 459.9 MB, free: 50.16 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002212/1.008, allocations: 275.2 kB / 460.2 MB, free: 50.16 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004704/1.012, allocations: 1.154 MB / 461.4 MB, free: 50.16 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006108/1.018, allocations: 3.423 MB / 464.8 MB, free: 50.16 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003859/1.022, allocations: 1.594 MB / 466.4 MB, free: 50.13 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01522/1.038, allocations: 11.29 MB / 477.7 MB, free: 45.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/1.038, allocations: 0 / 477.7 MB, free: 45.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.687e-06/1.038, allocations: 2.562 kB / 477.7 MB, free: 45.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004416/1.038, allocations: 0 / 477.7 MB, free: 45.7 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03691/1.075, allocations: 8.961 MB / 486.6 MB, free: 40.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.075, allocations: 8.219 kB / 486.6 MB, free: 40.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.613/1.688, allocations: 29.79 MB / 0.5043 GB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04379/1.732, allocations: 9.17 MB / 0.5133 GB, free: 6.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006605/1.733, allocations: 430 kB / 0.5137 GB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003823/1.737, allocations: 0.5904 MB / 0.5143 GB, free: 5.535 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06291/1.8, allocations: 16.43 MB / 0.5303 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000686/1.8, allocations: 103.1 kB / 0.5304 GB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003467/1.804, allocations: 267.6 kB / 0.5307 GB, free: 8.566 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01055/1.814, allocations: 2.648 MB / 0.5332 GB, free: 6.422 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06614/1.881, allocations: 13.1 MB / 0.546 GB, free: 13.3 MB / 394.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.682/2.563, allocations: 66.71 MB / 0.6112 GB, free: 134 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04848/2.611, allocations: 7.701 MB / 0.6187 GB, free: 133.3 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03318/2.644, allocations: 11.87 MB / 0.6303 GB, free: 130.7 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/2.645, allocations: 72.98 kB / 0.6304 GB, free: 130.6 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 7.253e-06/2.645, allocations: 2.531 kB / 0.6304 GB, free: 130.6 MB / 426.8 MB Notification: Performance of matching and sorting (n=340): time 0.3393/2.984, allocations: 50.35 MB / 0.6795 GB, free: 96.19 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/2.984, allocations: 404.6 kB / 0.6799 GB, free: 95.71 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01507/2.999, allocations: 7.924 MB / 0.6877 GB, free: 87.82 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009091/3, allocations: 77.7 kB / 0.6877 GB, free: 87.74 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004327/3.004, allocations: 5.166 MB / 0.6928 GB, free: 82.59 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001872/3.006, allocations: 1.251 MB / 0.694 GB, free: 81.35 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009506/3.007, allocations: 164.5 kB / 0.6942 GB, free: 81.19 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004193/3.008, allocations: 0.6477 MB / 0.6948 GB, free: 80.54 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008447/3.016, allocations: 3.928 MB / 0.6986 GB, free: 76.6 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01155/3.028, allocations: 8.493 MB / 0.7069 GB, free: 65.92 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/3.04, allocations: 5.619 MB / 0.7124 GB, free: 60.41 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001018/3.04, allocations: 44 kB / 0.7125 GB, free: 60.37 MB / 426.8 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.05414/3.094, allocations: 17.08 MB / 0.7291 GB, free: 43.4 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/3.094, allocations: 72.19 kB / 0.7292 GB, free: 43.33 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001809/3.094, allocations: 164 kB / 0.7294 GB, free: 43.17 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03683/3.131, allocations: 5.816 MB / 0.735 GB, free: 37.34 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01546/3.147, allocations: 1.751 MB / 0.7368 GB, free: 35.59 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07634/3.223, allocations: 30.67 MB / 0.7667 GB, free: 4.52 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/3.234, allocations: 0.5343 MB / 0.7672 GB, free: 3.984 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/3.236, allocations: 472 kB / 0.7677 GB, free: 3.523 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.008784/3.244, allocations: 3.467 MB / 0.7711 GB, free: 44 kB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2693/3.514, allocations: 0.6543 MB / 0.7717 GB, free: 157 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.044/3.558, allocations: 11.46 MB / 0.7829 GB, free: 156.4 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.983e-05/3.558, allocations: 17.59 kB / 0.7829 GB, free: 156.4 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/3.558, allocations: 1.156 kB / 0.7829 GB, free: 156.4 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005306/3.563, allocations: 1.362 MB / 0.7842 GB, free: 156 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002829/3.566, allocations: 55.03 kB / 0.7843 GB, free: 156 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007141/3.573, allocations: 273 kB / 0.7845 GB, free: 156 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001523/3.575, allocations: 285.9 kB / 0.7848 GB, free: 155.9 MB / 426.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.04342/3.618, allocations: 10.7 MB / 0.7953 GB, free: 152.5 MB / 426.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.06427/3.683, allocations: 11.57 MB / 0.8066 GB, free: 147.9 MB / 426.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.008101/3.691, allocations: 3.259 MB / 0.8098 GB, free: 146.6 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01101/3.702, allocations: 5.219 MB / 0.8149 GB, free: 144.9 MB / 426.8 MB Notification: Performance of Backend: time 2.204e-06/3.702, allocations: 3.781 kB / 0.8149 GB, free: 144.9 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02236/3.724, allocations: 7.729 MB / 0.8224 GB, free: 139.6 MB / 426.8 MB Notification: Performance of SimCode: time 0.04004/3.764, allocations: 20.21 MB / 0.8421 GB, free: 120.6 MB / 426.8 MB Notification: Performance of Templates: time 0.5113/4.276, allocations: 97.8 MB / 0.9377 GB, free: 157.6 MB / 426.8 MB