Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.331/2.331, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000422/0.0004221, allocations: 8 kB / 314.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3354, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1447/0.4802, allocations: 82.57 MB / 452.4 MB, free: 8.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4805, allocations: 67.97 kB / 452.4 MB, free: 7.984 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0184/0.499, allocations: 4.139 MB / 456.6 MB, free: 3.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.499, allocations: 0 / 456.6 MB, free: 3.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.152e-05/0.4991, allocations: 4 kB / 456.6 MB, free: 3.836 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.0008699/0.4999, allocations: 488.4 kB / 457 MB, free: 3.312 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.5, allocations: 16.03 kB / 457.1 MB, free: 3.297 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.724e-05/0.5001, allocations: 31.67 kB / 457.1 MB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.5004, allocations: 229.2 kB / 457.3 MB, free: 3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.5005, allocations: 16.44 kB / 457.3 MB, free: 2.984 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.594e-05/0.5005, allocations: 23.91 kB / 457.4 MB, free: 2.961 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.5011, allocations: 218.6 kB / 457.6 MB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.5011, allocations: 0 / 457.6 MB, free: 2.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.5012, allocations: 11.94 kB / 457.6 MB, free: 2.719 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.5012, allocations: 8 kB / 457.6 MB, free: 2.711 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003436/0.5015, allocations: 123.8 kB / 457.7 MB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.5035, allocations: 1.025 MB / 458.7 MB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.5039, allocations: 166.3 kB / 458.9 MB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.504, allocations: 0 / 458.9 MB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.504, allocations: 38.62 kB / 458.9 MB, free: 1.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.993e-06/0.504, allocations: 0 / 458.9 MB, free: 1.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004931/0.5045, allocations: 149.3 kB / 459.1 MB, free: 1.074 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.5046, allocations: 132.6 kB / 459.2 MB, free: 0.9141 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.5048, allocations: 187 kB / 459.4 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.5049, allocations: 25.7 kB / 459.4 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.505, allocations: 222.3 kB / 459.6 MB, free: 480 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.082e-05/0.5051, allocations: 55.19 kB / 459.7 MB, free: 424 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.5051, allocations: 8 kB / 459.7 MB, free: 416 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5052, allocations: 322.8 kB / 460 MB, free: 84 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.5054, allocations: 47.98 kB / 460.1 MB, free: 36 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/0.5056, allocations: 150.5 kB / 460.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.5058, allocations: 67.94 kB / 460.3 MB, free: 15.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.5059, allocations: 4 kB / 460.3 MB, free: 15.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005212/0.5064, allocations: 225.3 kB / 460.5 MB, free: 15.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.5064, allocations: 8 kB / 460.5 MB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.5064, allocations: 4.438 kB / 460.5 MB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.5065, allocations: 16 kB / 460.5 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003885/0.5069, allocations: 59.91 kB / 460.6 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/0.5069, allocations: 4 kB / 460.6 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.5071, allocations: 31.7 kB / 460.6 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.5072, allocations: 16 kB / 460.6 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.0001768/0.5074, allocations: 138.3 kB / 460.8 MB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.5075, allocations: 15.81 kB / 460.8 MB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/0.5077, allocations: 86.55 kB / 460.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.5077, allocations: 4 kB / 460.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.5078, allocations: 0 / 460.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.5078, allocations: 4 kB / 460.9 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006453/0.5084, allocations: 261.4 kB / 461.1 MB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.5085, allocations: 0 / 461.1 MB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004515/0.5089, allocations: 43.97 kB / 461.2 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.297e-06/0.5089, allocations: 7.938 kB / 461.2 MB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.509, allocations: 4 kB / 461.2 MB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.509, allocations: 4 kB / 461.2 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.509, allocations: 0 / 461.2 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.5095, allocations: 490 kB / 461.7 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.237e-05/0.5097, allocations: 96.86 kB / 461.8 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.565e-05/0.5097, allocations: 4 kB / 461.8 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002698/0.51, allocations: 4 kB / 461.8 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.5101, allocations: 19.92 kB / 461.8 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.5101, allocations: 7.984 kB / 461.8 MB, free: 14.13 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.5103, allocations: 133.2 kB / 461.9 MB, free: 14 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5103, allocations: 0 / 461.9 MB, free: 14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006075/0.5109, allocations: 55.84 kB / 462 MB, free: 13.95 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.0001542/0.511, allocations: 107.2 kB / 462.1 MB, free: 13.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003592/0.5114, allocations: 124.5 kB / 462.2 MB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5114, allocations: 0 / 462.2 MB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.5116, allocations: 51.86 kB / 462.3 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006543/0.5122, allocations: 41.48 kB / 462.3 MB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.5143, allocations: 1.014 MB / 463.3 MB, free: 12.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.5147, allocations: 0.7403 MB / 464.1 MB, free: 11.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.7e-05/0.5148, allocations: 27.42 kB / 464.1 MB, free: 11.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5148, allocations: 0 / 464.1 MB, free: 11.78 MB / 394.7 MB Notification: Performance of Templates: time 0.01924/0.534, allocations: 2.342 MB / 466.4 MB, free: 9.434 MB / 394.7 MB