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.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 2.23/2.23, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003516, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1248, allocations: 44.5 MB / 309.1 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5181/0.643, allocations: 103.9 MB / 412.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.6433, allocations: 105.6 kB / 413 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.101/1.744, allocations: 184.3 MB / 0.5834 GB, free: 68.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.657e-06/1.744, allocations: 0 / 0.5834 GB, free: 68.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008657/1.745, allocations: 184.6 kB / 0.5835 GB, free: 68.84 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.04541/1.791, allocations: 10.31 MB / 0.5936 GB, free: 64.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/1.791, allocations: 15.02 kB / 0.5936 GB, free: 64.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1178/1.909, allocations: 16.63 MB / 0.6099 GB, free: 64.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05526/1.964, allocations: 14.65 MB / 0.6242 GB, free: 54.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007832/1.965, allocations: 0.6288 MB / 0.6248 GB, free: 53.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004572/1.969, allocations: 0.8605 MB / 0.6256 GB, free: 52.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06333/2.033, allocations: 19.4 MB / 0.6446 GB, free: 32.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007644/2.034, allocations: 115 kB / 0.6447 GB, free: 32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004022/2.038, allocations: 394.5 kB / 0.6451 GB, free: 31.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003523/2.041, allocations: 1.591 MB / 0.6466 GB, free: 30.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05217/2.093, allocations: 15.58 MB / 0.6618 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4952/2.589, allocations: 80.54 MB / 0.7405 GB, free: 43.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03676/2.625, allocations: 7.903 MB / 0.7482 GB, free: 43.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03899/2.665, allocations: 14.1 MB / 0.762 GB, free: 38.65 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.697e-05/2.665, allocations: 67.22 kB / 0.762 GB, free: 38.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 6.923e-06/2.665, allocations: 7.25 kB / 0.762 GB, free: 38.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.31/2.975, allocations: 47.63 MB / 0.8085 GB, free: 24.83 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000154/2.975, allocations: 413.8 kB / 0.8089 GB, free: 24.35 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01527/2.99, allocations: 7.5 MB / 0.8163 GB, free: 18.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001079/2.991, allocations: 90.42 kB / 0.8164 GB, free: 18.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005109/2.996, allocations: 5.867 MB / 0.8221 GB, free: 12.99 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002148/2.999, allocations: 1.477 MB / 0.8235 GB, free: 11.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009706/3, allocations: 184 kB / 0.8237 GB, free: 11.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005804/3, allocations: 0.6962 MB / 0.8244 GB, free: 10.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009532/3.01, allocations: 4.184 MB / 0.8285 GB, free: 7.312 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3351/3.345, allocations: 9.191 MB / 0.8374 GB, free: 84.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01553/3.36, allocations: 6.089 MB / 0.8434 GB, free: 84.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002112/3.361, allocations: 48.69 kB / 0.8434 GB, free: 84.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.06116/3.422, allocations: 17.2 MB / 0.8602 GB, free: 83.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001508/3.422, allocations: 76.97 kB / 0.8603 GB, free: 83.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002848/3.422, allocations: 173.1 kB / 0.8605 GB, free: 83.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02609/3.448, allocations: 4.678 MB / 0.865 GB, free: 83.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01191/3.46, allocations: 1.966 MB / 0.867 GB, free: 83.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06365/3.524, allocations: 26.2 MB / 0.8925 GB, free: 75.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01214/3.536, allocations: 0.533 MB / 0.8931 GB, free: 75.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002787/3.539, allocations: 0.5136 MB / 0.8936 GB, free: 75.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1061): * Single equations (assignments): 1056 * 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.01153/3.551, allocations: 4.086 MB / 0.8976 GB, free: 73.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002056/3.553, allocations: 0.707 MB / 0.8982 GB, free: 73.34 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04087/3.594, allocations: 10.9 MB / 0.9089 GB, free: 69.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.822e-05/3.594, allocations: 41.42 kB / 0.9089 GB, free: 69.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.466e-05/3.594, allocations: 24.44 kB / 0.909 GB, free: 69.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001028/3.594, allocations: 22.45 kB / 0.909 GB, free: 69.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08189/3.676, allocations: 23.7 MB / 0.9321 GB, free: 59.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.666e-05/3.676, allocations: 11.84 kB / 0.9321 GB, free: 59.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004765/3.681, allocations: 0.5168 MB / 0.9326 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02488/3.706, allocations: 4.11 MB / 0.9366 GB, free: 55.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001086/3.707, allocations: 75.22 kB / 0.9367 GB, free: 55.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05464/3.762, allocations: 22.86 MB / 0.959 GB, free: 36.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/3.762, allocations: 11.94 kB / 0.9591 GB, free: 36.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05747/3.819, allocations: 16.08 MB / 0.9748 GB, free: 22.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007543/3.827, allocations: 1.368 MB / 0.9761 GB, free: 21.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003915/3.831, allocations: 81.77 kB / 0.9762 GB, free: 21.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00981/3.841, allocations: 232.5 kB / 0.9764 GB, free: 21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002393/3.843, allocations: 293.1 kB / 0.9767 GB, free: 20.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001098/3.844, allocations: 113.8 kB / 0.9768 GB, free: 20.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01937/3.864, allocations: 4.795 MB / 0.9815 GB, free: 16.26 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.81e-07/3.864, allocations: 0 / 0.9815 GB, free: 16.26 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.03155/3.895, allocations: 2.198 MB / 0.9836 GB, free: 14.08 MB / 442.7 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.002183/3.897, allocations: 272.8 kB / 0.9839 GB, free: 13.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3806/4.278, allocations: 10.61 MB / 0.9942 GB, free: 83.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.722e-05/4.278, allocations: 6.375 kB / 0.9942 GB, free: 83.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01187/4.29, allocations: 4.42 MB / 0.9985 GB, free: 82.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009254/4.299, allocations: 1.048 MB / 0.9996 GB, free: 82.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07146/4.371, allocations: 24.7 MB / 1.024 GB, free: 74.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01723/4.388, allocations: 6.564 MB / 1.03 GB, free: 73.13 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01494/4.403, allocations: 2.931 MB / 1.033 GB, free: 73.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002855/4.406, allocations: 432.6 kB / 1.033 GB, free: 73.05 MB / 442.7 MB Notification: Performance of SimCode: time 1.763e-06/4.406, allocations: 0 / 1.033 GB, free: 73.05 MB / 442.7 MB Notification: Performance of Templates: time 0.3213/4.727, allocations: 93.13 MB / 1.124 GB, free: 23.38 MB / 442.7 MB