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.272/2.272, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.441e-05/2.459e-05, allocations: 0 / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3159, allocations: 54.86 MB / 364.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.4829, allocations: 82.49 MB / 447 MB, free: 13.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.4831, allocations: 68.5 kB / 447.1 MB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01765/0.5008, allocations: 4.146 MB / 451.2 MB, free: 9.781 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.111e-06/0.5009, allocations: 192 / 451.2 MB, free: 9.781 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.279e-05/0.5009, allocations: 11.94 kB / 451.2 MB, free: 9.77 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.000693/0.5016, allocations: 458.3 kB / 451.7 MB, free: 9.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.5016, allocations: 9.906 kB / 451.7 MB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.563e-05/0.5017, allocations: 27.67 kB / 451.7 MB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.502, allocations: 223.3 kB / 451.9 MB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.5021, allocations: 24.36 kB / 452 MB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.5021, allocations: 24 kB / 452 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004381/0.5026, allocations: 210.7 kB / 452.2 MB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.5026, allocations: 3.906 kB / 452.2 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/0.5027, allocations: 12 kB / 452.2 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.5027, allocations: 7.953 kB / 452.2 MB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.503, allocations: 119.9 kB / 452.3 MB, free: 8.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.5049, allocations: 1.03 MB / 453.4 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.5052, allocations: 158.6 kB / 453.5 MB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.5053, allocations: 51.47 kB / 453.6 MB, free: 7.195 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.5054, allocations: 11.86 kB / 453.6 MB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.5054, allocations: 38.69 kB / 453.6 MB, free: 7.137 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.921e-06/0.5054, allocations: 0 / 453.6 MB, free: 7.137 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003895/0.5058, allocations: 117.4 kB / 453.7 MB, free: 7.016 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.268e-05/0.5059, allocations: 136.5 kB / 453.9 MB, free: 6.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.5061, allocations: 158.3 kB / 454 MB, free: 6.688 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.5062, allocations: 29.7 kB / 454.1 MB, free: 6.652 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.5063, allocations: 227.5 kB / 454.3 MB, free: 6.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.221e-05/0.5064, allocations: 58.33 kB / 454.3 MB, free: 6.375 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.526e-05/0.5064, allocations: 8 kB / 454.3 MB, free: 6.367 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.5066, allocations: 322.8 kB / 454.7 MB, free: 6.043 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.5068, allocations: 44.03 kB / 454.7 MB, free: 6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.507, allocations: 146.6 kB / 454.8 MB, free: 5.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.5072, allocations: 67.91 kB / 454.9 MB, free: 5.738 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.806e-06/0.5072, allocations: 0 / 454.9 MB, free: 5.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004916/0.5077, allocations: 229.5 kB / 455.1 MB, free: 5.508 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.5077, allocations: 5.875 kB / 455.1 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.5077, allocations: 4 kB / 455.1 MB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.5078, allocations: 8 kB / 455.2 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.5081, allocations: 59.91 kB / 455.2 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.5081, allocations: 8.688 kB / 455.2 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.5083, allocations: 23.75 kB / 455.2 MB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.5083, allocations: 19.98 kB / 455.3 MB, free: 5.383 MB / 378.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 () * 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.0001317/0.5085, allocations: 129 kB / 455.4 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.5086, allocations: 19.8 kB / 455.4 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.5088, allocations: 70.62 kB / 455.5 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.408e-06/0.5089, allocations: 4 kB / 455.5 MB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.235e-06/0.5089, allocations: 3.984 kB / 455.5 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.403e-06/0.5089, allocations: 1.031 kB / 455.5 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006676/0.5096, allocations: 261.5 kB / 455.7 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.76e-06/0.5096, allocations: 3.938 kB / 455.7 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.5099, allocations: 39.98 kB / 455.8 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.515e-06/0.5099, allocations: 4 kB / 455.8 MB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.51, allocations: 11.98 kB / 455.8 MB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.854e-06/0.51, allocations: 4 kB / 455.8 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.51, allocations: 3.938 kB / 455.8 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005705/0.5106, allocations: 0.5081 MB / 456.3 MB, free: 4.223 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.768e-05/0.5107, allocations: 96.84 kB / 456.4 MB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.5107, allocations: 8 kB / 456.4 MB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.511, allocations: 5.281 kB / 456.4 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.5111, allocations: 15.94 kB / 456.4 MB, free: 4.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.5111, allocations: 8 kB / 456.4 MB, free: 4.074 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001536/0.5113, allocations: 133.2 kB / 456.6 MB, free: 3.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.5113, allocations: 0 / 456.6 MB, free: 3.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006278/0.5119, allocations: 59.84 kB / 456.6 MB, free: 3.887 MB / 378.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 () * 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.0001527/0.5121, allocations: 107.2 kB / 456.7 MB, free: 3.773 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.5124, allocations: 119.8 kB / 456.9 MB, free: 3.656 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.598e-06/0.5124, allocations: 0.875 kB / 456.9 MB, free: 3.656 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.742e-05/0.5125, allocations: 44.17 kB / 456.9 MB, free: 3.613 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.5131, allocations: 45.23 kB / 456.9 MB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.5146, allocations: 0.766 MB / 457.7 MB, free: 2.766 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.5151, allocations: 0.7482 MB / 458.5 MB, free: 1.988 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.813e-05/0.5152, allocations: 19.44 kB / 458.5 MB, free: 1.969 MB / 378.7 MB Notification: Performance of SimCode: time 1.62e-06/0.5152, allocations: 4 kB / 458.5 MB, free: 1.965 MB / 378.7 MB Notification: Performance of Templates: time 0.005208/0.5205, allocations: 2.34 MB / 460.8 MB, free: 15.62 MB / 394.7 MB