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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.647/1.647, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.9e-05, allocations: 8 kB / 222.5 MB, free: 8.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07053/0.07057, allocations: 38.76 MB / 261.3 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2815/0.3521, allocations: 70.05 MB / 331.3 MB, free: 2.293 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.3524, allocations: 68.78 kB / 331.4 MB, free: 2.262 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03065/0.383, allocations: 7.39 MB / 338.8 MB, free: 12.01 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.936e-06/0.3831, allocations: 3.938 kB / 338.8 MB, free: 12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.253e-05/0.3831, allocations: 16 kB / 338.8 MB, free: 11.99 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.001547/0.3847, allocations: 0.6897 MB / 339.5 MB, free: 11.28 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3847, allocations: 12.03 kB / 339.5 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.3849, allocations: 55.42 kB / 339.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005438/0.3855, allocations: 312.1 kB / 339.9 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.3855, allocations: 12 kB / 339.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.3856, allocations: 27.95 kB / 339.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001005/0.3866, allocations: 413.8 kB / 340.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009505/0.3876, allocations: 395 kB / 340.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.243e-05/0.3877, allocations: 4 kB / 340.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.502e-05/0.3877, allocations: 0 / 340.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.3878, allocations: 8 kB / 340.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.3906, allocations: 1.089 MB / 341.8 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008534/0.3915, allocations: 349.4 kB / 342.1 MB, free: 9.137 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/0.392, allocations: 230 kB / 342.4 MB, free: 8.988 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.132e-05/0.3921, allocations: 16.3 kB / 342.4 MB, free: 8.977 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.3921, allocations: 31 kB / 342.4 MB, free: 8.934 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.959e-06/0.3922, allocations: 0 / 342.4 MB, free: 8.934 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.004634/0.3968, allocations: 1.651 MB / 344.1 MB, free: 7.484 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.3969, allocations: 66.97 kB / 344.1 MB, free: 7.41 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.3972, allocations: 211.5 kB / 344.3 MB, free: 7.234 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.959e-05/0.3973, allocations: 32.83 kB / 344.4 MB, free: 7.199 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000176/0.3975, allocations: 240.3 kB / 344.6 MB, free: 6.988 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.3977, allocations: 199 kB / 344.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.275e-05/0.3978, allocations: 0 / 344.8 MB, free: 6.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.398, allocations: 337.8 kB / 345.1 MB, free: 6.492 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004613/0.3985, allocations: 202.6 kB / 345.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005265/0.399, allocations: 250.2 kB / 345.6 MB, free: 6.211 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005804/0.3996, allocations: 183.5 kB / 345.7 MB, free: 6.09 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.649e-06/0.3996, allocations: 0 / 345.7 MB, free: 6.09 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002395/0.402, allocations: 0.7912 MB / 346.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.4021, allocations: 8 kB / 346.5 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4021, allocations: 0 / 346.5 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.4034, allocations: 0.5013 MB / 347 MB, free: 5.031 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005065/0.4039, allocations: 103.7 kB / 347.1 MB, free: 4.934 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.4059, allocations: 1.434 MB / 348.6 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007034/0.4066, allocations: 92.03 kB / 348.7 MB, free: 3.504 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.751e-05/0.4068, allocations: 19.62 kB / 348.7 MB, free: 3.488 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002927/0.4071, allocations: 132.2 kB / 348.8 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.4072, allocations: 39.53 kB / 348.8 MB, free: 3.316 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.4074, allocations: 52.11 kB / 348.9 MB, free: 3.293 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.4074, allocations: 8 kB / 348.9 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.827e-06/0.4074, allocations: 0 / 348.9 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.4074, allocations: 3.984 kB / 348.9 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003921/0.4114, allocations: 1.422 MB / 350.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.938e-06/0.4114, allocations: 0 / 350.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005277/0.4119, allocations: 86.52 kB / 350.4 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.4131, allocations: 0.4889 MB / 350.9 MB, free: 1.574 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.412e-05/0.4132, allocations: 14.91 kB / 350.9 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/0.4151, allocations: 1.401 MB / 352.3 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.155e-06/0.4151, allocations: 3.938 kB / 352.3 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.4178, allocations: 1.091 MB / 353.4 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003485/0.4182, allocations: 168.6 kB / 353.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/0.4183, allocations: 12 kB / 353.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005993/0.4189, allocations: 67.94 kB / 353.7 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/0.4192, allocations: 112.1 kB / 353.8 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.072e-05/0.4193, allocations: 31.97 kB / 353.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002362/0.4196, allocations: 170 kB / 354 MB, free: 14.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.35e-07/0.4196, allocations: 0 / 354 MB, free: 14.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006659/0.4203, allocations: 123.9 kB / 354.1 MB, free: 14.44 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.000301/0.4206, allocations: 135.2 kB / 354.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.4219, allocations: 0.5052 MB / 354.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.635e-06/0.4219, allocations: 0 / 354.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007744/0.4227, allocations: 289.7 kB / 355 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006376/0.4234, allocations: 60.83 kB / 355.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004419/0.4278, allocations: 1.327 MB / 356.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005794/0.4285, allocations: 0.8325 MB / 357.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.4287, allocations: 31.42 kB / 357.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of SimCode: time 1.625e-06/0.4287, allocations: 0 / 357.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of Templates: time 0.01432/0.443, allocations: 7.782 MB / 365 MB, free: 3.406 MB / 298.7 MB