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.6/1.6, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003782, allocations: 8 kB / 233.2 MB, free: 3.031 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06918/0.06958, allocations: 38.77 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.3565, allocations: 69.18 MB / 341.2 MB, free: 4.801 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.3568, allocations: 79.2 kB / 341.3 MB, free: 4.758 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03666/0.3935, allocations: 8.863 MB / 350.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.372e-06/0.3935, allocations: 0 / 350.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.83e-05/0.3936, allocations: 8 kB / 350.1 MB, free: 13.1 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.002011/0.3956, allocations: 0.8369 MB / 351 MB, free: 12.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3956, allocations: 8.031 kB / 351 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.3958, allocations: 59.34 kB / 351 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/0.3965, allocations: 347.2 kB / 351.4 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.3965, allocations: 38.89 kB / 351.4 MB, free: 11.81 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.3967, allocations: 42.12 kB / 351.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3982, allocations: 0.6162 MB / 352.1 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/0.3983, allocations: 7.906 kB / 352.1 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.826e-05/0.3984, allocations: 22.88 kB / 352.1 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.3984, allocations: 8 kB / 352.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.4002, allocations: 0.6144 MB / 352.7 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003234/0.4034, allocations: 1.35 MB / 354.1 MB, free: 9.703 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.4048, allocations: 471.6 kB / 354.5 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.2e-05/0.4049, allocations: 12.12 kB / 354.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.4049, allocations: 38.55 kB / 354.6 MB, free: 9.32 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.686e-06/0.4049, allocations: 4 kB / 354.6 MB, free: 9.316 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.00931/0.4143, allocations: 3.075 MB / 357.7 MB, free: 6.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.4144, allocations: 63.97 kB / 357.7 MB, free: 6.605 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004458/0.4148, allocations: 284.5 kB / 358 MB, free: 6.371 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.4149, allocations: 48.62 kB / 358.1 MB, free: 6.328 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.4151, allocations: 251.9 kB / 358.3 MB, free: 6.113 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.4154, allocations: 225.7 kB / 358.5 MB, free: 5.922 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.4155, allocations: 14.75 kB / 358.5 MB, free: 5.918 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.4157, allocations: 337.7 kB / 358.9 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009431/0.4167, allocations: 333.5 kB / 359.2 MB, free: 5.371 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009587/0.4176, allocations: 381.8 kB / 359.6 MB, free: 5.109 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007507/0.4184, allocations: 262.6 kB / 359.8 MB, free: 4.938 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.4184, allocations: 0 / 359.8 MB, free: 4.938 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002561/0.421, allocations: 0.9195 MB / 360.7 MB, free: 4.281 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.4211, allocations: 8 kB / 360.7 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.4211, allocations: 0 / 360.7 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/0.4229, allocations: 0.7766 MB / 361.5 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005959/0.4236, allocations: 103.6 kB / 361.6 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002061/0.4256, allocations: 1.077 MB / 362.7 MB, free: 2.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009578/0.4266, allocations: 149.3 kB / 362.8 MB, free: 2.508 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.4268, allocations: 31.05 kB / 362.9 MB, free: 2.48 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.0004021/0.4272, allocations: 180.7 kB / 363.1 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.4273, allocations: 51.44 kB / 363.1 MB, free: 2.281 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.4275, allocations: 78.44 kB / 363.2 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.996e-06/0.4275, allocations: 4 kB / 363.2 MB, free: 2.246 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.4276, allocations: 4.047 kB / 363.2 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4276, allocations: 11.97 kB / 363.2 MB, free: 2.23 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00409/0.4317, allocations: 1.634 MB / 364.8 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.717e-06/0.4317, allocations: 0 / 364.8 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006372/0.4324, allocations: 90.91 kB / 364.9 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001752/0.4341, allocations: 0.7495 MB / 365.7 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.4343, allocations: 26.66 kB / 365.7 MB, free: 220 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001999/0.4363, allocations: 1.036 MB / 366.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.383e-06/0.4363, allocations: 4 kB / 366.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003742/0.4401, allocations: 1.38 MB / 368.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000458/0.4406, allocations: 189.2 kB / 368.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.4408, allocations: 28.06 kB / 368.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008614/0.4416, allocations: 142.6 kB / 368.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.442, allocations: 145.2 kB / 368.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.927e-05/0.4421, allocations: 41.77 kB / 368.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00034/0.4425, allocations: 226.7 kB / 368.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.4425, allocations: 0 / 368.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007538/0.4433, allocations: 157.5 kB / 369 MB, free: 13.49 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.0003058/0.4436, allocations: 154.6 kB / 369.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.4458, allocations: 0.7565 MB / 369.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.839e-06/0.4458, allocations: 8.062 kB / 369.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.447, allocations: 423 kB / 370.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006927/0.4477, allocations: 79.41 kB / 370.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.4514, allocations: 1.69 MB / 372.1 MB, free: 10.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.4521, allocations: 0.8637 MB / 373 MB, free: 9.941 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.4523, allocations: 42.67 kB / 373 MB, free: 9.902 MB / 298.7 MB Notification: Performance of SimCode: time 1.645e-06/0.4524, allocations: 0 / 373 MB, free: 9.902 MB / 298.7 MB Notification: Performance of Templates: time 0.01491/0.4673, allocations: 7.809 MB / 380.8 MB, free: 2.16 MB / 298.7 MB