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.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.208/2.208, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.427e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3662, allocations: 54.85 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.131/0.4973, allocations: 86.42 MB / 450.9 MB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.4976, allocations: 63.97 kB / 451 MB, free: 9.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05083/0.5484, allocations: 11.75 MB / 462.8 MB, free: 14.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.174e-06/0.5485, allocations: 3.984 kB / 462.8 MB, free: 14.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.896e-05/0.5485, allocations: 12 kB / 462.8 MB, free: 14.21 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00247/0.551, allocations: 0.9312 MB / 463.7 MB, free: 13.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.551, allocations: 8.031 kB / 463.7 MB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002281/0.5513, allocations: 80.09 kB / 463.8 MB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007721/0.5521, allocations: 408.7 kB / 464.2 MB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.786e-05/0.5522, allocations: 49.31 kB / 464.2 MB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.5523, allocations: 67.86 kB / 464.3 MB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.5541, allocations: 0.7405 MB / 465 MB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.661e-05/0.5542, allocations: 11.89 kB / 465.1 MB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.5543, allocations: 24 kB / 465.1 MB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.5543, allocations: 20 kB / 465.1 MB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.556, allocations: 0.6176 MB / 465.7 MB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006136/0.5622, allocations: 2.574 MB / 468.3 MB, free: 8.449 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.5637, allocations: 0.574 MB / 468.9 MB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007918/0.5645, allocations: 336.2 kB / 469.2 MB, free: 7.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.5647, allocations: 23.8 kB / 469.2 MB, free: 7.477 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/0.5647, allocations: 42.56 kB / 469.3 MB, free: 7.426 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.962e-06/0.5647, allocations: 0 / 469.3 MB, free: 7.426 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.005914/0.5707, allocations: 2.399 MB / 471.7 MB, free: 4.836 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.914e-05/0.5708, allocations: 140.4 kB / 471.8 MB, free: 4.668 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005163/0.5713, allocations: 315.2 kB / 472.1 MB, free: 4.348 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.5715, allocations: 53.69 kB / 472.2 MB, free: 4.289 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.5717, allocations: 315 kB / 472.5 MB, free: 3.977 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003405/0.5721, allocations: 284.1 kB / 472.7 MB, free: 3.695 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.517e-05/0.5722, allocations: 23.98 kB / 472.8 MB, free: 3.672 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.5724, allocations: 342.8 kB / 473.1 MB, free: 3.328 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008384/0.5733, allocations: 310 kB / 473.4 MB, free: 3.023 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009837/0.5743, allocations: 474.6 kB / 473.9 MB, free: 2.504 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007065/0.575, allocations: 264.6 kB / 474.1 MB, free: 2.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.389e-06/0.575, allocations: 0 / 474.1 MB, free: 2.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003311/0.5783, allocations: 1.1 MB / 475.2 MB, free: 1.137 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.5784, allocations: 9.047 kB / 475.2 MB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.363e-05/0.5784, allocations: 8 kB / 475.2 MB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00169/0.5801, allocations: 0.5932 MB / 475.8 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007804/0.5809, allocations: 155.7 kB / 476 MB, free: 372 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003114/0.5841, allocations: 2.565 MB / 478.5 MB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.5853, allocations: 195.7 kB / 478.7 MB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/0.5855, allocations: 39.98 kB / 478.8 MB, free: 13.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003156/0.5858, allocations: 167.9 kB / 478.9 MB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.5861, allocations: 67.23 kB / 479 MB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003142/0.5892, allocations: 1.031 MB / 480 MB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/0.5893, allocations: 8 kB / 480 MB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.5893, allocations: 8 kB / 480.1 MB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.5893, allocations: 3.984 kB / 480.1 MB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004997/0.5943, allocations: 2.013 MB / 482.1 MB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.651e-06/0.5944, allocations: 4.062 kB / 482.1 MB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008342/0.5952, allocations: 119.9 kB / 482.2 MB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001552/0.5968, allocations: 0.5576 MB / 482.7 MB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.5969, allocations: 39.91 kB / 482.8 MB, free: 9.328 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002998/0.6, allocations: 2.526 MB / 485.3 MB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.035e-06/0.6, allocations: 0 / 485.3 MB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00383/0.6038, allocations: 1.629 MB / 486.9 MB, free: 5.004 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004848/0.6043, allocations: 220.1 kB / 487.2 MB, free: 4.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.6045, allocations: 28 kB / 487.2 MB, free: 4.742 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.6057, allocations: 175.8 kB / 487.4 MB, free: 4.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004778/0.6062, allocations: 175.6 kB / 487.5 MB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.6064, allocations: 39.97 kB / 487.6 MB, free: 4.359 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004206/0.6068, allocations: 261.2 kB / 487.8 MB, free: 4.109 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.133e-06/0.6068, allocations: 0 / 487.8 MB, free: 4.109 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001083/0.6079, allocations: 204 kB / 488 MB, free: 3.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003424/0.6083, allocations: 159 kB / 488.2 MB, free: 3.746 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002449/0.6107, allocations: 0.9182 MB / 489.1 MB, free: 2.805 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.993e-06/0.6108, allocations: 0 / 489.1 MB, free: 2.805 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.6123, allocations: 477 kB / 489.6 MB, free: 2.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009531/0.6132, allocations: 87.75 kB / 489.6 MB, free: 2.254 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006079/0.6193, allocations: 2.052 MB / 491.7 MB, free: 152 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007402/0.6201, allocations: 0.926 MB / 492.6 MB, free: 15.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.6204, allocations: 47.42 kB / 492.7 MB, free: 15.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.875e-06/0.6204, allocations: 0 / 492.7 MB, free: 15.14 MB / 426.7 MB Notification: Performance of Templates: time 0.026/0.6464, allocations: 16.38 MB / 0.4971 GB, free: 14.77 MB / 442.7 MB