Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.091/2.091, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005168/0.0005172, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1039, allocations: 44.49 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4086/0.5126, allocations: 74.48 MB / 383.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.5129, allocations: 79.8 kB / 383.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03997/0.5529, allocations: 9.021 MB / 392.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5529, allocations: 0 / 392.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.553, allocations: 7.812 kB / 392.6 MB, free: 14.09 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.002359/0.5553, allocations: 0.8257 MB / 393.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.5554, allocations: 11.84 kB / 393.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.5556, allocations: 66 kB / 393.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.5561, allocations: 336.2 kB / 393.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/0.5562, allocations: 41.5 kB / 393.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.5563, allocations: 40.81 kB / 393.9 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.5579, allocations: 0.5913 MB / 394.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.378e-05/0.558, allocations: 7.281 kB / 394.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-05/0.5581, allocations: 16.62 kB / 394.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.5581, allocations: 11.62 kB / 394.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.5599, allocations: 0.5548 MB / 395 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/0.5635, allocations: 1.341 MB / 396.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.5652, allocations: 481.1 kB / 396.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.5653, allocations: 12.11 kB / 396.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.5654, allocations: 42.38 kB / 396.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.437e-06/0.5654, allocations: 0 / 396.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.01033/0.5757, allocations: 2.919 MB / 399.8 MB, free: 11.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.5758, allocations: 59.59 kB / 399.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003818/0.5762, allocations: 294.2 kB / 400.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.5763, allocations: 54.25 kB / 400.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.5765, allocations: 237.7 kB / 400.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.5767, allocations: 236.6 kB / 400.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.5768, allocations: 14.25 kB / 400.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.561e-05/0.5768, allocations: 335.1 kB / 401 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009751/0.5778, allocations: 297.2 kB / 401.3 MB, free: 10.9 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009908/0.5788, allocations: 349.6 kB / 401.7 MB, free: 10.87 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007914/0.5796, allocations: 231 kB / 401.9 MB, free: 10.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5797, allocations: 0 / 401.9 MB, free: 10.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002716/0.5824, allocations: 0.8378 MB / 402.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.5825, allocations: 5.156 kB / 402.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.113e-05/0.5825, allocations: 6.109 kB / 402.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001753/0.5843, allocations: 0.5757 MB / 403.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007444/0.585, allocations: 102.1 kB / 403.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.587, allocations: 0.9774 MB / 404.4 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.5884, allocations: 147 kB / 404.5 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.5885, allocations: 39.73 kB / 404.6 MB, free: 10.19 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.0004186/0.5889, allocations: 178.7 kB / 404.7 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.5891, allocations: 50.64 kB / 404.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003031/0.5921, allocations: 0.9298 MB / 405.7 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.5922, allocations: 3.844 kB / 405.7 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5922, allocations: 0 / 405.7 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.5922, allocations: 6.953 kB / 405.7 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004028/0.5963, allocations: 1.487 MB / 407.2 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5963, allocations: 0 / 407.2 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000805/0.5971, allocations: 99.73 kB / 407.3 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.5987, allocations: 0.5486 MB / 407.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.5988, allocations: 30.12 kB / 407.9 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.6006, allocations: 0.9624 MB / 408.9 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.6006, allocations: 0 / 408.9 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003821/0.6045, allocations: 1.209 MB / 410.1 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004003/0.6049, allocations: 189.1 kB / 410.3 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.6051, allocations: 22.72 kB / 410.3 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.6063, allocations: 140.8 kB / 410.4 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004285/0.6068, allocations: 157.4 kB / 410.6 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.6069, allocations: 29.91 kB / 410.6 MB, free: 8.191 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003081/0.6072, allocations: 218.9 kB / 410.8 MB, free: 8.082 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6072, allocations: 0 / 410.8 MB, free: 8.082 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007627/0.608, allocations: 161.5 kB / 411 MB, free: 8.074 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.0003193/0.6083, allocations: 159.6 kB / 411.1 MB, free: 7.965 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002443/0.6108, allocations: 0.809 MB / 411.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6108, allocations: 0 / 411.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.6121, allocations: 413.3 kB / 412.3 MB, free: 7.684 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000863/0.613, allocations: 73.47 kB / 412.4 MB, free: 7.664 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.6169, allocations: 1.712 MB / 414.1 MB, free: 6.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.6173, allocations: 0.8586 MB / 415 MB, free: 5.727 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.6176, allocations: 38.7 kB / 415 MB, free: 5.715 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6176, allocations: 0 / 415 MB, free: 5.715 MB / 314.7 MB Notification: Performance of Templates: time 0.01616/0.6337, allocations: 8.297 MB / 423.3 MB, free: 1.551 MB / 314.7 MB