Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 2.199/2.199, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.013e-05/2.033e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2769, allocations: 54.85 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.4082, allocations: 85.75 MB / 443.8 MB, free: 9.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.4084, allocations: 63.97 kB / 443.8 MB, free: 8.988 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04948/0.4579, allocations: 11.66 MB / 455.5 MB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.236e-06/0.458, allocations: 0 / 455.5 MB, free: 13.28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.487e-05/0.4581, allocations: 19.92 kB / 455.5 MB, free: 13.26 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002433/0.4605, allocations: 0.9389 MB / 456.5 MB, free: 12.28 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.4606, allocations: 8.031 kB / 456.5 MB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002311/0.4608, allocations: 79.06 kB / 456.5 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007991/0.4616, allocations: 402.9 kB / 456.9 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.316e-05/0.4617, allocations: 20 kB / 457 MB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.4618, allocations: 43.89 kB / 457 MB, free: 11.69 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001554/0.4634, allocations: 0.5765 MB / 457.6 MB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.465, allocations: 0.6598 MB / 458.2 MB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.647e-05/0.4651, allocations: 7.891 kB / 458.2 MB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.374e-05/0.4652, allocations: 4 kB / 458.3 MB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.4652, allocations: 16 kB / 458.3 MB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005865/0.4711, allocations: 2.472 MB / 460.7 MB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.4725, allocations: 0.538 MB / 461.3 MB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006917/0.4732, allocations: 320.8 kB / 461.6 MB, free: 6.914 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.146e-05/0.4733, allocations: 11.98 kB / 461.6 MB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.4734, allocations: 54.62 kB / 461.7 MB, free: 6.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.451e-06/0.4734, allocations: 0 / 461.7 MB, free: 6.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.006463/0.4799, allocations: 2.32 MB / 464 MB, free: 4.324 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.423e-05/0.48, allocations: 136.5 kB / 464.1 MB, free: 4.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005382/0.4806, allocations: 305.2 kB / 464.4 MB, free: 3.859 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002158/0.4808, allocations: 37.69 kB / 464.4 MB, free: 3.816 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/0.4811, allocations: 315 kB / 464.8 MB, free: 3.504 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004323/0.4816, allocations: 280.2 kB / 465 MB, free: 3.227 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.365e-05/0.4816, allocations: 0 / 465 MB, free: 3.227 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.4819, allocations: 350.8 kB / 465.4 MB, free: 2.875 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007699/0.4826, allocations: 290.6 kB / 465.7 MB, free: 2.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009053/0.4836, allocations: 452.8 kB / 466.1 MB, free: 2.094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009992/0.4846, allocations: 271.3 kB / 466.4 MB, free: 1.832 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.681e-06/0.4846, allocations: 0 / 466.4 MB, free: 1.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003495/0.4881, allocations: 1.028 MB / 467.4 MB, free: 0.7891 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.185e-05/0.4882, allocations: 8 kB / 467.4 MB, free: 0.7812 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.083e-05/0.4882, allocations: 4 kB / 467.4 MB, free: 0.7773 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.4899, allocations: 0.5893 MB / 468 MB, free: 180 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007686/0.4907, allocations: 155.7 kB / 468.1 MB, free: 24 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2457/0.7363, allocations: 2.639 MB / 470.8 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.7377, allocations: 179.9 kB / 471 MB, free: 93.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.7378, allocations: 42.05 kB / 471 MB, free: 93.81 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.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: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003278/0.7382, allocations: 140.8 kB / 471.1 MB, free: 93.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.7384, allocations: 65.86 kB / 471.2 MB, free: 93.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00318/0.7416, allocations: 0.9741 MB / 472.2 MB, free: 93.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/0.7417, allocations: 13.95 kB / 472.2 MB, free: 93.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.363e-06/0.7417, allocations: 1.562 kB / 472.2 MB, free: 93.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.7417, allocations: 6.156 kB / 472.2 MB, free: 93.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004552/0.7463, allocations: 1.894 MB / 474.1 MB, free: 93.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.992e-06/0.7463, allocations: 4.594 kB / 474.1 MB, free: 93.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007776/0.7471, allocations: 125.8 kB / 474.2 MB, free: 93.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.7485, allocations: 0.546 MB / 474.8 MB, free: 93.01 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.7487, allocations: 26.11 kB / 474.8 MB, free: 93.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002503/0.7512, allocations: 2.591 MB / 477.4 MB, free: 90.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.959e-06/0.7512, allocations: 2.75 kB / 477.4 MB, free: 90.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003307/0.7545, allocations: 1.589 MB / 479 MB, free: 90.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004064/0.755, allocations: 212.3 kB / 479.2 MB, free: 90.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.7551, allocations: 24.92 kB / 479.2 MB, free: 90.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.7562, allocations: 161.6 kB / 479.4 MB, free: 90.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003961/0.7567, allocations: 172 kB / 479.5 MB, free: 90.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.7568, allocations: 36.02 kB / 479.6 MB, free: 90.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002919/0.7571, allocations: 247.6 kB / 479.8 MB, free: 90.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.472e-06/0.7571, allocations: 0 / 479.8 MB, free: 90.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009896/0.7581, allocations: 172.4 kB / 480 MB, free: 90.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002808/0.7584, allocations: 150.4 kB / 480.1 MB, free: 90.07 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001871/0.7603, allocations: 0.8774 MB / 481 MB, free: 89.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.485e-06/0.7603, allocations: 0 / 481 MB, free: 89.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.7615, allocations: 450.5 kB / 481.4 MB, free: 89.53 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008666/0.7624, allocations: 89.05 kB / 481.5 MB, free: 89.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005053/0.7675, allocations: 1.998 MB / 483.5 MB, free: 88.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.7679, allocations: 0.925 MB / 484.4 MB, free: 87.86 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.7681, allocations: 47.2 kB / 484.5 MB, free: 87.85 MB / 394.7 MB Notification: Performance of SimCode: time 1.69e-06/0.7682, allocations: 4 kB / 484.5 MB, free: 87.84 MB / 394.7 MB Notification: Performance of Templates: time 0.01962/0.7878, allocations: 16.35 MB / 0.4891 GB, free: 76.75 MB / 394.7 MB