Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadModel(ModelicaTest): time 2.147/2.147, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004295/0.0004295, allocations: 12 kB / 314.4 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2736, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1721/0.4458, allocations: 82.58 MB / 451.8 MB, free: 8.023 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/0.4461, allocations: 71.91 kB / 451.9 MB, free: 7.953 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01732/0.4634, allocations: 4.143 MB / 456 MB, free: 3.805 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.212e-06/0.4634, allocations: 0 / 456 MB, free: 3.805 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.329e-05/0.4635, allocations: 11.98 kB / 456.1 MB, free: 3.793 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007196/0.4642, allocations: 480.6 kB / 456.5 MB, free: 3.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.4643, allocations: 12.03 kB / 456.5 MB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.976e-05/0.4643, allocations: 27.67 kB / 456.6 MB, free: 3.238 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.4647, allocations: 219.3 kB / 456.8 MB, free: 2.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.4647, allocations: 20.38 kB / 456.8 MB, free: 2.961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-05/0.4648, allocations: 31.89 kB / 456.8 MB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.4652, allocations: 214.6 kB / 457 MB, free: 2.703 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.4653, allocations: 0 / 457 MB, free: 2.703 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.4653, allocations: 16 kB / 457.1 MB, free: 2.688 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.058e-06/0.4653, allocations: 7.938 kB / 457.1 MB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002932/0.4656, allocations: 119.8 kB / 457.2 MB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.4677, allocations: 1.041 MB / 458.2 MB, free: 1.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/0.468, allocations: 158.6 kB / 458.4 MB, free: 1.238 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.468, allocations: 4.031 kB / 458.4 MB, free: 1.234 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.4681, allocations: 34.5 kB / 458.4 MB, free: 1.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 4.489e-06/0.4681, allocations: 0 / 458.4 MB, free: 1.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004942/0.4686, allocations: 149.5 kB / 458.6 MB, free: 1.039 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.613e-05/0.4687, allocations: 136.4 kB / 458.7 MB, free: 0.875 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.4689, allocations: 170.1 kB / 458.9 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.469, allocations: 25.7 kB / 458.9 MB, free: 0.668 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.4691, allocations: 218.3 kB / 459.1 MB, free: 464 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.161e-05/0.4692, allocations: 55.2 kB / 459.2 MB, free: 408 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.4692, allocations: 4 kB / 459.2 MB, free: 404 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.4694, allocations: 330.8 kB / 459.5 MB, free: 64 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.4696, allocations: 44.11 kB / 459.5 MB, free: 20 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.4698, allocations: 146.6 kB / 459.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.47, allocations: 67.94 kB / 459.7 MB, free: 15.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.06e-06/0.47, allocations: 0 / 459.7 MB, free: 15.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005101/0.4705, allocations: 229.1 kB / 460 MB, free: 15.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.4706, allocations: 8.438 kB / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.523e-06/0.4706, allocations: 4 kB / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.4706, allocations: 8 kB / 460 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.4709, allocations: 59.91 kB / 460 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.4709, allocations: 7.938 kB / 460 MB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.4711, allocations: 23.78 kB / 460.1 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.4712, allocations: 19.98 kB / 460.1 MB, free: 15.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001836/0.4714, allocations: 142.3 kB / 460.2 MB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.4715, allocations: 15.81 kB / 460.2 MB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.4717, allocations: 86.8 kB / 460.3 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.666e-06/0.4718, allocations: 3.938 kB / 460.3 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.851e-06/0.4718, allocations: 4.562 kB / 460.3 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.296e-06/0.4718, allocations: 0 / 460.3 MB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006586/0.4725, allocations: 269.3 kB / 460.6 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.4725, allocations: 0 / 460.6 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/0.4728, allocations: 43.97 kB / 460.6 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.645e-06/0.4728, allocations: 0 / 460.6 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.4729, allocations: 8 kB / 460.6 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.059e-06/0.4729, allocations: 0 / 460.6 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/0.4729, allocations: 4 kB / 460.7 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005646/0.4735, allocations: 0.5181 MB / 461.2 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.077e-05/0.4736, allocations: 88.92 kB / 461.3 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.4736, allocations: 15.94 kB / 461.3 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.4739, allocations: 0 / 461.3 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.4739, allocations: 19.94 kB / 461.3 MB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.474, allocations: 4 kB / 461.3 MB, free: 14.06 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001476/0.4741, allocations: 125.2 kB / 461.4 MB, free: 13.94 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.021e-06/0.4741, allocations: 0 / 461.4 MB, free: 13.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006364/0.4748, allocations: 59.84 kB / 461.5 MB, free: 13.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000154/0.475, allocations: 115.1 kB / 461.6 MB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003114/0.4753, allocations: 119.8 kB / 461.7 MB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4753, allocations: 0 / 461.7 MB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.838e-05/0.4754, allocations: 43.92 kB / 461.7 MB, free: 13.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005731/0.476, allocations: 45.09 kB / 461.8 MB, free: 13.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.4778, allocations: 1.007 MB / 462.8 MB, free: 12.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.4783, allocations: 0.7481 MB / 463.5 MB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.992e-05/0.4784, allocations: 19.42 kB / 463.6 MB, free: 11.71 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/0.4784, allocations: 4 kB / 463.6 MB, free: 11.71 MB / 394.7 MB Notification: Performance of Templates: time 0.005164/0.4836, allocations: 2.34 MB / 465.9 MB, free: 9.367 MB / 394.7 MB