Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004033, allocations: 16 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.08736, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3735/0.4609, allocations: 70.78 MB / 343.4 MB, free: 2.641 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4613, allocations: 75.77 kB / 343.5 MB, free: 2.602 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03527/0.4966, allocations: 7.479 MB / 351 MB, free: 12.17 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4966, allocations: 0 / 351 MB, free: 12.17 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.744e-05/0.4967, allocations: 8 kB / 351 MB, free: 12.16 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.002165/0.4988, allocations: 0.7395 MB / 351.7 MB, free: 11.4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.4989, allocations: 8.031 kB / 351.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.4991, allocations: 51.34 kB / 351.8 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000599/0.4997, allocations: 309.4 kB / 352.1 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/0.4997, allocations: 30.77 kB / 352.1 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.4999, allocations: 47.84 kB / 352.1 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.5014, allocations: 478.3 kB / 352.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.5014, allocations: 0 / 352.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.165e-05/0.5015, allocations: 17.81 kB / 352.6 MB, free: 10.63 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.5015, allocations: 12 kB / 352.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.5032, allocations: 486.4 kB / 353.1 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.5068, allocations: 1.158 MB / 354.3 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.5082, allocations: 396.5 kB / 354.7 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.169e-05/0.5083, allocations: 8.422 kB / 354.7 MB, free: 9.02 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.5083, allocations: 45.94 kB / 354.7 MB, free: 8.973 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.396e-06/0.5083, allocations: 0 / 354.7 MB, free: 8.973 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.009318/0.5177, allocations: 2.469 MB / 357.2 MB, free: 6.848 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.5178, allocations: 59.97 kB / 357.2 MB, free: 6.777 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004784/0.5183, allocations: 286.1 kB / 357.5 MB, free: 6.539 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.5184, allocations: 44.45 kB / 357.6 MB, free: 6.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.5186, allocations: 184.8 kB / 357.7 MB, free: 6.352 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002685/0.5188, allocations: 203.2 kB / 357.9 MB, free: 6.18 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.665e-05/0.5189, allocations: 9.438 kB / 357.9 MB, free: 6.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.5191, allocations: 347 kB / 358.3 MB, free: 5.848 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008371/0.5199, allocations: 253.1 kB / 358.5 MB, free: 5.68 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008907/0.5209, allocations: 291.5 kB / 358.8 MB, free: 5.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007297/0.5216, allocations: 209.7 kB / 359 MB, free: 5.352 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5216, allocations: 4 kB / 359 MB, free: 5.348 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003286/0.5249, allocations: 0.8781 MB / 359.9 MB, free: 4.664 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.525, allocations: 13.05 kB / 359.9 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.525, allocations: 3.984 kB / 359.9 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.5266, allocations: 0.5278 MB / 360.4 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007031/0.5273, allocations: 99.33 kB / 360.5 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/0.5293, allocations: 1.382 MB / 361.9 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.5304, allocations: 109.5 kB / 362 MB, free: 2.719 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.787e-05/0.5305, allocations: 26.17 kB / 362.1 MB, free: 2.699 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.0003782/0.5309, allocations: 163.7 kB / 362.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.531, allocations: 39.53 kB / 362.3 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001667/0.5312, allocations: 59.92 kB / 362.3 MB, free: 2.492 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.5312, allocations: 4 kB / 362.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.5312, allocations: 4 kB / 362.3 MB, free: 2.484 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.5313, allocations: 7.938 kB / 362.3 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005004/0.5363, allocations: 1.572 MB / 363.9 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.5363, allocations: 0 / 363.9 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007479/0.5371, allocations: 95.3 kB / 364 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.5385, allocations: 0.4993 MB / 364.5 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.84e-05/0.5387, allocations: 33.22 kB / 364.5 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.5406, allocations: 1.365 MB / 365.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.5406, allocations: 4.031 kB / 365.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003946/0.5446, allocations: 1.191 MB / 367.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003941/0.545, allocations: 163.4 kB / 367.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.5452, allocations: 22.8 kB / 367.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008003/0.546, allocations: 82.31 kB / 367.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/0.5464, allocations: 114.7 kB / 367.5 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.465e-05/0.5465, allocations: 27.22 kB / 367.5 MB, free: 14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003124/0.5468, allocations: 199.3 kB / 367.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5468, allocations: 0 / 367.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007447/0.5476, allocations: 132.6 kB / 367.8 MB, free: 13.73 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.0003309/0.5479, allocations: 143.9 kB / 368 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.5503, allocations: 0.5937 MB / 368.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.5503, allocations: 0 / 368.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.5515, allocations: 341.3 kB / 368.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007548/0.5523, allocations: 59.03 kB / 368.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006857/0.5592, allocations: 1.777 MB / 370.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.5598, allocations: 0.8326 MB / 371.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003452/0.5601, allocations: 47.25 kB / 371.6 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.5603, allocations: 27.44 kB / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of SimCode: time 1.011e-06/0.5603, allocations: 0 / 371.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of Templates: time 0.02284/0.5832, allocations: 8.14 MB / 379.8 MB, free: 2.105 MB / 298.7 MB