Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.746/1.746, allocations: 171.2 MB / 187.3 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003673, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08883/0.08923, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3649/0.4542, allocations: 69.17 MB / 341.7 MB, free: 4.863 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.4545, allocations: 84.25 kB / 341.8 MB, free: 4.816 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04221/0.4968, allocations: 8.86 MB / 350.7 MB, free: 13.17 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4968, allocations: 0 / 350.7 MB, free: 13.17 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.4969, allocations: 8 kB / 350.7 MB, free: 13.16 MB / 282.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.002705/0.4996, allocations: 0.8401 MB / 351.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.4996, allocations: 12.03 kB / 351.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.4999, allocations: 55.34 kB / 351.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006789/0.5006, allocations: 345.1 kB / 351.9 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.978e-05/0.5006, allocations: 34.27 kB / 351.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.5008, allocations: 44.94 kB / 352 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.5026, allocations: 0.6245 MB / 352.6 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.829e-05/0.5027, allocations: 7.906 kB / 352.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.458e-05/0.5028, allocations: 17.31 kB / 352.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.5028, allocations: 8 kB / 352.6 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.5049, allocations: 0.6147 MB / 353.3 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.5088, allocations: 1.355 MB / 354.6 MB, free: 9.762 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.5105, allocations: 466.9 kB / 355.1 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.781e-05/0.5106, allocations: 8.562 kB / 355.1 MB, free: 9.426 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.5107, allocations: 46.75 kB / 355.1 MB, free: 9.379 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.486e-06/0.5107, allocations: 0 / 355.1 MB, free: 9.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.01164/0.5223, allocations: 3.082 MB / 358.2 MB, free: 6.734 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.5224, allocations: 63.91 kB / 358.3 MB, free: 6.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005534/0.523, allocations: 322.7 kB / 358.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.5231, allocations: 47.7 kB / 358.6 MB, free: 6.352 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.5233, allocations: 258 kB / 358.9 MB, free: 6.133 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/0.5236, allocations: 219.2 kB / 359.1 MB, free: 5.949 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.119e-05/0.5237, allocations: 14.62 kB / 359.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.5239, allocations: 337.1 kB / 359.4 MB, free: 5.617 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.525, allocations: 330 kB / 359.8 MB, free: 5.402 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.5262, allocations: 384.9 kB / 360.1 MB, free: 5.137 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009216/0.5271, allocations: 256.5 kB / 360.4 MB, free: 4.973 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.5272, allocations: 0 / 360.4 MB, free: 4.973 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003028/0.5302, allocations: 0.9266 MB / 361.3 MB, free: 4.309 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.5303, allocations: 5.094 kB / 361.3 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.5303, allocations: 0 / 361.3 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002249/0.5325, allocations: 0.7816 MB / 362.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000814/0.5334, allocations: 103.6 kB / 362.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002321/0.5357, allocations: 1.081 MB / 363.3 MB, free: 2.668 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.5373, allocations: 151.6 kB / 363.4 MB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001626/0.5374, allocations: 31.61 kB / 363.5 MB, free: 2.504 MB / 282.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 () * Number of clocked 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.0004601/0.5379, allocations: 182.1 kB / 363.6 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.5381, allocations: 47.53 kB / 363.7 MB, free: 2.305 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/0.5383, allocations: 77.86 kB / 363.8 MB, free: 2.273 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.5383, allocations: 8 kB / 363.8 MB, free: 2.266 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.5384, allocations: 3.953 kB / 363.8 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.5384, allocations: 3.984 kB / 363.8 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004692/0.5431, allocations: 1.629 MB / 365.4 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.5431, allocations: 3.953 kB / 365.4 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000838/0.544, allocations: 99.69 kB / 365.5 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002085/0.5461, allocations: 0.7362 MB / 366.2 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.5462, allocations: 27.77 kB / 366.3 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/0.5484, allocations: 1.046 MB / 367.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5485, allocations: 0 / 367.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004668/0.5532, allocations: 1.382 MB / 368.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004812/0.5537, allocations: 192.7 kB / 368.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.5539, allocations: 20.56 kB / 368.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.5552, allocations: 142.6 kB / 369 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000467/0.5556, allocations: 153.4 kB / 369.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.5558, allocations: 30.34 kB / 369.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003694/0.5561, allocations: 229.6 kB / 369.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5562, allocations: 0 / 369.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007798/0.557, allocations: 158.2 kB / 369.6 MB, free: 13.52 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) * Number of clocked states: 0 () * 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.0003432/0.5573, allocations: 151.4 kB / 369.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.56, allocations: 0.7673 MB / 370.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.5601, allocations: 3.938 kB / 370.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.5616, allocations: 419.2 kB / 370.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009201/0.5625, allocations: 82.77 kB / 371 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004428/0.567, allocations: 1.69 MB / 372.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005642/0.5676, allocations: 0.8559 MB / 373.6 MB, free: 9.969 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002597/0.5679, allocations: 46.53 kB / 373.6 MB, free: 9.926 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5679, allocations: 0 / 373.6 MB, free: 9.926 MB / 298.7 MB Notification: Performance of Templates: time 0.01802/0.5859, allocations: 7.813 MB / 381.4 MB, free: 2.18 MB / 298.7 MB