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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.098/1.098, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.369e-05/1.384e-05, allocations: 0 / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04669/0.04673, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1765/0.2233, allocations: 34.99 MB / 208.3 MB, free: 7 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.2236, allocations: 65.22 kB / 208.3 MB, free: 7 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03184/0.2554, allocations: 8.192 MB / 216.5 MB, free: 5.852 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.666e-06/0.2555, allocations: 0 / 216.5 MB, free: 5.852 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.2555, allocations: 11.38 kB / 216.5 MB, free: 5.852 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.001583/0.2571, allocations: 0.7688 MB / 217.3 MB, free: 5.285 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2572, allocations: 11.62 kB / 217.3 MB, free: 5.281 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.2573, allocations: 56.19 kB / 217.4 MB, free: 5.254 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.2578, allocations: 333.5 kB / 217.7 MB, free: 4.977 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.2579, allocations: 11.38 kB / 217.7 MB, free: 4.977 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.258, allocations: 29.44 kB / 217.7 MB, free: 4.977 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001089/0.2591, allocations: 0.5144 MB / 218.3 MB, free: 4.914 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.2601, allocations: 0.524 MB / 218.8 MB, free: 4.738 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.2602, allocations: 7.859 kB / 218.8 MB, free: 4.73 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.006e-05/0.2603, allocations: 0 / 218.8 MB, free: 4.73 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.2603, allocations: 15 kB / 218.8 MB, free: 4.727 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002851/0.2631, allocations: 1.254 MB / 220.1 MB, free: 4.043 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008645/0.2641, allocations: 391.5 kB / 220.4 MB, free: 3.984 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.2645, allocations: 262.3 kB / 220.7 MB, free: 3.961 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.702e-05/0.2646, allocations: 11.48 kB / 220.7 MB, free: 3.961 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.2647, allocations: 38.56 kB / 220.7 MB, free: 3.922 MB / 170.7 MB Notification: Performance of pre-optimization done (n=55): time 4.154e-06/0.2647, allocations: 0 / 220.7 MB, free: 3.922 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.004816/0.2695, allocations: 1.864 MB / 222.6 MB, free: 3.125 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.2696, allocations: 59.69 kB / 222.7 MB, free: 3.062 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.2699, allocations: 252.3 kB / 222.9 MB, free: 2.938 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.521e-05/0.27, allocations: 47.94 kB / 223 MB, free: 2.898 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.2701, allocations: 243.1 kB / 223.2 MB, free: 2.703 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.2703, allocations: 207.4 kB / 223.4 MB, free: 2.559 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.686e-05/0.2704, allocations: 0 / 223.4 MB, free: 2.559 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.822e-05/0.2704, allocations: 337.2 kB / 223.7 MB, free: 2.238 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005381/0.271, allocations: 268.8 kB / 224 MB, free: 2.227 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005887/0.2716, allocations: 325.3 kB / 224.3 MB, free: 2.18 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007125/0.2723, allocations: 231.1 kB / 224.5 MB, free: 2.129 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.044e-06/0.2723, allocations: 0 / 224.5 MB, free: 2.129 MB / 170.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001952/0.2743, allocations: 0.792 MB / 225.3 MB, free: 1.988 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2743, allocations: 10.47 kB / 225.3 MB, free: 1.984 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.496e-06/0.2744, allocations: 0 / 225.3 MB, free: 1.984 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/0.2759, allocations: 0.7568 MB / 226.1 MB, free: 1.789 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/0.2764, allocations: 99.95 kB / 226.2 MB, free: 1.77 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.2783, allocations: 1.168 MB / 227.4 MB, free: 1.156 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008846/0.2792, allocations: 135.7 kB / 227.5 MB, free: 1.113 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.2793, allocations: 31.08 kB / 227.5 MB, free: 1.109 MB / 170.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002691/0.2796, allocations: 119.4 kB / 227.6 MB, free: 0.9961 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.2798, allocations: 46.89 kB / 227.7 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.28, allocations: 69.77 kB / 227.8 MB, free: 0.957 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.24e-06/0.28, allocations: 3.875 kB / 227.8 MB, free: 0.957 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.943e-06/0.28, allocations: 0 / 227.8 MB, free: 0.957 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.323e-06/0.28, allocations: 0 / 227.8 MB, free: 0.957 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.2828, allocations: 1.382 MB / 229.1 MB, free: 396 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.887e-06/0.2829, allocations: 0 / 229.1 MB, free: 396 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006064/0.2835, allocations: 84.48 kB / 229.2 MB, free: 380 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.285, allocations: 0.724 MB / 229.9 MB, free: 184 kB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.2851, allocations: 19.66 kB / 230 MB, free: 176 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/0.2871, allocations: 1.118 MB / 231.1 MB, free: 15.56 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.936e-06/0.2872, allocations: 7.953 kB / 231.1 MB, free: 15.55 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.2897, allocations: 1.14 MB / 232.2 MB, free: 15.27 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000423/0.2902, allocations: 187.1 kB / 232.4 MB, free: 15.12 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.2904, allocations: 11.69 kB / 232.4 MB, free: 15.12 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008265/0.2912, allocations: 135.7 kB / 232.6 MB, free: 15.08 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/0.2916, allocations: 145.2 kB / 232.7 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.561e-05/0.2917, allocations: 34.44 kB / 232.7 MB, free: 14.99 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000269/0.292, allocations: 208.4 kB / 232.9 MB, free: 14.88 MB / 186.7 MB Notification: Performance of sort global known variables: time 9.23e-07/0.292, allocations: 0 / 232.9 MB, free: 14.88 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006825/0.2927, allocations: 127.7 kB / 233.1 MB, free: 14.88 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) * 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.0003139/0.293, allocations: 134.5 kB / 233.2 MB, free: 14.77 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.2945, allocations: 0.6488 MB / 233.8 MB, free: 14.72 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.2945, allocations: 3.938 kB / 233.8 MB, free: 14.71 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008178/0.2954, allocations: 362.2 kB / 234.2 MB, free: 14.68 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006861/0.2961, allocations: 67.22 kB / 234.3 MB, free: 14.64 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.2992, allocations: 1.2 MB / 235.5 MB, free: 13.54 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006046/0.2999, allocations: 0.8515 MB / 236.3 MB, free: 12.67 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.3001, allocations: 42.47 kB / 236.4 MB, free: 12.63 MB / 186.7 MB Notification: Performance of SimCode: time 4.038e-06/0.3001, allocations: 0 / 236.4 MB, free: 12.63 MB / 186.7 MB Notification: Performance of Templates: time 0.01498/0.3151, allocations: 7.465 MB / 243.8 MB, free: 5.223 MB / 186.7 MB