Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.786/1.786, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000484/0.0004844, allocations: 8 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.08792, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3589/0.4469, allocations: 69.18 MB / 341.8 MB, free: 4.285 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.4472, allocations: 74.66 kB / 341.9 MB, free: 4.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04276/0.49, allocations: 8.861 MB / 350.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.49, allocations: 0 / 350.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.102e-05/0.4901, allocations: 12 kB / 350.7 MB, free: 12.6 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.002634/0.4927, allocations: 0.8421 MB / 351.6 MB, free: 11.74 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.497e-05/0.4928, allocations: 8.031 kB / 351.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002031/0.493, allocations: 59.34 kB / 351.6 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006965/0.4937, allocations: 346.7 kB / 352 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.187e-05/0.4938, allocations: 39.14 kB / 352 MB, free: 11.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/0.494, allocations: 46.12 kB / 352.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.4958, allocations: 0.6187 MB / 352.7 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/0.4959, allocations: 3.906 kB / 352.7 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.824e-05/0.496, allocations: 18.75 kB / 352.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.496, allocations: 12 kB / 352.7 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002183/0.4982, allocations: 0.6107 MB / 353.3 MB, free: 10.35 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00412/0.5023, allocations: 1.351 MB / 354.7 MB, free: 9.199 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.504, allocations: 475.4 kB / 355.1 MB, free: 8.867 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.562e-05/0.5041, allocations: 8.547 kB / 355.2 MB, free: 8.859 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.5042, allocations: 42.12 kB / 355.2 MB, free: 8.812 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.487e-06/0.5042, allocations: 0 / 355.2 MB, free: 8.812 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.01176/0.516, allocations: 3.082 MB / 358.3 MB, free: 6.168 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.5161, allocations: 59.97 kB / 358.3 MB, free: 6.098 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005647/0.5167, allocations: 326.8 kB / 358.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001401/0.5168, allocations: 48.94 kB / 358.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.517, allocations: 199.4 kB / 358.9 MB, free: 5.629 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00029/0.5173, allocations: 227.4 kB / 359.1 MB, free: 5.438 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.625e-05/0.5174, allocations: 15.62 kB / 359.1 MB, free: 5.434 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.5176, allocations: 358 kB / 359.5 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.5187, allocations: 320.6 kB / 359.8 MB, free: 4.883 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/0.5199, allocations: 384.8 kB / 360.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009451/0.5208, allocations: 262.3 kB / 360.4 MB, free: 4.449 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.5208, allocations: 0 / 360.4 MB, free: 4.449 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003085/0.5239, allocations: 0.9397 MB / 361.4 MB, free: 3.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.524, allocations: 4 kB / 361.4 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.524, allocations: 8.031 kB / 361.4 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002269/0.5263, allocations: 0.7738 MB / 362.2 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008257/0.5272, allocations: 102.8 kB / 362.3 MB, free: 3.039 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002364/0.5296, allocations: 1.076 MB / 363.3 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.531, allocations: 150.3 kB / 363.5 MB, free: 2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.5312, allocations: 27.17 kB / 363.5 MB, free: 1.977 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.0004623/0.5316, allocations: 192.5 kB / 363.7 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.5318, allocations: 47.44 kB / 363.7 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.532, allocations: 71.56 kB / 363.8 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.532, allocations: 8 kB / 363.8 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.5321, allocations: 3.953 kB / 363.8 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.5321, allocations: 3.984 kB / 363.8 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004935/0.537, allocations: 1.63 MB / 365.5 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.5371, allocations: 3.953 kB / 365.5 MB, free: 444 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008725/0.538, allocations: 99.5 kB / 365.6 MB, free: 348 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/0.5402, allocations: 0.7455 MB / 366.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/0.5404, allocations: 27.45 kB / 366.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002344/0.5428, allocations: 1.046 MB / 367.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5428, allocations: 0 / 367.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005103/0.5479, allocations: 1.368 MB / 368.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006058/0.5486, allocations: 197.4 kB / 368.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.5489, allocations: 20.19 kB / 369 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.5502, allocations: 146.4 kB / 369.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005182/0.5507, allocations: 149.7 kB / 369.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.5509, allocations: 27.78 kB / 369.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004161/0.5513, allocations: 230.5 kB / 369.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5513, allocations: 0 / 369.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008916/0.5522, allocations: 160.9 kB / 369.7 MB, free: 12.99 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.0003802/0.5526, allocations: 159.8 kB / 369.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002757/0.5554, allocations: 0.7593 MB / 370.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5554, allocations: 0 / 370.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.5569, allocations: 428.5 kB / 371 MB, free: 11.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008999/0.5579, allocations: 80.31 kB / 371.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.5625, allocations: 1.67 MB / 372.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005885/0.5632, allocations: 0.852 MB / 373.6 MB, free: 9.473 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004031/0.5636, allocations: 52.16 kB / 373.6 MB, free: 9.418 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.5638, allocations: 39.36 kB / 373.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5638, allocations: 0 / 373.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of Templates: time 0.0307/0.5945, allocations: 11.07 MB / 384.7 MB, free: 14.35 MB / 314.7 MB