Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.443/2.443, allocations: 234.9 MB / 251.1 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004358, allocations: 19.98 kB / 314.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3567, allocations: 54.87 MB / 369.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1523/0.5091, allocations: 83.25 MB / 453.1 MB, free: 7.469 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.5095, allocations: 83.95 kB / 453.1 MB, free: 7.387 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0201/0.5296, allocations: 4.308 MB / 457.4 MB, free: 3.062 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5297, allocations: 0 / 457.4 MB, free: 3.062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.203e-05/0.5297, allocations: 4 kB / 457.4 MB, free: 3.059 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.001234/0.5309, allocations: 0.5223 MB / 458 MB, free: 2.488 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.531, allocations: 16.03 kB / 458 MB, free: 2.473 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.5311, allocations: 23.72 kB / 458 MB, free: 2.449 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000385/0.5315, allocations: 242.6 kB / 458.2 MB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.5316, allocations: 16.44 kB / 458.3 MB, free: 2.156 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-05/0.5317, allocations: 24 kB / 458.3 MB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007909/0.5325, allocations: 251.2 kB / 458.5 MB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.5325, allocations: 3.906 kB / 458.5 MB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.5326, allocations: 15.95 kB / 458.6 MB, free: 1.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.5326, allocations: 4 kB / 458.6 MB, free: 1.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007913/0.5334, allocations: 213.6 kB / 458.8 MB, free: 1.648 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.5355, allocations: 0.7014 MB / 459.5 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006898/0.5362, allocations: 227.2 kB / 459.7 MB, free: 0.6641 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.957e-05/0.5363, allocations: 8.375 kB / 459.7 MB, free: 0.6562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.5364, allocations: 38.8 kB / 459.7 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 5.521e-06/0.5364, allocations: 0 / 459.7 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.005163/0.5416, allocations: 1.48 MB / 461.2 MB, free: 15.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.5416, allocations: 63.36 kB / 461.3 MB, free: 14.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.5419, allocations: 186.5 kB / 461.5 MB, free: 14.75 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.044e-05/0.542, allocations: 33.7 kB / 461.5 MB, free: 14.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.5421, allocations: 191.2 kB / 461.7 MB, free: 14.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.5423, allocations: 122.3 kB / 461.8 MB, free: 14.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.5423, allocations: 8 kB / 461.8 MB, free: 14.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.5425, allocations: 322.8 kB / 462.1 MB, free: 14.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004195/0.5429, allocations: 112 kB / 462.2 MB, free: 13.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/0.5434, allocations: 163.2 kB / 462.4 MB, free: 13.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.5438, allocations: 105.2 kB / 462.5 MB, free: 13.69 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.5438, allocations: 0 / 462.5 MB, free: 13.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001322/0.5452, allocations: 405.8 kB / 462.9 MB, free: 13.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.5452, allocations: 4 kB / 462.9 MB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.5452, allocations: 0 / 462.9 MB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007612/0.546, allocations: 200.7 kB / 463.1 MB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.5464, allocations: 59.84 kB / 463.1 MB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.5476, allocations: 0.7086 MB / 463.9 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.5481, allocations: 52.02 kB / 463.9 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.659e-05/0.5481, allocations: 12 kB / 463.9 MB, free: 12.22 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.0002569/0.5484, allocations: 150.5 kB / 464.1 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.134e-05/0.5485, allocations: 27.67 kB / 464.1 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001579/0.5501, allocations: 448.9 kB / 464.5 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.5501, allocations: 4 kB / 464.5 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5501, allocations: 4 kB / 464.5 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.5501, allocations: 3.984 kB / 464.5 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002454/0.5526, allocations: 0.9445 MB / 465.5 MB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.5526, allocations: 0 / 465.5 MB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004372/0.5531, allocations: 55.91 kB / 465.5 MB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006189/0.5537, allocations: 172.8 kB / 465.7 MB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/0.5538, allocations: 19.92 kB / 465.7 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000925/0.5547, allocations: 0.6732 MB / 466.4 MB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.5547, allocations: 4.062 kB / 466.4 MB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.5566, allocations: 0.6263 MB / 467 MB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.5569, allocations: 124.8 kB / 467.2 MB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.931e-05/0.557, allocations: 8.062 kB / 467.2 MB, free: 8.812 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004893/0.5575, allocations: 63.97 kB / 467.2 MB, free: 8.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.5577, allocations: 51.89 kB / 467.3 MB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.5578, allocations: 15.98 kB / 467.3 MB, free: 8.684 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002217/0.558, allocations: 143.3 kB / 467.4 MB, free: 8.543 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.558, allocations: 0 / 467.4 MB, free: 8.543 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005453/0.5586, allocations: 76 kB / 467.5 MB, free: 8.469 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.0003018/0.5589, allocations: 132.4 kB / 467.6 MB, free: 8.332 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.5601, allocations: 333.5 kB / 468 MB, free: 8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5601, allocations: 0 / 468 MB, free: 8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00057/0.5607, allocations: 163.7 kB / 468.1 MB, free: 7.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.5611, allocations: 28.45 kB / 468.1 MB, free: 7.809 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/0.5646, allocations: 0.9681 MB / 469.1 MB, free: 6.805 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.565, allocations: 0.7643 MB / 469.9 MB, free: 6.008 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.5651, allocations: 23.42 kB / 469.9 MB, free: 5.984 MB / 394.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5652, allocations: 0 / 469.9 MB, free: 5.984 MB / 394.7 MB Notification: Performance of Templates: time 0.009656/0.5748, allocations: 3.953 MB / 473.9 MB, free: 2.031 MB / 394.7 MB