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.ForUsersGuide.SupportTorque1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadModel(ModelicaTest): time 2.159/2.159, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.902e-05, allocations: 3.984 kB / 309.7 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3193, allocations: 54.85 MB / 364.5 MB, free: 5.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.4455, allocations: 83.19 MB / 447.7 MB, free: 13.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.4458, allocations: 75.95 kB / 447.8 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01835/0.4642, allocations: 4.298 MB / 452.1 MB, free: 8.867 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4642, allocations: 4.688 kB / 452.1 MB, free: 8.863 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.905e-05/0.4643, allocations: 4 kB / 452.1 MB, free: 8.859 MB / 378.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.0009955/0.4653, allocations: 0.5061 MB / 452.6 MB, free: 8.309 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.4653, allocations: 8.031 kB / 452.6 MB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.875e-05/0.4654, allocations: 23.72 kB / 452.6 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.4658, allocations: 236 kB / 452.9 MB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/0.4659, allocations: 20.44 kB / 452.9 MB, free: 7.988 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.728e-05/0.466, allocations: 24.44 kB / 452.9 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.4666, allocations: 240.2 kB / 453.1 MB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.4667, allocations: 3.906 kB / 453.2 MB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.603e-05/0.4667, allocations: 15.95 kB / 453.2 MB, free: 7.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.4667, allocations: 11.92 kB / 453.2 MB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005293/0.4673, allocations: 197.7 kB / 453.4 MB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.4691, allocations: 0.7054 MB / 454.1 MB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005186/0.4697, allocations: 209 kB / 454.3 MB, free: 6.531 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003162/0.47, allocations: 137.2 kB / 454.4 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.4701, allocations: 240 / 454.4 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.4701, allocations: 42.8 kB / 454.5 MB, free: 6.344 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.726e-06/0.4701, allocations: 0 / 454.5 MB, free: 6.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002999/0.4731, allocations: 1.156 MB / 455.6 MB, free: 5.094 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.4732, allocations: 59.36 kB / 455.7 MB, free: 5.023 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.4735, allocations: 165.8 kB / 455.8 MB, free: 4.855 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.286e-05/0.4735, allocations: 37.7 kB / 455.9 MB, free: 4.812 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.4737, allocations: 183.1 kB / 456 MB, free: 4.633 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.4738, allocations: 126.3 kB / 456.2 MB, free: 4.508 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.4739, allocations: 4 kB / 456.2 MB, free: 4.504 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.474, allocations: 322.9 kB / 456.5 MB, free: 4.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.4743, allocations: 112 kB / 456.6 MB, free: 4.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.4747, allocations: 155.2 kB / 456.8 MB, free: 3.906 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.475, allocations: 93.02 kB / 456.8 MB, free: 3.816 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.105e-06/0.475, allocations: 7.938 kB / 456.9 MB, free: 3.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001014/0.476, allocations: 394 kB / 457.2 MB, free: 3.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.4761, allocations: 5.875 kB / 457.2 MB, free: 3.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.4761, allocations: 4 kB / 457.2 MB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006133/0.4767, allocations: 184.8 kB / 457.4 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003334/0.4771, allocations: 51.97 kB / 457.5 MB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000998/0.4781, allocations: 0.7123 MB / 458.2 MB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.4785, allocations: 52.02 kB / 458.2 MB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.4786, allocations: 12 kB / 458.3 MB, free: 2.371 MB / 378.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 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001745/0.4787, allocations: 121.6 kB / 458.4 MB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.776e-05/0.4788, allocations: 27.67 kB / 458.4 MB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.4801, allocations: 429.1 kB / 458.8 MB, free: 1.793 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4801, allocations: 7.984 kB / 458.8 MB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.065e-06/0.4801, allocations: 0 / 458.8 MB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.685e-06/0.4801, allocations: 3.984 kB / 458.8 MB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.4822, allocations: 0.9178 MB / 459.7 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.205e-06/0.4823, allocations: 0 / 459.7 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.4826, allocations: 55.97 kB / 459.8 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005386/0.4832, allocations: 168.7 kB / 460 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.313e-05/0.4833, allocations: 11.98 kB / 460 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008879/0.4842, allocations: 0.6772 MB / 460.7 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.274e-06/0.4842, allocations: 0 / 460.7 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.4857, allocations: 0.6297 MB / 461.3 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.4859, allocations: 120.9 kB / 461.4 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.486, allocations: 15.98 kB / 461.4 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003839/0.4864, allocations: 48.03 kB / 461.5 MB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.4865, allocations: 51.88 kB / 461.5 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.81e-05/0.4866, allocations: 19.98 kB / 461.5 MB, free: 14.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001781/0.4868, allocations: 131.4 kB / 461.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.23e-07/0.4868, allocations: 0 / 461.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000548/0.4874, allocations: 87.88 kB / 461.7 MB, free: 14.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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.0002659/0.4877, allocations: 131.7 kB / 461.9 MB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009113/0.4886, allocations: 318.1 kB / 462.2 MB, free: 14.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.4886, allocations: 3.938 kB / 462.2 MB, free: 14.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004337/0.4891, allocations: 147.9 kB / 462.3 MB, free: 14.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.4895, allocations: 28.38 kB / 462.4 MB, free: 14.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/0.4919, allocations: 0.7083 MB / 463.1 MB, free: 13.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005867/0.4926, allocations: 0.7605 MB / 463.8 MB, free: 12.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.377e-05/0.4927, allocations: 23.44 kB / 463.9 MB, free: 12.51 MB / 394.7 MB Notification: Performance of SimCode: time 2.119e-06/0.4927, allocations: 0 / 463.9 MB, free: 12.51 MB / 394.7 MB Notification: Performance of Templates: time 0.008466/0.5012, allocations: 3.969 MB / 467.8 MB, free: 8.547 MB / 394.7 MB