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.ForUsersGuide.SupportTorque1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadModel(ModelicaTest): time 1.825/1.825, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004459/0.000446, allocations: 16 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3112, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.4299, allocations: 76.89 MB / 408.2 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/0.4302, allocations: 71.97 kB / 408.2 MB, free: 1.461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01971/0.45, allocations: 4.329 MB / 412.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.29e-06/0.45, allocations: 0 / 412.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.067e-05/0.4501, allocations: 8 kB / 412.6 MB, free: 13.12 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001029/0.4511, allocations: 0.5301 MB / 413.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.4511, allocations: 8.031 kB / 413.1 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.626e-05/0.4512, allocations: 27.72 kB / 413.1 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.4516, allocations: 235.3 kB / 413.4 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/0.4517, allocations: 20.44 kB / 413.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.154e-05/0.4518, allocations: 31.89 kB / 413.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006838/0.4525, allocations: 259.1 kB / 413.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.4525, allocations: 4 kB / 413.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.4526, allocations: 11.94 kB / 413.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.4526, allocations: 8 kB / 413.7 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006942/0.4533, allocations: 237.5 kB / 413.9 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.4551, allocations: 0.7363 MB / 414.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007244/0.4558, allocations: 254.4 kB / 414.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.453e-05/0.4559, allocations: 4.078 kB / 414.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.4559, allocations: 34.5 kB / 414.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 3.723e-06/0.456, allocations: 0 / 414.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004523/0.4605, allocations: 1.565 MB / 416.5 MB, free: 8.902 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.4606, allocations: 55.41 kB / 416.6 MB, free: 8.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.4609, allocations: 173.7 kB / 416.7 MB, free: 8.656 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.502e-05/0.4609, allocations: 33.7 kB / 416.8 MB, free: 8.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.4611, allocations: 203 kB / 417 MB, free: 8.414 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.4613, allocations: 110.4 kB / 417.1 MB, free: 8.305 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-05/0.4613, allocations: 8 kB / 417.1 MB, free: 8.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4615, allocations: 326.8 kB / 417.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000375/0.4619, allocations: 123.9 kB / 417.5 MB, free: 7.848 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004098/0.4623, allocations: 174.9 kB / 417.7 MB, free: 7.664 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003465/0.4627, allocations: 108 kB / 417.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.535e-06/0.4627, allocations: 7.953 kB / 417.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001428/0.4641, allocations: 0.4918 MB / 418.3 MB, free: 7.051 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.4642, allocations: 8.578 kB / 418.3 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.995e-06/0.4642, allocations: 4 kB / 418.3 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007298/0.4649, allocations: 248.6 kB / 418.6 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.4653, allocations: 55.84 kB / 418.6 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.4664, allocations: 0.7475 MB / 419.4 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/0.4668, allocations: 51.98 kB / 419.4 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.4669, allocations: 8 kB / 419.4 MB, free: 5.906 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002571/0.4671, allocations: 153.8 kB / 419.6 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.4673, allocations: 23.72 kB / 419.6 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.797e-05/0.4674, allocations: 34.66 kB / 419.6 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.4674, allocations: 3.938 kB / 419.6 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.864e-06/0.4674, allocations: 4 kB / 419.6 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.634e-06/0.4674, allocations: 3.984 kB / 419.6 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.4699, allocations: 0.9993 MB / 420.6 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.823e-06/0.47, allocations: 3.984 kB / 420.6 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.4703, allocations: 47.92 kB / 420.7 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006245/0.4709, allocations: 228.7 kB / 420.9 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.471, allocations: 15.92 kB / 420.9 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009649/0.472, allocations: 0.7084 MB / 421.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.76e-06/0.472, allocations: 0 / 421.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.4738, allocations: 0.7016 MB / 422.3 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.474, allocations: 124.8 kB / 422.5 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.657e-05/0.4741, allocations: 15.98 kB / 422.5 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/0.4745, allocations: 47.92 kB / 422.5 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.4747, allocations: 59.94 kB / 422.6 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.4747, allocations: 12 kB / 422.6 MB, free: 2.582 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002068/0.475, allocations: 144.2 kB / 422.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.26e-07/0.475, allocations: 0 / 422.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005427/0.4755, allocations: 83.92 kB / 422.8 MB, free: 2.359 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002501/0.4758, allocations: 127.2 kB / 422.9 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001/0.4768, allocations: 312 kB / 423.2 MB, free: 1.922 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.964e-06/0.4768, allocations: 0 / 423.2 MB, free: 1.922 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004944/0.4773, allocations: 172 kB / 423.4 MB, free: 1.754 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.4777, allocations: 25.39 kB / 423.4 MB, free: 1.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.4803, allocations: 0.9598 MB / 424.4 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005094/0.4809, allocations: 0.7646 MB / 425.2 MB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.481, allocations: 23.44 kB / 425.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of SimCode: time 4.115e-06/0.481, allocations: 0 / 425.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of Templates: time 0.007986/0.489, allocations: 3.768 MB / 428.9 MB, free: 12.15 MB / 362.7 MB