Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.599/1.599, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.862e-05/3.88e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2153, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1016/0.3169, allocations: 69.1 MB / 336.7 MB, free: 4.238 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.3172, allocations: 67.95 kB / 336.7 MB, free: 4.172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03832/0.3556, allocations: 8.843 MB / 345.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.889e-06/0.3556, allocations: 0 / 345.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.893e-05/0.3557, allocations: 12 kB / 345.6 MB, free: 11.29 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00195/0.3576, allocations: 0.7868 MB / 346.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3577, allocations: 8.031 kB / 346.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.3579, allocations: 59.34 kB / 346.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006442/0.3585, allocations: 335.6 kB / 346.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.302e-05/0.3586, allocations: 37 kB / 346.8 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.3588, allocations: 47.86 kB / 346.9 MB, free: 9.941 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.3601, allocations: 0.5917 MB / 347.5 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.511e-05/0.3602, allocations: 11.91 kB / 347.5 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.267e-05/0.3603, allocations: 19.94 kB / 347.5 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.3603, allocations: 8 kB / 347.5 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.3617, allocations: 0.5544 MB / 348.1 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003434/0.3651, allocations: 1.356 MB / 349.4 MB, free: 7.324 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.3664, allocations: 429.4 kB / 349.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006511/0.3671, allocations: 282.5 kB / 350.1 MB, free: 6.617 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.308e-05/0.3672, allocations: 8.562 kB / 350.1 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.3672, allocations: 39.12 kB / 350.1 MB, free: 6.562 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.677e-06/0.3672, allocations: 4 kB / 350.2 MB, free: 6.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.005446/0.3727, allocations: 2.073 MB / 352.2 MB, free: 4.395 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.3728, allocations: 55.97 kB / 352.3 MB, free: 4.328 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004579/0.3733, allocations: 287.6 kB / 352.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.3734, allocations: 45.7 kB / 352.6 MB, free: 3.996 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.3736, allocations: 259.7 kB / 352.9 MB, free: 3.738 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002534/0.3739, allocations: 213 kB / 353.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.662e-05/0.3739, allocations: 16 kB / 353.1 MB, free: 3.512 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.3742, allocations: 338.8 kB / 353.4 MB, free: 3.172 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000719/0.3749, allocations: 289.5 kB / 353.7 MB, free: 2.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007636/0.3757, allocations: 347.1 kB / 354 MB, free: 2.539 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/0.3763, allocations: 237.9 kB / 354.3 MB, free: 2.309 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.317e-06/0.3763, allocations: 4 kB / 354.3 MB, free: 2.305 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002173/0.3785, allocations: 0.8605 MB / 355.1 MB, free: 1.438 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.3785, allocations: 10.19 kB / 355.1 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3785, allocations: 0 / 355.1 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001804/0.3804, allocations: 0.7567 MB / 355.9 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005856/0.381, allocations: 103.9 kB / 356 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1825/0.5634, allocations: 1.072 MB / 357.1 MB, free: 78.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.5646, allocations: 149.2 kB / 357.2 MB, free: 78.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.5648, allocations: 30.66 kB / 357.2 MB, free: 78.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002454/0.5651, allocations: 144.6 kB / 357.4 MB, free: 77.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.5652, allocations: 48.86 kB / 357.4 MB, free: 77.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.5654, allocations: 72.67 kB / 357.5 MB, free: 77.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.5655, allocations: 6.625 kB / 357.5 MB, free: 77.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.627e-06/0.5655, allocations: 0 / 357.5 MB, free: 77.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.5655, allocations: 4.859 kB / 357.5 MB, free: 77.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003719/0.5692, allocations: 1.567 MB / 359.1 MB, free: 77.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.706e-06/0.5693, allocations: 5.141 kB / 359.1 MB, free: 77.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006839/0.57, allocations: 90.05 kB / 359.2 MB, free: 77.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001506/0.5715, allocations: 0.7397 MB / 359.9 MB, free: 77.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.821e-05/0.5716, allocations: 28.75 kB / 359.9 MB, free: 77.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/0.5732, allocations: 1.041 MB / 361 MB, free: 77.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.981e-06/0.5732, allocations: 0 / 361 MB, free: 77.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002915/0.5762, allocations: 1.285 MB / 362.3 MB, free: 76.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003684/0.5766, allocations: 186.4 kB / 362.5 MB, free: 76.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.5767, allocations: 34.61 kB / 362.5 MB, free: 76.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008442/0.5776, allocations: 143.6 kB / 362.6 MB, free: 76.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003511/0.578, allocations: 145.5 kB / 362.8 MB, free: 76.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.5781, allocations: 37.78 kB / 362.8 MB, free: 76.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002765/0.5784, allocations: 216.4 kB / 363 MB, free: 76.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.36e-07/0.5784, allocations: 0 / 363 MB, free: 76.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007161/0.5791, allocations: 166.1 kB / 363.2 MB, free: 76.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002733/0.5794, allocations: 154.6 kB / 363.3 MB, free: 76.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.581, allocations: 0.6947 MB / 364 MB, free: 76.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.288e-06/0.5811, allocations: 10.69 kB / 364 MB, free: 76.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008214/0.5819, allocations: 387.1 kB / 364.4 MB, free: 76.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006806/0.5826, allocations: 68.89 kB / 364.5 MB, free: 76.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.5853, allocations: 1.257 MB / 365.7 MB, free: 75.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.5857, allocations: 0.86 MB / 366.6 MB, free: 74.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.5859, allocations: 39.12 kB / 366.6 MB, free: 74.68 MB / 298.7 MB Notification: Performance of SimCode: time 1.944e-06/0.5859, allocations: 0 / 366.6 MB, free: 74.68 MB / 298.7 MB Notification: Performance of Templates: time 0.01158/0.5975, allocations: 7.783 MB / 374.4 MB, free: 69.34 MB / 298.7 MB