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.106/2.106, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000441/0.0004411, allocations: 11.98 kB / 314.4 MB, free: 9.559 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2775, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.4037, allocations: 83.27 MB / 452.5 MB, free: 7.324 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.404, allocations: 79.89 kB / 452.6 MB, free: 7.246 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01789/0.4219, allocations: 4.292 MB / 456.9 MB, free: 2.938 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.203e-06/0.4219, allocations: 0 / 456.9 MB, free: 2.938 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.422, allocations: 4 kB / 456.9 MB, free: 2.934 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.0009981/0.423, allocations: 0.5339 MB / 457.4 MB, free: 2.352 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.423, allocations: 12.03 kB / 457.5 MB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.813e-05/0.4231, allocations: 23.72 kB / 457.5 MB, free: 2.316 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003519/0.4235, allocations: 238.6 kB / 457.7 MB, free: 2.043 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.4236, allocations: 20.44 kB / 457.7 MB, free: 2.023 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.4236, allocations: 23.94 kB / 457.8 MB, free: 2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006861/0.4243, allocations: 251.2 kB / 458 MB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.4244, allocations: 3.906 kB / 458 MB, free: 1.746 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/0.4244, allocations: 11.95 kB / 458 MB, free: 1.734 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.4245, allocations: 8 kB / 458 MB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006672/0.4251, allocations: 217.6 kB / 458.2 MB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.4272, allocations: 0.7053 MB / 458.9 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006066/0.4279, allocations: 227.2 kB / 459.2 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.994e-05/0.4279, allocations: 8.219 kB / 459.2 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.428, allocations: 30.8 kB / 459.2 MB, free: 488 kB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 5.579e-06/0.428, allocations: 0 / 459.2 MB, free: 488 kB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.004346/0.4323, allocations: 1.488 MB / 460.7 MB, free: 14.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.4324, allocations: 59.36 kB / 460.8 MB, free: 14.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002376/0.4327, allocations: 165.7 kB / 460.9 MB, free: 14.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.137e-05/0.4328, allocations: 41.69 kB / 461 MB, free: 14.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.4329, allocations: 195.2 kB / 461.1 MB, free: 14.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.4331, allocations: 114.3 kB / 461.3 MB, free: 14.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.998e-05/0.4331, allocations: 8 kB / 461.3 MB, free: 14.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.4333, allocations: 322.8 kB / 461.6 MB, free: 13.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003605/0.4337, allocations: 116 kB / 461.7 MB, free: 13.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.4341, allocations: 163.2 kB / 461.9 MB, free: 13.67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003291/0.4344, allocations: 97.17 kB / 461.9 MB, free: 13.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.064e-06/0.4344, allocations: 0 / 461.9 MB, free: 13.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001548/0.436, allocations: 405.8 kB / 462.3 MB, free: 13.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.4361, allocations: 4 kB / 462.3 MB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.563e-05/0.4361, allocations: 3.984 kB / 462.4 MB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008131/0.4369, allocations: 200.7 kB / 462.5 MB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.4373, allocations: 51.92 kB / 462.6 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.4383, allocations: 0.7125 MB / 463.3 MB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.4387, allocations: 52.02 kB / 463.4 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.492e-05/0.4388, allocations: 12 kB / 463.4 MB, free: 12.11 MB / 394.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 () * Number of clocked 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.0002553/0.4391, allocations: 150.5 kB / 463.5 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.241e-05/0.4392, allocations: 31.66 kB / 463.6 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/0.4405, allocations: 444.9 kB / 464 MB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.4406, allocations: 4 kB / 464 MB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.979e-06/0.4406, allocations: 4 kB / 464 MB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.605e-06/0.4406, allocations: 3.984 kB / 464 MB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.4429, allocations: 0.9484 MB / 464.9 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.553e-06/0.4429, allocations: 4.062 kB / 464.9 MB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.4432, allocations: 51.91 kB / 465 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005505/0.4438, allocations: 176.8 kB / 465.2 MB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.376e-05/0.4439, allocations: 11.98 kB / 465.2 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009106/0.4448, allocations: 0.6732 MB / 465.9 MB, free: 9.504 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.074e-06/0.4448, allocations: 8 kB / 465.9 MB, free: 9.496 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.4465, allocations: 0.6503 MB / 466.5 MB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/0.4468, allocations: 124.9 kB / 466.6 MB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.425e-05/0.4469, allocations: 8 kB / 466.6 MB, free: 8.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003733/0.4472, allocations: 52.02 kB / 466.7 MB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.4474, allocations: 59.88 kB / 466.8 MB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.4475, allocations: 8 kB / 466.8 MB, free: 8.543 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001827/0.4477, allocations: 143.4 kB / 466.9 MB, free: 8.402 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.23e-07/0.4477, allocations: 0 / 466.9 MB, free: 8.402 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005443/0.4483, allocations: 76 kB / 467 MB, free: 8.328 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) * Number of clocked states: 0 () * 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.0002874/0.4486, allocations: 143.1 kB / 467.1 MB, free: 8.176 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.4496, allocations: 329.4 kB / 467.4 MB, free: 7.848 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.28e-06/0.4497, allocations: 4 kB / 467.4 MB, free: 7.844 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004983/0.4502, allocations: 156 kB / 467.6 MB, free: 7.691 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004117/0.4506, allocations: 36.12 kB / 467.6 MB, free: 7.652 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.4532, allocations: 0.9641 MB / 468.6 MB, free: 6.652 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.4538, allocations: 0.7605 MB / 469.4 MB, free: 5.859 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.4539, allocations: 23.44 kB / 469.4 MB, free: 5.836 MB / 394.7 MB Notification: Performance of SimCode: time 1.667e-06/0.4539, allocations: 3.938 kB / 469.4 MB, free: 5.832 MB / 394.7 MB Notification: Performance of Templates: time 0.008536/0.4624, allocations: 3.957 MB / 473.3 MB, free: 1.871 MB / 394.7 MB