Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 0.9813/0.9813, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.875e-05/1.889e-05, allocations: 0 / 154.3 MB, free: 13.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1389, allocations: 25.15 MB / 179.4 MB, free: 0.8242 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05509/0.194, allocations: 35.65 MB / 215.1 MB, free: 13.47 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.1943, allocations: 67.97 kB / 215.1 MB, free: 13.41 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03558/0.2299, allocations: 8.264 MB / 223.4 MB, free: 5.121 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.263e-06/0.2299, allocations: 0 / 223.4 MB, free: 5.121 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.483e-05/0.23, allocations: 8 kB / 223.4 MB, free: 5.113 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001902/0.2319, allocations: 0.7635 MB / 224.2 MB, free: 4.305 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.2319, allocations: 8.031 kB / 224.2 MB, free: 4.297 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.2321, allocations: 59.28 kB / 224.2 MB, free: 4.238 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000598/0.2327, allocations: 335.6 kB / 224.6 MB, free: 3.875 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.2328, allocations: 29 kB / 224.6 MB, free: 3.848 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.2329, allocations: 47.91 kB / 224.6 MB, free: 3.801 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.2343, allocations: 0.5762 MB / 225.2 MB, free: 3.215 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.859e-05/0.2344, allocations: 0 / 225.2 MB, free: 3.215 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.363e-05/0.2345, allocations: 19.95 kB / 225.2 MB, free: 3.195 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.2345, allocations: 12 kB / 225.3 MB, free: 3.184 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.2359, allocations: 0.5388 MB / 225.8 MB, free: 2.641 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.2392, allocations: 1.332 MB / 227.1 MB, free: 1.25 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.2404, allocations: 414.1 kB / 227.5 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006503/0.2411, allocations: 274.5 kB / 227.8 MB, free: 0.5664 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.095e-05/0.2412, allocations: 16.48 kB / 227.8 MB, free: 0.5508 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2412, allocations: 35.12 kB / 227.8 MB, free: 0.5039 MB / 186.7 MB Notification: Performance of pre-optimization done (n=55): time 4.344e-06/0.2412, allocations: 4 kB / 227.9 MB, free: 0.5 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.005258/0.2465, allocations: 1.971 MB / 229.8 MB, free: 14.44 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.2466, allocations: 59.97 kB / 229.9 MB, free: 14.37 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004608/0.2471, allocations: 275.5 kB / 230.2 MB, free: 14.09 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.2472, allocations: 45.7 kB / 230.2 MB, free: 14.04 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.2474, allocations: 247.7 kB / 230.4 MB, free: 13.8 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002538/0.2477, allocations: 213.1 kB / 230.6 MB, free: 13.59 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.637e-05/0.2477, allocations: 16 kB / 230.7 MB, free: 13.57 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.2479, allocations: 334.8 kB / 231 MB, free: 13.23 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007164/0.2487, allocations: 293.5 kB / 231.3 MB, free: 12.95 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007733/0.2495, allocations: 339.1 kB / 231.6 MB, free: 12.61 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005684/0.25, allocations: 218.1 kB / 231.8 MB, free: 12.4 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.989e-06/0.2501, allocations: 3.984 kB / 231.8 MB, free: 12.4 MB / 202.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002198/0.2523, allocations: 0.8411 MB / 232.7 MB, free: 11.54 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.2523, allocations: 15.88 kB / 232.7 MB, free: 11.53 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2523, allocations: 32 / 232.7 MB, free: 11.53 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001878/0.2542, allocations: 0.7569 MB / 233.4 MB, free: 10.77 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005709/0.2548, allocations: 103.8 kB / 233.5 MB, free: 10.67 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002022/0.2569, allocations: 1.066 MB / 234.6 MB, free: 9.578 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009455/0.2578, allocations: 151.8 kB / 234.8 MB, free: 9.43 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.258, allocations: 27.98 kB / 234.8 MB, free: 9.402 MB / 202.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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.0002664/0.2583, allocations: 155 kB / 234.9 MB, free: 9.242 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.2584, allocations: 43.44 kB / 235 MB, free: 9.199 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001884/0.2586, allocations: 72.72 kB / 235 MB, free: 9.125 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.225e-06/0.2587, allocations: 4 kB / 235 MB, free: 9.121 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.606e-06/0.2587, allocations: 0 / 235 MB, free: 9.121 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2587, allocations: 3.984 kB / 235.1 MB, free: 9.117 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003478/0.2622, allocations: 1.466 MB / 236.5 MB, free: 7.59 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.034e-06/0.2622, allocations: 0 / 236.5 MB, free: 7.59 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006357/0.2629, allocations: 87.89 kB / 236.6 MB, free: 7.504 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001781/0.2647, allocations: 0.7269 MB / 237.3 MB, free: 6.773 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.2648, allocations: 27.95 kB / 237.4 MB, free: 6.746 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.2668, allocations: 1.045 MB / 238.4 MB, free: 5.676 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.838e-06/0.2668, allocations: 0 / 238.4 MB, free: 5.676 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002952/0.2698, allocations: 1.183 MB / 239.6 MB, free: 4.473 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004287/0.2702, allocations: 188.4 kB / 239.8 MB, free: 4.27 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.2704, allocations: 28 kB / 239.8 MB, free: 4.242 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008555/0.2713, allocations: 139.8 kB / 239.9 MB, free: 4.105 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004087/0.2717, allocations: 156.2 kB / 240.1 MB, free: 3.953 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.2718, allocations: 27.97 kB / 240.1 MB, free: 3.926 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003332/0.2722, allocations: 218.2 kB / 240.3 MB, free: 3.715 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.63e-07/0.2722, allocations: 0 / 240.3 MB, free: 3.715 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007322/0.2729, allocations: 148 kB / 240.5 MB, free: 3.57 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (J1.phi,J1.w,clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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.00031/0.2733, allocations: 154.3 kB / 240.6 MB, free: 3.41 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.275, allocations: 0.6832 MB / 241.3 MB, free: 2.73 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.595e-06/0.2751, allocations: 0 / 241.3 MB, free: 2.73 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009591/0.276, allocations: 374 kB / 241.7 MB, free: 2.359 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006843/0.2767, allocations: 77.06 kB / 241.7 MB, free: 2.281 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/0.28, allocations: 1.242 MB / 243 MB, free: 1.016 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006116/0.2806, allocations: 0.8515 MB / 243.8 MB, free: 136 kB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.2809, allocations: 39.41 kB / 243.9 MB, free: 96 kB / 202.7 MB Notification: Performance of SimCode: time 2.018e-06/0.2809, allocations: 0 / 243.9 MB, free: 96 kB / 202.7 MB Notification: Performance of Templates: time 0.1295/0.4104, allocations: 7.496 MB / 251.4 MB, free: 52.3 MB / 202.7 MB