Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.87/1.87, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000359/0.0003593, allocations: 8 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09151, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.445/0.5366, allocations: 91.39 MB / 399.8 MB, free: 6.977 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04778/0.5844, allocations: 20.65 MB / 420.4 MB, free: 1.602 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02181/0.6063, allocations: 484.2 kB / 420.9 MB, free: 1.52 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01424/0.6205, allocations: 4.692 MB / 425.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04588/0.6665, allocations: 13.2 MB / 438.8 MB, free: 5.078 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007566/0.6741, allocations: 1.49 MB / 440.3 MB, free: 3.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1088/0.7829, allocations: 50.47 MB / 490.7 MB, free: 1.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01837/0.8013, allocations: 9.323 MB / 0.4883 GB, free: 7.676 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00631/0.8077, allocations: 2.586 MB / 0.4909 GB, free: 5.082 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006573/0.8143, allocations: 3.307 MB / 0.4941 GB, free: 1.766 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001841/0.8162, allocations: 292 kB / 0.4944 GB, free: 1.48 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004114/0.8203, allocations: 1.167 MB / 0.4955 GB, free: 320 kB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005859/0.8262, allocations: 3.546 MB / 0.499 GB, free: 12.76 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003498/0.8298, allocations: 1.66 MB / 0.5006 GB, free: 11.09 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01785/0.8477, allocations: 11.68 MB / 0.512 GB, free: 15.38 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.635e-06/0.8477, allocations: 0 / 0.512 GB, free: 15.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.047e-06/0.8477, allocations: 0 / 0.512 GB, free: 15.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003389/0.8481, allocations: 3.938 kB / 0.512 GB, free: 15.37 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.0294/0.8775, allocations: 9.266 MB / 0.521 GB, free: 6.012 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.8776, allocations: 8.031 kB / 0.5211 GB, free: 6.004 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7574/1.635, allocations: 29.83 MB / 0.5502 GB, free: 150.5 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0217/1.657, allocations: 9.34 MB / 0.5593 GB, free: 141.6 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004334/1.657, allocations: 451.1 kB / 0.5597 GB, free: 141.2 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001944/1.659, allocations: 0.6109 MB / 0.5603 GB, free: 140.7 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03496/1.694, allocations: 17.08 MB / 0.577 GB, free: 122.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003725/1.695, allocations: 99.11 kB / 0.5771 GB, free: 122.6 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001394/1.696, allocations: 280.8 kB / 0.5774 GB, free: 122.4 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004211/1.7, allocations: 2.739 MB / 0.58 GB, free: 119.7 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03273/1.733, allocations: 13.54 MB / 0.5933 GB, free: 106.1 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.08939/1.822, allocations: 68.1 MB / 0.6598 GB, free: 36.28 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02295/1.845, allocations: 7.255 MB / 0.6669 GB, free: 28.88 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0225/1.868, allocations: 12.21 MB / 0.6788 GB, free: 16.45 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/1.868, allocations: 64.5 kB / 0.6788 GB, free: 16.38 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 8.315e-06/1.868, allocations: 3.938 kB / 0.6788 GB, free: 16.37 MB / 426.8 MB Notification: Performance of matching and sorting (n=365): time 0.4031/2.271, allocations: 42.03 MB / 0.7199 GB, free: 139.9 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/2.271, allocations: 403 kB / 0.7203 GB, free: 139.5 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01498/2.286, allocations: 8.121 MB / 0.7282 GB, free: 136.7 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007266/2.287, allocations: 81.27 kB / 0.7283 GB, free: 136.7 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003627/2.291, allocations: 5.007 MB / 0.7332 GB, free: 132.2 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001617/2.292, allocations: 1.342 MB / 0.7345 GB, free: 131.1 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007611/2.293, allocations: 170.8 kB / 0.7346 GB, free: 131 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004883/2.294, allocations: 0.6746 MB / 0.7353 GB, free: 130.4 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007266/2.301, allocations: 3.659 MB / 0.7389 GB, free: 127.7 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009338/2.31, allocations: 8.462 MB / 0.7471 GB, free: 117 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009438/2.32, allocations: 5.414 MB / 0.7524 GB, free: 111.8 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001147/2.32, allocations: 48 kB / 0.7525 GB, free: 111.7 MB / 426.8 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03479/2.355, allocations: 14.96 MB / 0.7671 GB, free: 96.71 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/2.355, allocations: 79.95 kB / 0.7672 GB, free: 96.63 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/2.355, allocations: 164.9 kB / 0.7673 GB, free: 96.47 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01458/2.37, allocations: 4.068 MB / 0.7713 GB, free: 92.39 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007132/2.377, allocations: 1.832 MB / 0.7731 GB, free: 90.55 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05508/2.432, allocations: 26.45 MB / 0.7989 GB, free: 63.71 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01742/2.45, allocations: 0.4975 MB / 0.7994 GB, free: 63.22 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002643/2.452, allocations: 500 kB / 0.7999 GB, free: 62.73 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.0138/2.466, allocations: 3.602 MB / 0.8034 GB, free: 59.12 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002853/2.469, allocations: 0.6865 MB / 0.8041 GB, free: 58.42 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04224/2.511, allocations: 9.394 MB / 0.8132 GB, free: 48.96 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.179e-05/2.511, allocations: 36 kB / 0.8133 GB, free: 48.93 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.017e-05/2.511, allocations: 31.45 kB / 0.8133 GB, free: 48.9 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.665e-05/2.512, allocations: 20.44 kB / 0.8133 GB, free: 48.88 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0664/2.578, allocations: 20.36 MB / 0.8332 GB, free: 28.32 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.945e-05/2.578, allocations: 11.19 kB / 0.8332 GB, free: 28.31 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002513/2.581, allocations: 455.3 kB / 0.8336 GB, free: 27.86 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01414/2.595, allocations: 3.829 MB / 0.8374 GB, free: 24.02 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007468/2.596, allocations: 72 kB / 0.8374 GB, free: 23.95 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.284/2.88, allocations: 25.75 MB / 0.8626 GB, free: 125.1 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/2.88, allocations: 15.69 kB / 0.8626 GB, free: 125.1 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03198/2.912, allocations: 14.15 MB / 0.8764 GB, free: 119.9 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003997/2.916, allocations: 1.307 MB / 0.8777 GB, free: 119.5 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00185/2.918, allocations: 68.12 kB / 0.8778 GB, free: 119.4 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004899/2.923, allocations: 232 kB / 0.878 GB, free: 119.4 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001305/2.924, allocations: 268.6 kB / 0.8783 GB, free: 119.4 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004761/2.924, allocations: 100.5 kB / 0.8784 GB, free: 119.3 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01113/2.936, allocations: 5.332 MB / 0.8836 GB, free: 117.6 MB / 426.8 MB Notification: Performance of sort global known variables: time 9.27e-07/2.936, allocations: 0 / 0.8836 GB, free: 117.6 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01077/2.946, allocations: 2.04 MB / 0.8855 GB, free: 117.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.001118/2.948, allocations: 242.5 kB / 0.8858 GB, free: 117.1 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01802/2.966, allocations: 9.63 MB / 0.8952 GB, free: 108.6 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/2.966, allocations: 4 kB / 0.8952 GB, free: 108.6 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009171/2.975, allocations: 4.33 MB / 0.8994 GB, free: 104.3 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006264/2.981, allocations: 1.014 MB / 0.9004 GB, free: 103.3 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04106/3.022, allocations: 22.57 MB / 0.9224 GB, free: 80.91 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01149/3.034, allocations: 5.936 MB / 0.9282 GB, free: 74.93 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002124/3.036, allocations: 479.4 kB / 0.9287 GB, free: 74.47 MB / 426.8 MB Notification: Performance of SimCode: time 1.751e-06/3.036, allocations: 0 / 0.9287 GB, free: 74.47 MB / 426.8 MB Notification: Performance of Templates: time 0.5173/3.553, allocations: 203.6 MB / 1.127 GB, free: 13.79 MB / 426.8 MB