Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.609/1.609, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003534, allocations: 12 kB / 233.2 MB, free: 3 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07023/0.07061, allocations: 38.76 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2952/0.3658, allocations: 70.79 MB / 342.8 MB, free: 3.195 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.3661, allocations: 73.91 kB / 342.9 MB, free: 3.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03153/0.3976, allocations: 7.472 MB / 350.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.437e-06/0.3977, allocations: 0 / 350.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.093e-05/0.3977, allocations: 8 kB / 350.3 MB, free: 12.73 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001665/0.3994, allocations: 0.7318 MB / 351.1 MB, free: 11.97 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3994, allocations: 16.03 kB / 351.1 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.3996, allocations: 51.34 kB / 351.1 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.4002, allocations: 313.9 kB / 351.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.495e-05/0.4002, allocations: 31.64 kB / 351.5 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.4003, allocations: 41.59 kB / 351.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.4016, allocations: 475.5 kB / 352 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/0.4016, allocations: 4 kB / 352 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.353e-05/0.4017, allocations: 21.56 kB / 352 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.4017, allocations: 11.98 kB / 352 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.4031, allocations: 486.6 kB / 352.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002971/0.4061, allocations: 1.161 MB / 353.7 MB, free: 9.859 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.4073, allocations: 395.6 kB / 354 MB, free: 9.586 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.533e-05/0.4074, allocations: 12.42 kB / 354.1 MB, free: 9.574 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.4074, allocations: 38.44 kB / 354.1 MB, free: 9.531 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.701e-06/0.4074, allocations: 0 / 354.1 MB, free: 9.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.00729/0.4147, allocations: 2.479 MB / 356.6 MB, free: 7.395 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.4148, allocations: 55.97 kB / 356.6 MB, free: 7.328 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004087/0.4152, allocations: 249.9 kB / 356.9 MB, free: 7.121 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.818e-05/0.4153, allocations: 44.33 kB / 356.9 MB, free: 7.082 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.4155, allocations: 237 kB / 357.1 MB, free: 6.875 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.4158, allocations: 198 kB / 357.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.971e-05/0.4158, allocations: 18.56 kB / 357.4 MB, free: 6.699 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.416, allocations: 336.7 kB / 357.7 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006853/0.4167, allocations: 241.7 kB / 357.9 MB, free: 6.211 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007286/0.4175, allocations: 297.2 kB / 358.2 MB, free: 6.008 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.4181, allocations: 203.6 kB / 358.4 MB, free: 5.883 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.683e-06/0.4181, allocations: 0 / 358.4 MB, free: 5.883 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002698/0.4208, allocations: 0.8733 MB / 359.3 MB, free: 5.207 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.4209, allocations: 11.95 kB / 359.3 MB, free: 5.195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.399e-06/0.4209, allocations: 4 kB / 359.3 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.4222, allocations: 0.5232 MB / 359.8 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000532/0.4228, allocations: 94.77 kB / 359.9 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.4247, allocations: 1.38 MB / 361.3 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007251/0.4254, allocations: 111 kB / 361.4 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-05/0.4255, allocations: 19.72 kB / 361.4 MB, free: 3.258 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003512/0.4259, allocations: 171.1 kB / 361.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.426, allocations: 39.53 kB / 361.6 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.4262, allocations: 60.11 kB / 361.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.793e-06/0.4262, allocations: 4 kB / 361.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.901e-06/0.4262, allocations: 0 / 361.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.4262, allocations: 7.969 kB / 361.7 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004597/0.4308, allocations: 1.584 MB / 363.3 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.451e-06/0.4309, allocations: 0 / 363.3 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005545/0.4315, allocations: 87.83 kB / 363.4 MB, free: 1.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.4327, allocations: 0.5093 MB / 363.9 MB, free: 1.188 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.4328, allocations: 22.61 kB / 363.9 MB, free: 1.172 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.4346, allocations: 1.363 MB / 365.3 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.239e-06/0.4347, allocations: 8.016 kB / 365.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00338/0.4381, allocations: 1.256 MB / 366.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003579/0.4385, allocations: 167.5 kB / 366.7 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.4386, allocations: 19.5 kB / 366.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000596/0.4392, allocations: 79.67 kB / 366.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/0.4395, allocations: 119.3 kB / 366.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.538e-05/0.4396, allocations: 23.73 kB / 366.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002939/0.4399, allocations: 204.5 kB / 367.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.07e-07/0.4399, allocations: 0 / 367.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006806/0.4406, allocations: 130.9 kB / 367.3 MB, free: 14.19 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003185/0.4409, allocations: 148.1 kB / 367.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.4427, allocations: 0.5864 MB / 368 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.745e-06/0.4427, allocations: 0 / 368 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.4437, allocations: 334.6 kB / 368.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006436/0.4444, allocations: 67.47 kB / 368.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005193/0.4496, allocations: 1.802 MB / 370.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005829/0.4502, allocations: 0.8287 MB / 371 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.4504, allocations: 39.23 kB / 371 MB, free: 10.68 MB / 298.7 MB Notification: Performance of SimCode: time 1.789e-06/0.4505, allocations: 0 / 371 MB, free: 10.68 MB / 298.7 MB Notification: Performance of Templates: time 0.01449/0.4649, allocations: 7.872 MB / 378.9 MB, free: 2.852 MB / 298.7 MB