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.597/1.597, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003547, allocations: 12 kB / 233.2 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06878/0.06916, allocations: 38.77 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003631/0.07283, allocations: 2.458 MB / 274.4 MB, free: 9.734 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.07508, allocations: 1.045 MB / 275.4 MB, free: 8.688 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002176/0.07532, allocations: 11.94 kB / 275.4 MB, free: 8.676 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.0755, allocations: 51.59 kB / 275.5 MB, free: 8.625 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003985/0.07592, allocations: 171.5 kB / 275.7 MB, free: 8.457 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006149/0.07654, allocations: 203.6 kB / 275.9 MB, free: 8.258 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006881/0.07725, allocations: 488.7 kB / 276.3 MB, free: 7.781 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/0.07751, allocations: 107.1 kB / 276.4 MB, free: 7.672 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00049/0.07802, allocations: 295 kB / 276.7 MB, free: 7.383 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004864/0.07852, allocations: 334.8 kB / 277.1 MB, free: 7.055 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.857e-05/0.07863, allocations: 28 kB / 277.1 MB, free: 7.027 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002899/0.07893, allocations: 115.9 kB / 277.2 MB, free: 6.914 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.0791, allocations: 115.5 kB / 277.3 MB, free: 6.801 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.07926, allocations: 117.4 kB / 277.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007234/0.07999, allocations: 0.495 MB / 277.9 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.632e-06/0.08001, allocations: 0 / 277.9 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.067e-06/0.08002, allocations: 0 / 277.9 MB, free: 6.184 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.164e-06/0.08004, allocations: 0 / 277.9 MB, free: 6.184 MB / 234.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.001892/0.08194, allocations: 0.8316 MB / 278.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.082, allocations: 12.02 kB / 278.8 MB, free: 5.293 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.08216, allocations: 59.34 kB / 278.8 MB, free: 5.234 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.08274, allocations: 338.6 kB / 279.2 MB, free: 4.867 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.174e-05/0.08281, allocations: 36.95 kB / 279.2 MB, free: 4.832 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.08297, allocations: 47.91 kB / 279.2 MB, free: 4.785 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.08444, allocations: 0.5995 MB / 279.8 MB, free: 4.176 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.782e-05/0.0845, allocations: 4 kB / 279.8 MB, free: 4.172 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-05/0.08459, allocations: 16 kB / 279.9 MB, free: 4.156 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.08462, allocations: 8 kB / 279.9 MB, free: 4.148 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.08631, allocations: 0.5894 MB / 280.4 MB, free: 3.555 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003124/0.08945, allocations: 1.352 MB / 281.8 MB, free: 2.145 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.09077, allocations: 457.3 kB / 282.2 MB, free: 1.691 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.874e-05/0.09085, allocations: 12.55 kB / 282.3 MB, free: 1.68 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.0909, allocations: 39.12 kB / 282.3 MB, free: 1.633 MB / 234.7 MB Notification: Performance of pre-optimization done (n=58): time 3.35e-06/0.09092, allocations: 0 / 282.3 MB, free: 1.633 MB / 234.7 MB Notification: Performance of matching and sorting (n=64): time 0.008724/0.09965, allocations: 3.033 MB / 285.3 MB, free: 14.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.09974, allocations: 59.97 kB / 285.4 MB, free: 14.38 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004999/0.1003, allocations: 329.7 kB / 285.7 MB, free: 14.05 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.1004, allocations: 49.69 kB / 285.8 MB, free: 14 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.1006, allocations: 247.7 kB / 286 MB, free: 13.75 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.1009, allocations: 225 kB / 286.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/0.1009, allocations: 12 kB / 286.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1011, allocations: 338.8 kB / 286.6 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000882/0.102, allocations: 317.9 kB / 286.9 MB, free: 12.87 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009282/0.103, allocations: 377.1 kB / 287.2 MB, free: 12.49 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007133/0.1037, allocations: 263 kB / 287.5 MB, free: 12.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.395e-06/0.1037, allocations: 0 / 287.5 MB, free: 12.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002424/0.1062, allocations: 0.8849 MB / 288.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.1062, allocations: 4 kB / 288.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1062, allocations: 4 kB / 288.4 MB, free: 11.33 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.1076, allocations: 0.536 MB / 288.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005221/0.1082, allocations: 103.9 kB / 289 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.1101, allocations: 1.06 MB / 290.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008583/0.111, allocations: 143.9 kB / 290.2 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.798e-05/0.1111, allocations: 24 kB / 290.3 MB, free: 9.445 MB / 250.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.0003927/0.1115, allocations: 188 kB / 290.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.1116, allocations: 47.44 kB / 290.5 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.1118, allocations: 68.75 kB / 290.6 MB, free: 9.137 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.1118, allocations: 8 kB / 290.6 MB, free: 9.129 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.1119, allocations: 3.953 kB / 290.6 MB, free: 9.125 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.1119, allocations: 7.984 kB / 290.6 MB, free: 9.117 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.1158, allocations: 1.594 MB / 292.2 MB, free: 7.461 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.848e-06/0.1159, allocations: 3.953 kB / 292.2 MB, free: 7.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000577/0.1165, allocations: 99.88 kB / 292.3 MB, free: 7.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.1177, allocations: 0.5083 MB / 292.8 MB, free: 6.848 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.432e-05/0.1178, allocations: 23.97 kB / 292.8 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.1197, allocations: 1.027 MB / 293.8 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.68e-06/0.1197, allocations: 0 / 293.8 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003604/0.1233, allocations: 1.37 MB / 295.2 MB, free: 4.379 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003818/0.1237, allocations: 180.4 kB / 295.4 MB, free: 4.184 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.1239, allocations: 27.92 kB / 295.4 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007985/0.1247, allocations: 139.9 kB / 295.5 MB, free: 4.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003757/0.1251, allocations: 152.2 kB / 295.7 MB, free: 3.871 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.551e-05/0.1252, allocations: 27.97 kB / 295.7 MB, free: 3.844 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003404/0.1255, allocations: 231.2 kB / 295.9 MB, free: 3.621 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.58e-07/0.1255, allocations: 0 / 295.9 MB, free: 3.621 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006881/0.1262, allocations: 152 kB / 296.1 MB, free: 3.473 MB / 250.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.0003012/0.1266, allocations: 147.2 kB / 296.2 MB, free: 3.32 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.1288, allocations: 0.7684 MB / 297 MB, free: 2.555 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.313e-06/0.1288, allocations: 0 / 297 MB, free: 2.555 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.13, allocations: 417.9 kB / 297.4 MB, free: 2.145 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/0.1307, allocations: 81.27 kB / 297.5 MB, free: 2.062 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003648/0.1343, allocations: 1.698 MB / 299.2 MB, free: 340 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1705/0.3048, allocations: 0.8604 MB / 300 MB, free: 31.12 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.3051, allocations: 40.91 kB / 300.1 MB, free: 31.12 MB / 250.7 MB Notification: Performance of SimCode: time 1.941e-06/0.3051, allocations: 0.75 kB / 300.1 MB, free: 31.12 MB / 250.7 MB Notification: Performance of Templates: time 0.01395/0.3191, allocations: 7.738 MB / 307.8 MB, free: 29.14 MB / 250.7 MB