Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.828/1.828, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003677/0.0003679, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07941/0.07981, allocations: 44.5 MB / 308.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003618/0.08348, allocations: 2.454 MB / 310.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.08565, allocations: 1.049 MB / 311.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002297/0.08592, allocations: 11.94 kB / 311.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.0861, allocations: 47.61 kB / 311.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004099/0.08652, allocations: 175.5 kB / 312.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006523/0.08719, allocations: 207.6 kB / 312.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007225/0.08793, allocations: 496.8 kB / 312.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.0882, allocations: 111.1 kB / 312.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004953/0.08871, allocations: 303 kB / 313.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004958/0.08922, allocations: 334.8 kB / 313.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.598e-05/0.08933, allocations: 32 kB / 313.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.08956, allocations: 71.95 kB / 313.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.08975, allocations: 123.5 kB / 313.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.08991, allocations: 113.5 kB / 313.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007159/0.09063, allocations: 0.4911 MB / 314.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.03e-06/0.09065, allocations: 0 / 314.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.199e-06/0.09067, allocations: 4 kB / 314.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.647e-06/0.09069, allocations: 0 / 314.3 MB, free: 11.01 MB / 266.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.001943/0.09264, allocations: 0.8144 MB / 315.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.0927, allocations: 12.03 kB / 315.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.09287, allocations: 55.34 kB / 315.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006014/0.09348, allocations: 354.5 kB / 315.6 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.705e-05/0.09355, allocations: 37 kB / 315.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.0937, allocations: 51.89 kB / 315.6 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.09525, allocations: 0.6151 MB / 316.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.0953, allocations: 0 / 316.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-05/0.09541, allocations: 24 kB / 316.3 MB, free: 8.957 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.09544, allocations: 12 kB / 316.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.09722, allocations: 0.6128 MB / 316.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003249/0.1005, allocations: 1.371 MB / 318.3 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.1019, allocations: 477.1 kB / 318.7 MB, free: 6.422 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.608e-05/0.102, allocations: 12.56 kB / 318.8 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.102, allocations: 39.11 kB / 318.8 MB, free: 6.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 4.176e-06/0.1021, allocations: 4 kB / 318.8 MB, free: 6.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.008887/0.1109, allocations: 3.01 MB / 321.8 MB, free: 3.207 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.111, allocations: 63.91 kB / 321.9 MB, free: 3.133 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005117/0.1116, allocations: 337.5 kB / 322.2 MB, free: 2.793 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.695e-05/0.1117, allocations: 45.7 kB / 322.2 MB, free: 2.742 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.1119, allocations: 239.8 kB / 322.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002723/0.1122, allocations: 225 kB / 322.7 MB, free: 2.285 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-05/0.1122, allocations: 16 kB / 322.7 MB, free: 2.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.1125, allocations: 338.8 kB / 323 MB, free: 1.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009229/0.1134, allocations: 325.8 kB / 323.4 MB, free: 1.613 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000977/0.1144, allocations: 389 kB / 323.7 MB, free: 1.227 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007576/0.1152, allocations: 263.1 kB / 324 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.404e-06/0.1152, allocations: 0 / 324 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002585/0.1178, allocations: 0.9201 MB / 324.9 MB, free: 40 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.1178, allocations: 8 kB / 324.9 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.1178, allocations: 4.031 kB / 324.9 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.1197, allocations: 0.728 MB / 325.7 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/0.1203, allocations: 107.8 kB / 325.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.1223, allocations: 1.09 MB / 326.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008804/0.1232, allocations: 155.8 kB / 327 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-05/0.1233, allocations: 24 kB / 327 MB, free: 13.9 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.0003919/0.1237, allocations: 188 kB / 327.2 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.1239, allocations: 51.39 kB / 327.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.1241, allocations: 68.84 kB / 327.3 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.1241, allocations: 11.98 kB / 327.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.956e-06/0.1241, allocations: 0 / 327.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.1241, allocations: 3.984 kB / 327.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003974/0.1281, allocations: 1.594 MB / 328.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.027e-06/0.1282, allocations: 0 / 328.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006294/0.1288, allocations: 91.89 kB / 329 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001659/0.1305, allocations: 0.6956 MB / 329.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.123e-05/0.1306, allocations: 23.95 kB / 329.7 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/0.1326, allocations: 1.068 MB / 330.8 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.351e-06/0.1326, allocations: 7.984 kB / 330.8 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/0.1362, allocations: 1.323 MB / 332.1 MB, free: 8.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004011/0.1367, allocations: 192.4 kB / 332.3 MB, free: 8.453 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.1368, allocations: 20 kB / 332.4 MB, free: 8.434 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008034/0.1376, allocations: 143.9 kB / 332.5 MB, free: 8.293 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003809/0.138, allocations: 152.3 kB / 332.6 MB, free: 8.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-05/0.1381, allocations: 23.97 kB / 332.7 MB, free: 8.117 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003428/0.1385, allocations: 235.1 kB / 332.9 MB, free: 7.891 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.26e-07/0.1385, allocations: 0 / 332.9 MB, free: 7.891 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000714/0.1392, allocations: 156 kB / 333 MB, free: 7.738 MB / 282.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.0003451/0.1396, allocations: 166 kB / 333.2 MB, free: 7.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002291/0.1419, allocations: 0.784 MB / 334 MB, free: 6.781 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.624e-06/0.1419, allocations: 0 / 334 MB, free: 6.781 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.1431, allocations: 433.8 kB / 334.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006966/0.1439, allocations: 74.58 kB / 334.5 MB, free: 6.289 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.1476, allocations: 1.709 MB / 336.2 MB, free: 4.551 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006108/0.1482, allocations: 0.8559 MB / 337.1 MB, free: 3.664 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002128/0.1485, allocations: 39.42 kB / 337.1 MB, free: 3.625 MB / 282.7 MB Notification: Performance of SimCode: time 1.463e-06/0.1485, allocations: 4 kB / 337.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of Templates: time 0.01548/0.164, allocations: 8.224 MB / 345.3 MB, free: 11.4 MB / 298.7 MB