Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.568/1.568, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.26e-05/2.276e-05, allocations: 4 kB / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06857/0.06862, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3217/0.3904, allocations: 97.43 MB / 358.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.3907, allocations: 86.39 kB / 358.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7801/1.171, allocations: 178.7 MB / 0.5249 GB, free: 15.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.098e-06/1.171, allocations: 0 / 0.5249 GB, free: 15.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006937/1.172, allocations: 190.4 kB / 0.5251 GB, free: 15.29 MB / 346.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.02914/1.201, allocations: 9.155 MB / 0.534 GB, free: 6.062 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/1.201, allocations: 12.03 kB / 0.5341 GB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5734/1.774, allocations: 16.65 MB / 0.5503 GB, free: 31.91 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0417/1.816, allocations: 14.57 MB / 0.5645 GB, free: 31.24 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004457/1.816, allocations: 276.3 kB / 0.5648 GB, free: 31.24 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/1.82, allocations: 0.5218 MB / 0.5653 GB, free: 31.23 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02562/1.846, allocations: 11.7 MB / 0.5767 GB, free: 31.18 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03847/1.884, allocations: 16.52 MB / 0.5929 GB, free: 27.57 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006647/1.885, allocations: 107 kB / 0.593 GB, free: 27.56 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002995/1.888, allocations: 41.47 kB / 0.593 GB, free: 27.56 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002794/1.891, allocations: 1.595 MB / 0.5946 GB, free: 27.32 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.121/2.012, allocations: 78.29 MB / 0.671 GB, free: 0 / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01104/2.023, allocations: 5.47 MB / 0.6764 GB, free: 10.93 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007485/2.03, allocations: 3.88 MB / 0.6802 GB, free: 7.336 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004083/2.034, allocations: 2.857 MB / 0.683 GB, free: 4.27 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/2.035, allocations: 71.09 kB / 0.683 GB, free: 4.191 MB / 394.8 MB Notification: Performance of pre-optimization done (n=314): time 7.961e-06/2.035, allocations: 0 / 0.683 GB, free: 4.191 MB / 394.8 MB Notification: Performance of matching and sorting (n=415): time 0.4127/2.447, allocations: 41.09 MB / 0.7232 GB, free: 71.01 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/2.448, allocations: 417.8 kB / 0.7235 GB, free: 70.57 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01347/2.461, allocations: 5.925 MB / 0.7293 GB, free: 70.07 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008311/2.462, allocations: 25.7 kB / 0.7294 GB, free: 70.04 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004257/2.466, allocations: 5.544 MB / 0.7348 GB, free: 67.03 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001844/2.468, allocations: 1.453 MB / 0.7362 GB, free: 66.13 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/2.469, allocations: 0 / 0.7362 GB, free: 66.13 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0007043/2.47, allocations: 0.717 MB / 0.7369 GB, free: 65.8 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00745/2.477, allocations: 3.98 MB / 0.7408 GB, free: 65.77 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01056/2.488, allocations: 9.087 MB / 0.7497 GB, free: 59.22 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/2.499, allocations: 5.962 MB / 0.7555 GB, free: 58.61 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000188/2.499, allocations: 55.03 kB / 0.7555 GB, free: 58.6 MB / 394.8 MB Notification: Performance of matching and sorting (n=1244) (initialization): time 0.04093/2.54, allocations: 15.71 MB / 0.7709 GB, free: 53.95 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/2.54, allocations: 85.17 kB / 0.771 GB, free: 53.95 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002069/2.54, allocations: 176.5 kB / 0.7711 GB, free: 53.95 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01842/2.559, allocations: 4.557 MB / 0.7756 GB, free: 52.98 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008286/2.567, allocations: 2.02 MB / 0.7775 GB, free: 52.7 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04276/2.61, allocations: 23.44 MB / 0.8004 GB, free: 32.56 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009999/2.62, allocations: 375.8 kB / 0.8008 GB, free: 32.27 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002041/2.622, allocations: 0.5266 MB / 0.8013 GB, free: 31.75 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1092): * Single equations (assignments): 1087 * 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,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001997/2.624, allocations: 0.5772 MB / 0.8019 GB, free: 31.18 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001637/2.626, allocations: 0.6827 MB / 0.8025 GB, free: 30.49 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02699/2.653, allocations: 10.5 MB / 0.8128 GB, free: 22.21 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.97e-05/2.653, allocations: 44.55 kB / 0.8128 GB, free: 22.17 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.816e-05/2.653, allocations: 23.94 kB / 0.8129 GB, free: 22.14 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.95e-05/2.653, allocations: 26.23 kB / 0.8129 GB, free: 22.14 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3062/2.959, allocations: 22.72 MB / 0.8351 GB, free: 62.7 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.308e-05/2.959, allocations: 8.219 kB / 0.8351 GB, free: 62.7 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003224/2.962, allocations: 0.5295 MB / 0.8356 GB, free: 62.7 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01846/2.981, allocations: 4.038 MB / 0.8395 GB, free: 62.67 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008658/2.982, allocations: 24.48 kB / 0.8396 GB, free: 62.66 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03987/3.022, allocations: 20.29 MB / 0.8594 GB, free: 61.35 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-05/3.022, allocations: 7.812 kB / 0.8594 GB, free: 61.35 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03551/3.057, allocations: 17.22 MB / 0.8762 GB, free: 58.55 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004515/3.062, allocations: 1.347 MB / 0.8775 GB, free: 58.14 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002149/3.064, allocations: 14.48 kB / 0.8775 GB, free: 58.14 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005497/3.07, allocations: 182.9 kB / 0.8777 GB, free: 58.14 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/3.071, allocations: 293.6 kB / 0.878 GB, free: 58.09 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006986/3.072, allocations: 107.7 kB / 0.8781 GB, free: 58.07 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01016/3.082, allocations: 4.139 MB / 0.8821 GB, free: 56.6 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.057e-06/3.082, allocations: 3.656 kB / 0.8821 GB, free: 56.6 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01283/3.095, allocations: 1.935 MB / 0.884 GB, free: 56.59 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 287 * 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.001363/3.096, allocations: 212.3 kB / 0.8842 GB, free: 56.5 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01889/3.115, allocations: 10.04 MB / 0.894 GB, free: 52.88 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/3.115, allocations: 0 / 0.894 GB, free: 52.88 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008193/3.123, allocations: 4.247 MB / 0.8982 GB, free: 51.04 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006567/3.13, allocations: 0.9164 MB / 0.8991 GB, free: 50.71 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05365/3.184, allocations: 18.77 MB / 0.9174 GB, free: 43.79 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01563/3.199, allocations: 6.574 MB / 0.9238 GB, free: 39.02 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00229/3.202, allocations: 483.6 kB / 0.9243 GB, free: 38.56 MB / 394.8 MB Notification: Performance of SimCode: time 1.817e-06/3.202, allocations: 0 / 0.9243 GB, free: 38.56 MB / 394.8 MB Notification: Performance of Templates: time 0.5091/3.711, allocations: 151.2 MB / 1.072 GB, free: 18.74 MB / 394.8 MB