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 1.039/1.039, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002689, allocations: 7.938 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04712/0.04741, allocations: 25.15 MB / 183.5 MB, free: 5.988 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1767/0.2241, allocations: 35.75 MB / 219.2 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001661/0.2244, allocations: 65.03 kB / 219.3 MB, free: 6.16 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0313/0.2557, allocations: 8.266 MB / 227.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.817e-06/0.2557, allocations: 3.938 kB / 227.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.037e-05/0.2558, allocations: 11.16 kB / 227.6 MB, free: 3.043 MB / 170.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.001657/0.2574, allocations: 0.8092 MB / 228.4 MB, free: 2.438 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2575, allocations: 13.03 kB / 228.4 MB, free: 2.434 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.2576, allocations: 55.47 kB / 228.5 MB, free: 2.406 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004911/0.2581, allocations: 332.1 kB / 228.8 MB, free: 2.105 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.381e-05/0.2582, allocations: 34.25 kB / 228.8 MB, free: 2.086 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.2583, allocations: 46.78 kB / 228.9 MB, free: 2.055 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.2597, allocations: 0.6036 MB / 229.5 MB, free: 1.609 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.2597, allocations: 4 kB / 229.5 MB, free: 1.605 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.383e-05/0.2598, allocations: 23.45 kB / 229.5 MB, free: 1.598 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.2598, allocations: 8 kB / 229.5 MB, free: 1.59 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.2614, allocations: 0.6018 MB / 230.1 MB, free: 1.148 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.2641, allocations: 1.332 MB / 231.4 MB, free: 20 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.2655, allocations: 448.8 kB / 231.9 MB, free: 15.7 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.096e-05/0.2655, allocations: 7.766 kB / 231.9 MB, free: 15.69 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.2656, allocations: 38.5 kB / 231.9 MB, free: 15.65 MB / 186.7 MB Notification: Performance of pre-optimization done (n=55): time 3.64e-06/0.2656, allocations: 0 / 231.9 MB, free: 15.65 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.008949/0.2746, allocations: 2.983 MB / 234.9 MB, free: 13.09 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.2746, allocations: 55.97 kB / 235 MB, free: 13.02 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004333/0.2751, allocations: 287.8 kB / 235.2 MB, free: 12.78 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 9.98e-05/0.2752, allocations: 48.62 kB / 235.3 MB, free: 12.73 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.2754, allocations: 247.2 kB / 235.5 MB, free: 12.53 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.2757, allocations: 216 kB / 235.7 MB, free: 12.35 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.2757, allocations: 14.69 kB / 235.8 MB, free: 12.35 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.2759, allocations: 336.8 kB / 236.1 MB, free: 12.02 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008608/0.2768, allocations: 313.4 kB / 236.4 MB, free: 11.82 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009069/0.2777, allocations: 377 kB / 236.8 MB, free: 11.56 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007423/0.2785, allocations: 251.6 kB / 237 MB, free: 11.4 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.294e-06/0.2785, allocations: 4 kB / 237 MB, free: 11.39 MB / 186.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00244/0.281, allocations: 0.9006 MB / 237.9 MB, free: 10.75 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.281, allocations: 4.625 kB / 237.9 MB, free: 10.75 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.281, allocations: 3.953 kB / 237.9 MB, free: 10.75 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001826/0.2829, allocations: 0.7753 MB / 238.7 MB, free: 10.12 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005379/0.2834, allocations: 103.6 kB / 238.8 MB, free: 10.02 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.2854, allocations: 1.071 MB / 239.9 MB, free: 9.117 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000941/0.2864, allocations: 148.5 kB / 240 MB, free: 8.984 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.2865, allocations: 30.55 kB / 240 MB, free: 8.961 MB / 186.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 (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.00041/0.287, allocations: 190.2 kB / 240.2 MB, free: 8.797 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.2871, allocations: 43.44 kB / 240.3 MB, free: 8.754 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.2873, allocations: 70.03 kB / 240.3 MB, free: 8.73 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.943e-06/0.2873, allocations: 4 kB / 240.3 MB, free: 8.727 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.57e-06/0.2873, allocations: 3.938 kB / 240.3 MB, free: 8.723 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.2873, allocations: 7.984 kB / 240.3 MB, free: 8.715 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003627/0.291, allocations: 1.522 MB / 241.9 MB, free: 7.531 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.189e-06/0.291, allocations: 0 / 241.9 MB, free: 7.531 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005563/0.2916, allocations: 87.88 kB / 242 MB, free: 7.445 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.2933, allocations: 0.743 MB / 242.7 MB, free: 6.832 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.2934, allocations: 31.08 kB / 242.7 MB, free: 6.812 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.2955, allocations: 1.049 MB / 243.8 MB, free: 5.797 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.694e-06/0.2956, allocations: 0 / 243.8 MB, free: 5.797 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003497/0.2991, allocations: 1.291 MB / 245.1 MB, free: 4.488 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000436/0.2996, allocations: 192.4 kB / 245.3 MB, free: 4.281 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.2997, allocations: 20 kB / 245.3 MB, free: 4.262 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007993/0.3005, allocations: 143.9 kB / 245.4 MB, free: 4.121 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/0.3009, allocations: 156.2 kB / 245.6 MB, free: 3.969 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.515e-05/0.3011, allocations: 27.97 kB / 245.6 MB, free: 3.941 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003507/0.3014, allocations: 223.2 kB / 245.8 MB, free: 3.723 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.79e-07/0.3014, allocations: 0 / 245.8 MB, free: 3.723 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000749/0.3022, allocations: 144 kB / 246 MB, free: 3.582 MB / 186.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) * Number of clocked states: 0 () * 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.0003143/0.3025, allocations: 155.1 kB / 246.1 MB, free: 3.422 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00216/0.3047, allocations: 0.7484 MB / 246.9 MB, free: 2.676 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.115e-06/0.3047, allocations: 0 / 246.9 MB, free: 2.676 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.3059, allocations: 409.9 kB / 247.3 MB, free: 2.277 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006888/0.3067, allocations: 72.47 kB / 247.3 MB, free: 2.207 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003754/0.3104, allocations: 1.676 MB / 249 MB, free: 0.5 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006252/0.3111, allocations: 0.8478 MB / 249.9 MB, free: 15.62 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.3113, allocations: 39.42 kB / 249.9 MB, free: 15.58 MB / 202.7 MB Notification: Performance of SimCode: time 1.745e-06/0.3113, allocations: 0 / 249.9 MB, free: 15.58 MB / 202.7 MB Notification: Performance of Templates: time 0.0147/0.3261, allocations: 7.502 MB / 257.4 MB, free: 8.082 MB / 202.7 MB