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_analytic.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_analytic,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_analytic") Notification: Performance of loadModel(Modelica): time 1.908/1.908, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003578, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.08051, allocations: 44.52 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.3426/0.4231, allocations: 93.81 MB / 402.2 MB, free: 6.984 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04865/0.4718, allocations: 21.69 MB / 423.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02247/0.4943, allocations: 485.8 kB / 424.3 MB, free: 15.39 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01534/0.5097, allocations: 4.789 MB / 429.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04658/0.5563, allocations: 13.34 MB / 442.5 MB, free: 1.355 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008108/0.5645, allocations: 1.693 MB / 444.2 MB, free: 15.66 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.1081/0.6726, allocations: 50.76 MB / 494.9 MB, free: 12.85 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02447/0.6972, allocations: 12.78 MB / 0.4958 GB, free: 15.98 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006244/0.7035, allocations: 2.668 MB / 0.4984 GB, free: 13.3 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007088/0.7106, allocations: 3.595 MB / 0.5019 GB, free: 9.695 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002091/0.7127, allocations: 340 kB / 0.5022 GB, free: 9.363 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004572/0.7173, allocations: 1.366 MB / 0.5036 GB, free: 7.996 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006224/0.7236, allocations: 3.916 MB / 0.5074 GB, free: 4.07 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003605/0.7272, allocations: 1.875 MB / 0.5092 GB, free: 2.184 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02105/0.7483, allocations: 14.35 MB / 0.5233 GB, free: 3.793 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.992e-06/0.7484, allocations: 0 / 0.5233 GB, free: 3.793 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.682e-06/0.7484, allocations: 0 / 0.5233 GB, free: 3.793 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003471/0.7488, allocations: 0 / 0.5233 GB, free: 3.793 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.4503/1.199, allocations: 10.18 MB / 0.5332 GB, free: 160.1 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/1.199, allocations: 13.72 kB / 0.5332 GB, free: 160.1 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3265/1.526, allocations: 30.06 MB / 0.5626 GB, free: 136.2 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02482/1.55, allocations: 10.19 MB / 0.5725 GB, free: 126 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007134/1.551, allocations: 0.5269 MB / 0.573 GB, free: 125.5 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002701/1.554, allocations: 0.7282 MB / 0.5737 GB, free: 124.9 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04541/1.599, allocations: 19.5 MB / 0.5928 GB, free: 104.5 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005208/1.6, allocations: 91.17 kB / 0.5929 GB, free: 104.4 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002316/1.602, allocations: 328.2 kB / 0.5932 GB, free: 104.1 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004581/1.607, allocations: 2.757 MB / 0.5959 GB, free: 101.4 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03987/1.647, allocations: 15.8 MB / 0.6113 GB, free: 85.53 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.1043/1.751, allocations: 72.99 MB / 0.6826 GB, free: 10.83 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02711/1.778, allocations: 8.06 MB / 0.6905 GB, free: 2.617 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2558/2.034, allocations: 14.38 MB / 0.7045 GB, free: 142.5 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.679e-05/2.034, allocations: 67.12 kB / 0.7046 GB, free: 142.4 MB / 426.8 MB Notification: Performance of pre-optimization done (n=308): time 8.2e-06/2.034, allocations: 1.375 kB / 0.7046 GB, free: 142.4 MB / 426.8 MB Notification: Performance of matching and sorting (n=408): time 0.2025/2.237, allocations: 48.32 MB / 0.7518 GB, free: 109 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/2.237, allocations: 398.6 kB / 0.7521 GB, free: 108.5 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01493/2.252, allocations: 8.372 MB / 0.7603 GB, free: 100.1 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008168/2.253, allocations: 89.7 kB / 0.7604 GB, free: 100 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00383/2.257, allocations: 5.444 MB / 0.7657 GB, free: 94.58 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001835/2.259, allocations: 1.478 MB / 0.7672 GB, free: 93.11 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/2.26, allocations: 191.9 kB / 0.7673 GB, free: 92.93 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0006222/2.26, allocations: 0.6954 MB / 0.768 GB, free: 92.22 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008367/2.269, allocations: 4.309 MB / 0.7722 GB, free: 87.91 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01095/2.28, allocations: 9.288 MB / 0.7813 GB, free: 76.27 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/2.291, allocations: 6.202 MB / 0.7874 GB, free: 70.05 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001306/2.291, allocations: 48 kB / 0.7874 GB, free: 70.01 MB / 426.8 MB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.04218/2.333, allocations: 17.25 MB / 0.8042 GB, free: 52.72 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/2.333, allocations: 80 kB / 0.8043 GB, free: 52.64 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/2.334, allocations: 172.9 kB / 0.8045 GB, free: 52.47 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01935/2.353, allocations: 5.021 MB / 0.8094 GB, free: 47.45 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007682/2.361, allocations: 1.946 MB / 0.8113 GB, free: 45.5 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05251/2.413, allocations: 27.89 MB / 0.8385 GB, free: 17.48 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009226/2.423, allocations: 0.5474 MB / 0.8391 GB, free: 16.94 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001669/2.424, allocations: 0.5078 MB / 0.8396 GB, free: 16.43 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1048): * Single equations (assignments): 1043 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008866/2.433, allocations: 4.082 MB / 0.8435 GB, free: 12.33 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2413/2.674, allocations: 0.705 MB / 0.8442 GB, free: 129.6 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03334/2.708, allocations: 11.42 MB / 0.8554 GB, free: 127.3 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.837e-05/2.708, allocations: 41.23 kB / 0.8554 GB, free: 127.3 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.168e-05/2.708, allocations: 21.78 kB / 0.8554 GB, free: 127.3 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.41e-05/2.708, allocations: 20.05 kB / 0.8555 GB, free: 127.3 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06059/2.769, allocations: 24.69 MB / 0.8796 GB, free: 117.9 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-05/2.769, allocations: 7.562 kB / 0.8796 GB, free: 117.9 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/2.772, allocations: 0.5263 MB / 0.8801 GB, free: 117.9 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01848/2.791, allocations: 4.445 MB / 0.8844 GB, free: 115.9 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009082/2.791, allocations: 78.64 kB / 0.8845 GB, free: 115.8 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04625/2.838, allocations: 24.52 MB / 0.9085 GB, free: 92.44 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/2.838, allocations: 19.94 kB / 0.9085 GB, free: 92.42 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03777/2.876, allocations: 16.79 MB / 0.9249 GB, free: 75.88 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004426/2.88, allocations: 1.457 MB / 0.9263 GB, free: 74.6 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002101/2.882, allocations: 76.92 kB / 0.9264 GB, free: 74.53 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005365/2.888, allocations: 263.9 kB / 0.9266 GB, free: 74.27 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001382/2.889, allocations: 279.4 kB / 0.9269 GB, free: 74 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006402/2.89, allocations: 116.7 kB / 0.927 GB, free: 73.89 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01114/2.901, allocations: 5.491 MB / 0.9324 GB, free: 68.41 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.156e-06/2.901, allocations: 7.656 kB / 0.9324 GB, free: 68.4 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01155/2.912, allocations: 2.231 MB / 0.9345 GB, free: 66.19 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001343/2.914, allocations: 281.2 kB / 0.9348 GB, free: 65.93 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02017/2.934, allocations: 10.84 MB / 0.9454 GB, free: 55.14 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/2.934, allocations: 0 / 0.9454 GB, free: 55.14 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009045/2.943, allocations: 4.564 MB / 0.9499 GB, free: 50.57 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006657/2.95, allocations: 1.049 MB / 0.9509 GB, free: 49.55 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05458/3.004, allocations: 25.93 MB / 0.9762 GB, free: 23.59 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01298/3.018, allocations: 6.561 MB / 0.9826 GB, free: 16.99 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002388/3.02, allocations: 0.4955 MB / 0.9831 GB, free: 16.5 MB / 426.8 MB Notification: Performance of SimCode: time 2.366e-06/3.02, allocations: 4 kB / 0.9831 GB, free: 16.49 MB / 426.8 MB Notification: Performance of Templates: time 0.526/3.546, allocations: 156 MB / 1.135 GB, free: 8.93 MB / 426.8 MB