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.841/1.841, allocations: 194.9 MB / 211.7 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003722, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08287/0.08327, allocations: 44.5 MB / 308.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3372/0.4205, allocations: 74.49 MB / 382.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.4208, allocations: 79.31 kB / 383 MB, free: 18.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03597/0.4567, allocations: 9.012 MB / 392 MB, free: 17.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.21e-06/0.4568, allocations: 0 / 392 MB, free: 17.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.69e-05/0.4568, allocations: 7.719 kB / 392 MB, free: 17.87 MB / 314.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.00182/0.4587, allocations: 0.8199 MB / 392.9 MB, free: 17.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.4587, allocations: 19.66 kB / 392.9 MB, free: 17.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.4589, allocations: 62.41 kB / 392.9 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004981/0.4594, allocations: 339.2 kB / 393.3 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/0.4595, allocations: 35.19 kB / 393.3 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.4596, allocations: 41.94 kB / 393.3 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.4611, allocations: 0.5944 MB / 393.9 MB, free: 16.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.4611, allocations: 10.84 kB / 393.9 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.978e-05/0.4612, allocations: 14.84 kB / 394 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.4613, allocations: 11.47 kB / 394 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.4629, allocations: 0.5489 MB / 394.5 MB, free: 16.97 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.4659, allocations: 1.342 MB / 395.9 MB, free: 16.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.4673, allocations: 475.6 kB / 396.3 MB, free: 16.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.21e-05/0.4674, allocations: 12.23 kB / 396.3 MB, free: 16.49 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.4675, allocations: 38.94 kB / 396.4 MB, free: 16.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 4.199e-06/0.4675, allocations: 4 kB / 396.4 MB, free: 16.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.008527/0.476, allocations: 2.926 MB / 399.3 MB, free: 15.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.4761, allocations: 55.03 kB / 399.4 MB, free: 15.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.4764, allocations: 259.8 kB / 399.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.4766, allocations: 50.64 kB / 399.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.4767, allocations: 238.4 kB / 399.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.4769, allocations: 238.3 kB / 400.1 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.251e-05/0.477, allocations: 13.56 kB / 400.1 MB, free: 15.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.119e-05/0.4771, allocations: 340.6 kB / 400.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007934/0.4779, allocations: 296 kB / 400.8 MB, free: 14.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008578/0.4787, allocations: 350.6 kB / 401.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006818/0.4794, allocations: 221.8 kB / 401.3 MB, free: 14.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4795, allocations: 3.938 kB / 401.3 MB, free: 14.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002205/0.4817, allocations: 0.8394 MB / 402.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.4817, allocations: 7.625 kB / 402.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/0.4818, allocations: 3.703 kB / 402.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001462/0.4832, allocations: 0.5739 MB / 402.7 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005437/0.4838, allocations: 94.84 kB / 402.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.4855, allocations: 0.9825 MB / 403.8 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009895/0.4865, allocations: 153.7 kB / 404 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.4866, allocations: 28.66 kB / 404 MB, free: 13.98 MB / 314.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): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.000384/0.487, allocations: 182.5 kB / 404.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.4872, allocations: 46.44 kB / 404.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/0.4899, allocations: 0.9299 MB / 405.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.4899, allocations: 7.875 kB / 405.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.765e-06/0.4899, allocations: 0 / 405.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.49, allocations: 7.516 kB / 405.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/0.4936, allocations: 1.491 MB / 406.7 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.581e-06/0.4937, allocations: 0 / 406.7 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006612/0.4944, allocations: 97.81 kB / 406.8 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/0.4958, allocations: 0.5447 MB / 407.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.4959, allocations: 34.27 kB / 407.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001598/0.4975, allocations: 0.9708 MB / 408.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.293e-06/0.4975, allocations: 0 / 408.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003237/0.5008, allocations: 1.205 MB / 409.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003752/0.5012, allocations: 186.8 kB / 409.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.5014, allocations: 25.69 kB / 409.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009044/0.5023, allocations: 141 kB / 409.9 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003347/0.5026, allocations: 149.4 kB / 410 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.32e-05/0.5028, allocations: 36.03 kB / 410 MB, free: 12.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002722/0.503, allocations: 217.1 kB / 410.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.85e-07/0.5031, allocations: 0 / 410.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007577/0.5038, allocations: 160.2 kB / 410.4 MB, free: 12.35 MB / 314.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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,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.0002863/0.5041, allocations: 153.7 kB / 410.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.5062, allocations: 0.8081 MB / 411.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.4e-06/0.5062, allocations: 0 / 411.4 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.5073, allocations: 416.4 kB / 411.8 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007704/0.5081, allocations: 81.69 kB / 411.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.5114, allocations: 1.705 MB / 413.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.5118, allocations: 0.8598 MB / 414.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.512, allocations: 34.73 kB / 414.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of SimCode: time 1.657e-06/0.512, allocations: 0 / 414.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of Templates: time 0.01308/0.5251, allocations: 8.304 MB / 422.8 MB, free: 5.867 MB / 314.7 MB