Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadModel(ModelicaTest): time 1.978/1.978, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.872e-05/1.894e-05, allocations: 4 kB / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2593, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.3816, allocations: 79.34 MB / 399.3 MB, free: 1.098 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.3819, allocations: 63.97 kB / 399.4 MB, free: 1.035 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04937/0.4313, allocations: 11.46 MB / 410.9 MB, free: 5.547 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.497e-06/0.4314, allocations: 0 / 410.9 MB, free: 5.547 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.496e-05/0.4314, allocations: 20 kB / 410.9 MB, free: 5.527 MB / 346.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.002499/0.4339, allocations: 0.942 MB / 411.8 MB, free: 4.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.434, allocations: 12.03 kB / 411.8 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.4343, allocations: 83.02 kB / 411.9 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008532/0.4351, allocations: 410.8 kB / 412.3 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.575e-05/0.4352, allocations: 28 kB / 412.3 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.4354, allocations: 40 kB / 412.4 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001659/0.437, allocations: 0.639 MB / 413 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.4387, allocations: 0.6944 MB / 413.7 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.026e-05/0.4388, allocations: 7.906 kB / 413.7 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.032e-05/0.4389, allocations: 8 kB / 413.7 MB, free: 2.555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.4389, allocations: 12 kB / 413.7 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00595/0.4448, allocations: 2.493 MB / 416.2 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.4464, allocations: 0.5544 MB / 416.8 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007128/0.4471, allocations: 316.9 kB / 417.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.044e-05/0.4472, allocations: 12.67 kB / 417.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.4473, allocations: 55.23 kB / 417.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 4.416e-06/0.4473, allocations: 0 / 417.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=76): time 0.006464/0.4538, allocations: 2.464 MB / 419.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.734e-05/0.4539, allocations: 136.5 kB / 419.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006177/0.4546, allocations: 345.2 kB / 420.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.4547, allocations: 37.7 kB / 420.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.455, allocations: 330.9 kB / 420.5 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.4554, allocations: 260.4 kB / 420.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.887e-05/0.4555, allocations: 0 / 420.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.4557, allocations: 350.8 kB / 421.1 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008019/0.4565, allocations: 330.6 kB / 421.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000943/0.4575, allocations: 482.9 kB / 421.9 MB, free: 9.969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009794/0.4585, allocations: 285.5 kB / 422.1 MB, free: 9.691 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.068e-06/0.4585, allocations: 7.875 kB / 422.1 MB, free: 9.684 MB / 362.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003454/0.462, allocations: 1.182 MB / 423.3 MB, free: 8.488 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.462, allocations: 9.719 kB / 423.3 MB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.462, allocations: 4 kB / 423.3 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001962/0.464, allocations: 0.7763 MB / 424.1 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008349/0.4649, allocations: 163.7 kB / 424.3 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003687/0.4686, allocations: 2.752 MB / 427 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.4699, allocations: 179.9 kB / 427.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.4701, allocations: 47.92 kB / 427.2 MB, free: 4.449 MB / 362.7 MB 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 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: 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: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" 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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003775/0.4704, allocations: 146.4 kB / 427.4 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/0.4707, allocations: 63.25 kB / 427.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/0.471, allocations: 79.75 kB / 427.5 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.471, allocations: 11.95 kB / 427.5 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.471, allocations: 0 / 427.5 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.471, allocations: 3.984 kB / 427.5 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00565/0.4767, allocations: 2.115 MB / 429.7 MB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.85e-06/0.4768, allocations: 0 / 429.7 MB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007907/0.4776, allocations: 127.8 kB / 429.8 MB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.4794, allocations: 0.7371 MB / 430.5 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.4795, allocations: 23.97 kB / 430.5 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00356/0.4831, allocations: 2.693 MB / 433.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.956e-06/0.4832, allocations: 4.031 kB / 433.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004184/0.4874, allocations: 1.747 MB / 435 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005481/0.4879, allocations: 216.2 kB / 435.2 MB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/0.4882, allocations: 20 kB / 435.2 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.4894, allocations: 159.8 kB / 435.4 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004716/0.4898, allocations: 167.6 kB / 435.5 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.49, allocations: 43.89 kB / 435.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004467/0.4904, allocations: 271 kB / 435.8 MB, free: 11.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.71e-07/0.4905, allocations: 0 / 435.8 MB, free: 11.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001102/0.4916, allocations: 163.9 kB / 436 MB, free: 11.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.0003478/0.4919, allocations: 139.4 kB / 436.1 MB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002168/0.4941, allocations: 0.8005 MB / 436.9 MB, free: 10.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4941, allocations: 0 / 436.9 MB, free: 10.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.4955, allocations: 443.5 kB / 437.4 MB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009557/0.4964, allocations: 83.48 kB / 437.5 MB, free: 9.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005981/0.5024, allocations: 2.006 MB / 439.5 MB, free: 7.926 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007617/0.5032, allocations: 0.9186 MB / 440.4 MB, free: 6.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.5036, allocations: 51.42 kB / 440.4 MB, free: 6.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.954e-06/0.5036, allocations: 0 / 440.4 MB, free: 6.93 MB / 378.7 MB Notification: Performance of Templates: time 0.2792/0.7827, allocations: 15.77 MB / 456.2 MB, free: 108.6 MB / 378.7 MB