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.641/1.641, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.44e-05/2.462e-05, allocations: 0 / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2109, allocations: 38.78 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.107/0.318, allocations: 70.69 MB / 338.3 MB, free: 2.652 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.3183, allocations: 67.97 kB / 338.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03349/0.3518, allocations: 7.444 MB / 345.8 MB, free: 11.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.076e-06/0.3518, allocations: 0 / 345.8 MB, free: 11.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.923e-05/0.3519, allocations: 8 kB / 345.8 MB, free: 11.11 MB / 298.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.001721/0.3536, allocations: 0.7012 MB / 346.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.3537, allocations: 12.03 kB / 346.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.3538, allocations: 47.44 kB / 346.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006034/0.3545, allocations: 314.2 kB / 346.9 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/0.3545, allocations: 36.78 kB / 346.9 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.3547, allocations: 47.89 kB / 346.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.3558, allocations: 447.5 kB / 347.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.368e-05/0.3559, allocations: 8 kB / 347.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.897e-05/0.3559, allocations: 19.94 kB / 347.4 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.356, allocations: 8 kB / 347.4 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.3571, allocations: 439 kB / 347.8 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/0.3604, allocations: 1.152 MB / 349 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.3615, allocations: 373.5 kB / 349.4 MB, free: 7.383 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006256/0.3621, allocations: 258.1 kB / 349.6 MB, free: 7.125 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.614e-05/0.3622, allocations: 12.42 kB / 349.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.3623, allocations: 35 kB / 349.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 4.536e-06/0.3623, allocations: 0 / 349.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004668/0.367, allocations: 1.748 MB / 351.4 MB, free: 5.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.3671, allocations: 55.97 kB / 351.5 MB, free: 5.164 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004181/0.3675, allocations: 243.5 kB / 351.7 MB, free: 4.918 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.3676, allocations: 45.7 kB / 351.7 MB, free: 4.867 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.3678, allocations: 235.8 kB / 352 MB, free: 4.633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002412/0.3681, allocations: 201.2 kB / 352.2 MB, free: 4.434 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.3681, allocations: 19.94 kB / 352.2 MB, free: 4.414 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3683, allocations: 334.8 kB / 352.5 MB, free: 4.078 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005579/0.3689, allocations: 217.5 kB / 352.7 MB, free: 3.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006201/0.3695, allocations: 266.2 kB / 353 MB, free: 3.598 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004694/0.37, allocations: 186.1 kB / 353.2 MB, free: 3.418 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.37, allocations: 0 / 353.2 MB, free: 3.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002439/0.3725, allocations: 0.835 MB / 354 MB, free: 2.574 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.3725, allocations: 4 kB / 354 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3726, allocations: 3.953 kB / 354 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.3739, allocations: 0.5169 MB / 354.5 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005599/0.3745, allocations: 91.83 kB / 354.6 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.3764, allocations: 1.382 MB / 356 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007647/0.3772, allocations: 108 kB / 356.1 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.65e-05/0.3773, allocations: 27.98 kB / 356.1 MB, free: 396 kB / 298.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 () * 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.0002235/0.3775, allocations: 132.9 kB / 356.3 MB, free: 256 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.3777, allocations: 39.53 kB / 356.3 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.3778, allocations: 59.52 kB / 356.4 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3779, allocations: 8 kB / 356.4 MB, free: 148 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.976e-06/0.3779, allocations: 0 / 356.4 MB, free: 148 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3779, allocations: 3.984 kB / 356.4 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1882/0.5661, allocations: 1.524 MB / 357.9 MB, free: 78.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.5662, allocations: 1.938 kB / 357.9 MB, free: 78.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005618/0.5668, allocations: 85.86 kB / 358 MB, free: 78.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.5679, allocations: 0.4921 MB / 358.5 MB, free: 78.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.746e-05/0.568, allocations: 18.81 kB / 358.5 MB, free: 78.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.5694, allocations: 1.362 MB / 359.9 MB, free: 77.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.394e-06/0.5694, allocations: 2.969 kB / 359.9 MB, free: 77.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.5719, allocations: 1.13 MB / 361 MB, free: 77.6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003128/0.5722, allocations: 164.7 kB / 361.2 MB, free: 77.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.5724, allocations: 24.02 kB / 361.2 MB, free: 77.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006518/0.573, allocations: 85.66 kB / 361.3 MB, free: 77.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.5733, allocations: 113.1 kB / 361.4 MB, free: 77.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.985e-05/0.5734, allocations: 29.3 kB / 361.4 MB, free: 77.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00024/0.5736, allocations: 196 kB / 361.6 MB, free: 77.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.75e-07/0.5737, allocations: 2.078 kB / 361.6 MB, free: 77.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006306/0.5743, allocations: 134.7 kB / 361.7 MB, free: 77.42 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) * 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.000248/0.5746, allocations: 146.9 kB / 361.9 MB, free: 77.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.5758, allocations: 0.5326 MB / 362.4 MB, free: 77.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.695e-06/0.5759, allocations: 0 / 362.4 MB, free: 77.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000725/0.5766, allocations: 309.4 kB / 362.7 MB, free: 77.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/0.5772, allocations: 62 kB / 362.8 MB, free: 77.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.5816, allocations: 1.362 MB / 364.1 MB, free: 76.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.582, allocations: 0.8321 MB / 365 MB, free: 75.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.5822, allocations: 36.59 kB / 365 MB, free: 75.91 MB / 298.7 MB Notification: Performance of SimCode: time 1.867e-06/0.5822, allocations: 0 / 365 MB, free: 75.91 MB / 298.7 MB Notification: Performance of Templates: time 0.01156/0.5938, allocations: 7.862 MB / 372.9 MB, free: 71.27 MB / 298.7 MB