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/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.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 2.07/2.07, allocations: 209.3 MB / 224.8 MB, free: 352 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004506/0.0004507, allocations: 11.98 kB / 282.6 MB, free: 9.617 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3307, allocations: 48.7 MB / 331.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.4503, allocations: 80.1 MB / 411.4 MB, free: 14.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.4506, allocations: 67.97 kB / 411.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04981/0.5004, allocations: 11.55 MB / 423 MB, free: 2.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.56e-06/0.5004, allocations: 0 / 423 MB, free: 2.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.415e-05/0.5005, allocations: 16 kB / 423 MB, free: 2.648 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.002676/0.5032, allocations: 1.009 MB / 424 MB, free: 1.586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.5032, allocations: 8.031 kB / 424 MB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.5035, allocations: 86.92 kB / 424.1 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008223/0.5043, allocations: 412.7 kB / 424.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.775e-05/0.5044, allocations: 49.31 kB / 424.6 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/0.5046, allocations: 67.91 kB / 424.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.5068, allocations: 0.8296 MB / 425.4 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.802e-05/0.5069, allocations: 7.906 kB / 425.5 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.507, allocations: 24 kB / 425.5 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.507, allocations: 16 kB / 425.5 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002402/0.5094, allocations: 0.7856 MB / 426.3 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006044/0.5155, allocations: 2.603 MB / 428.9 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.5175, allocations: 0.6476 MB / 429.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.072e-05/0.5176, allocations: 4.375 kB / 429.5 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.5177, allocations: 50.92 kB / 429.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 3.991e-06/0.5177, allocations: 0 / 429.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=76): time 0.01147/0.5292, allocations: 3.843 MB / 433.4 MB, free: 7.672 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5293, allocations: 140.7 kB / 433.6 MB, free: 7.504 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006639/0.53, allocations: 373 kB / 433.9 MB, free: 7.129 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.5302, allocations: 53.64 kB / 434 MB, free: 7.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/0.5305, allocations: 326.8 kB / 434.3 MB, free: 6.746 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003507/0.5309, allocations: 268.5 kB / 434.6 MB, free: 6.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.024e-05/0.5309, allocations: 16 kB / 434.6 MB, free: 6.465 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.5312, allocations: 354.7 kB / 434.9 MB, free: 6.109 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.5324, allocations: 401.8 kB / 435.3 MB, free: 5.719 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.5338, allocations: 0.5491 MB / 435.9 MB, free: 5.109 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.5348, allocations: 348.3 kB / 436.2 MB, free: 4.773 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.655e-06/0.5349, allocations: 4 kB / 436.2 MB, free: 4.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004246/0.5391, allocations: 1.361 MB / 437.6 MB, free: 3.395 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.5392, allocations: 8 kB / 437.6 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.5392, allocations: 4 kB / 437.6 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/0.5414, allocations: 0.7996 MB / 438.4 MB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00081/0.5422, allocations: 159.8 kB / 438.5 MB, free: 2.414 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003489/0.5457, allocations: 2.674 MB / 441.2 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.5471, allocations: 199.9 kB / 441.4 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.5473, allocations: 43.98 kB / 441.5 MB, free: 15.4 MB / 378.7 MB 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 () * Number of clocked 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.0005518/0.5478, allocations: 216.2 kB / 441.7 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.5481, allocations: 67.25 kB / 441.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002302/0.5484, allocations: 87.92 kB / 441.8 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/0.5484, allocations: 8 kB / 441.8 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.5484, allocations: 4 kB / 441.8 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.5484, allocations: 7.984 kB / 441.8 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006465/0.5549, allocations: 2.34 MB / 444.2 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.555, allocations: 0 / 444.2 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000834/0.5558, allocations: 127.8 kB / 444.3 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002024/0.5579, allocations: 0.7605 MB / 445.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/0.5581, allocations: 27.97 kB / 445.1 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003384/0.5614, allocations: 2.639 MB / 447.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.749e-06/0.5615, allocations: 0 / 447.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/0.5667, allocations: 1.94 MB / 449.7 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000562/0.5673, allocations: 224.2 kB / 449.9 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/0.5675, allocations: 28 kB / 449.9 MB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.5687, allocations: 175.8 kB / 450.1 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004672/0.5692, allocations: 163.6 kB / 450.2 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.5693, allocations: 47.91 kB / 450.3 MB, free: 6.293 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004861/0.5698, allocations: 279.1 kB / 450.6 MB, free: 6.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.43e-07/0.5699, allocations: 0 / 450.6 MB, free: 6.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001094/0.571, allocations: 200 kB / 450.8 MB, free: 5.824 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) * Number of clocked states: 0 () * 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.0003433/0.5713, allocations: 159 kB / 450.9 MB, free: 5.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003019/0.5744, allocations: 0.9568 MB / 451.9 MB, free: 4.707 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.533e-06/0.5744, allocations: 0 / 451.9 MB, free: 4.707 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002189/0.5766, allocations: 0.4998 MB / 452.4 MB, free: 4.207 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.5777, allocations: 83.19 kB / 452.5 MB, free: 4.125 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006864/0.5846, allocations: 2.609 MB / 455.1 MB, free: 1.473 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007535/0.5854, allocations: 0.9299 MB / 456 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002883/0.5857, allocations: 55.41 kB / 456 MB, free: 472 kB / 378.7 MB Notification: Performance of SimCode: time 1.791e-06/0.5857, allocations: 0 / 456 MB, free: 472 kB / 378.7 MB Notification: Performance of Templates: time 0.02603/0.6118, allocations: 15.78 MB / 471.8 MB, free: 0.6602 MB / 394.7 MB