Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.Friction.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) 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.2_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.879/1.879, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003552, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.0953, allocations: 44.51 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4128/0.5082, allocations: 76.1 MB / 385.1 MB, free: 14.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.5085, allocations: 74.47 kB / 385.1 MB, free: 14.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03466/0.5432, allocations: 7.51 MB / 392.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5432, allocations: 0 / 392.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.387e-05/0.5433, allocations: 23.56 kB / 392.7 MB, free: 14 MB / 314.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.002134/0.5454, allocations: 0.7275 MB / 393.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.5455, allocations: 7.75 kB / 393.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002062/0.5457, allocations: 53.56 kB / 393.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.5462, allocations: 305.3 kB / 393.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.5463, allocations: 29.91 kB / 393.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.5464, allocations: 40.69 kB / 393.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.5479, allocations: 461.7 kB / 394.3 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.845e-05/0.5479, allocations: 4 kB / 394.3 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.181e-05/0.548, allocations: 18.17 kB / 394.3 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.548, allocations: 11.62 kB / 394.3 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.5495, allocations: 445.2 kB / 394.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003555/0.5531, allocations: 1.163 MB / 395.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.5545, allocations: 402.7 kB / 396.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.934e-05/0.5546, allocations: 15.39 kB / 396.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.5547, allocations: 42.73 kB / 396.4 MB, free: 12.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 3.176e-06/0.5547, allocations: 0 / 396.4 MB, free: 12.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.008461/0.5632, allocations: 2.346 MB / 398.7 MB, free: 11.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.5633, allocations: 59.78 kB / 398.8 MB, free: 11.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00045/0.5637, allocations: 265.9 kB / 399 MB, free: 11.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.5639, allocations: 41.86 kB / 399.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.564, allocations: 233.4 kB / 399.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.5642, allocations: 196.6 kB / 399.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/0.5643, allocations: 9.875 kB / 399.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.5644, allocations: 339.5 kB / 399.8 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007914/0.5652, allocations: 224.9 kB / 400 MB, free: 11.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007761/0.566, allocations: 272.9 kB / 400.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000646/0.5667, allocations: 181.8 kB / 400.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5667, allocations: 0 / 400.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002684/0.5694, allocations: 0.7295 MB / 401.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.5694, allocations: 3.875 kB / 401.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/0.5695, allocations: 7.812 kB / 401.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.5707, allocations: 399.3 kB / 401.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006799/0.5715, allocations: 85.83 kB / 401.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.5731, allocations: 1.326 MB / 403 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.5742, allocations: 107.3 kB / 403.1 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.5743, allocations: 26.03 kB / 403.2 MB, free: 9.867 MB / 314.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): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0003859/0.5747, allocations: 165.8 kB / 403.3 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.5749, allocations: 42.53 kB / 403.4 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002647/0.5775, allocations: 0.7476 MB / 404.1 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.5776, allocations: 7.734 kB / 404.1 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.5776, allocations: 0 / 404.1 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.5776, allocations: 0 / 404.1 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004208/0.5819, allocations: 1.391 MB / 405.5 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.5819, allocations: 7.922 kB / 405.5 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007381/0.5827, allocations: 85.23 kB / 405.6 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.5839, allocations: 384.2 kB / 406 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.584, allocations: 25.25 kB / 406 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001497/0.5855, allocations: 1.3 MB / 407.3 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.5856, allocations: 0 / 407.3 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003374/0.589, allocations: 1.024 MB / 408.3 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.5894, allocations: 161.8 kB / 408.5 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.5896, allocations: 23.53 kB / 408.5 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007873/0.5904, allocations: 84.03 kB / 408.6 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003306/0.5907, allocations: 113.6 kB / 408.7 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.303e-05/0.5908, allocations: 28.86 kB / 408.7 MB, free: 7.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002719/0.5911, allocations: 190 kB / 408.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5911, allocations: 0 / 408.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007564/0.5919, allocations: 136.5 kB / 409 MB, free: 7.645 MB / 314.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.0003241/0.5922, allocations: 154.3 kB / 409.2 MB, free: 7.539 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.5943, allocations: 0.6167 MB / 409.8 MB, free: 7.449 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.5944, allocations: 0 / 409.8 MB, free: 7.449 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.5956, allocations: 323.2 kB / 410.1 MB, free: 7.434 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008922/0.5966, allocations: 75.89 kB / 410.2 MB, free: 7.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006569/0.6032, allocations: 1.795 MB / 412 MB, free: 6.277 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.6035, allocations: 0.829 MB / 412.8 MB, free: 5.512 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/0.6038, allocations: 34.48 kB / 412.9 MB, free: 5.504 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.6038, allocations: 4 kB / 412.9 MB, free: 5.5 MB / 314.7 MB Notification: Performance of Templates: time 0.01607/0.6199, allocations: 8.226 MB / 421.1 MB, free: 1.336 MB / 314.7 MB