Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003738, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08851/0.08891, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3652/0.4541, allocations: 70.77 MB / 343.3 MB, free: 3.289 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/0.4545, allocations: 87.83 kB / 343.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03569/0.4902, allocations: 7.477 MB / 350.9 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4903, allocations: 4 kB / 350.9 MB, free: 12.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.024e-05/0.4903, allocations: 8 kB / 350.9 MB, free: 12.79 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.00217/0.4925, allocations: 0.7334 MB / 351.6 MB, free: 12.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.4926, allocations: 8.031 kB / 351.6 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.4927, allocations: 51.34 kB / 351.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005812/0.4933, allocations: 315.6 kB / 352 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.353e-05/0.4934, allocations: 35.45 kB / 352 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.4935, allocations: 42.78 kB / 352.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.495, allocations: 473.2 kB / 352.5 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/0.495, allocations: 8 kB / 352.5 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.186e-05/0.4951, allocations: 17.25 kB / 352.5 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.4951, allocations: 8 kB / 352.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.4968, allocations: 487.2 kB / 353 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003684/0.5005, allocations: 1.158 MB / 354.2 MB, free: 9.934 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.5019, allocations: 391.9 kB / 354.6 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.005e-05/0.502, allocations: 8.438 kB / 354.6 MB, free: 9.652 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.502, allocations: 41.25 kB / 354.6 MB, free: 9.609 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.276e-06/0.502, allocations: 0 / 354.6 MB, free: 9.609 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.00887/0.5109, allocations: 2.472 MB / 357.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.511, allocations: 55.97 kB / 357.1 MB, free: 7.41 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004642/0.5115, allocations: 287.4 kB / 357.4 MB, free: 7.172 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.809e-05/0.5116, allocations: 46.95 kB / 357.5 MB, free: 7.133 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.5118, allocations: 242.9 kB / 357.7 MB, free: 6.922 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002358/0.5121, allocations: 198 kB / 357.9 MB, free: 6.758 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.759e-05/0.5121, allocations: 14.48 kB / 357.9 MB, free: 6.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5123, allocations: 328.9 kB / 358.2 MB, free: 6.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008442/0.5132, allocations: 242.9 kB / 358.5 MB, free: 6.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009095/0.5141, allocations: 296.8 kB / 358.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007323/0.5148, allocations: 208.2 kB / 359 MB, free: 5.938 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.5149, allocations: 4 kB / 359 MB, free: 5.934 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003188/0.518, allocations: 0.8766 MB / 359.9 MB, free: 5.254 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.5181, allocations: 13.03 kB / 359.9 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.5181, allocations: 0 / 359.9 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/0.5197, allocations: 0.5263 MB / 360.4 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006941/0.5204, allocations: 95.14 kB / 360.5 MB, free: 4.719 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00193/0.5223, allocations: 1.38 MB / 361.9 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.5234, allocations: 102.9 kB / 362 MB, free: 3.328 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.685e-05/0.5235, allocations: 27.19 kB / 362 MB, free: 3.305 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.0004231/0.524, allocations: 169.5 kB / 362.2 MB, free: 3.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.5241, allocations: 39.53 kB / 362.2 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.5243, allocations: 59.8 kB / 362.3 MB, free: 3.094 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.5243, allocations: 4 kB / 362.3 MB, free: 3.09 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.5243, allocations: 4 kB / 362.3 MB, free: 3.086 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.5243, allocations: 7.938 kB / 362.3 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005039/0.5294, allocations: 1.576 MB / 363.8 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.5294, allocations: 4 kB / 363.8 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007426/0.5302, allocations: 83.89 kB / 363.9 MB, free: 1.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.5316, allocations: 0.5137 MB / 364.4 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.469e-05/0.5317, allocations: 22.91 kB / 364.5 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/0.5335, allocations: 1.367 MB / 365.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5336, allocations: 0 / 365.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003956/0.5375, allocations: 1.195 MB / 367 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003864/0.5379, allocations: 170.6 kB / 367.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.5381, allocations: 17.44 kB / 367.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007839/0.5389, allocations: 81.36 kB / 367.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003464/0.5393, allocations: 113.2 kB / 367.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.383e-05/0.5394, allocations: 30.42 kB / 367.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003255/0.5397, allocations: 201.8 kB / 367.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5397, allocations: 3.938 kB / 367.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007205/0.5405, allocations: 131.3 kB / 367.8 MB, free: 14.32 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.0003065/0.5408, allocations: 146.6 kB / 367.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.5428, allocations: 0.5838 MB / 368.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5428, allocations: 0 / 368.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.5439, allocations: 332.6 kB / 368.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007064/0.5447, allocations: 69.08 kB / 368.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/0.5514, allocations: 1.81 MB / 370.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.5519, allocations: 0.8326 MB / 371.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.5522, allocations: 35.42 kB / 371.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5522, allocations: 0 / 371.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of Templates: time 0.0167/0.5689, allocations: 7.872 MB / 379.4 MB, free: 2.984 MB / 298.7 MB