Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.146/1.146, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002518, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05099/0.05126, allocations: 25.17 MB / 184 MB, free: 6.023 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.252, allocations: 35.73 MB / 219.8 MB, free: 6.234 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.2523, allocations: 72.2 kB / 219.8 MB, free: 6.223 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0346/0.2869, allocations: 8.262 MB / 228.1 MB, free: 3.113 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.287, allocations: 0 / 228.1 MB, free: 3.113 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.153e-05/0.287, allocations: 15.53 kB / 228.1 MB, free: 3.105 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.002328/0.2893, allocations: 0.8128 MB / 228.9 MB, free: 2.5 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2894, allocations: 8.969 kB / 228.9 MB, free: 2.5 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.2896, allocations: 56.31 kB / 229 MB, free: 2.473 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.2901, allocations: 325.2 kB / 229.3 MB, free: 2.172 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.712e-05/0.2901, allocations: 34.75 kB / 229.3 MB, free: 2.152 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.2903, allocations: 54.64 kB / 229.4 MB, free: 2.113 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.2919, allocations: 0.6078 MB / 230 MB, free: 1.664 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.2919, allocations: 0 / 230 MB, free: 1.664 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.94e-05/0.292, allocations: 19.45 kB / 230 MB, free: 1.656 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.292, allocations: 16 kB / 230 MB, free: 1.641 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/0.2939, allocations: 0.5946 MB / 230.6 MB, free: 1.211 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003383/0.2973, allocations: 1.342 MB / 232 MB, free: 72 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.2989, allocations: 441 kB / 232.4 MB, free: 15.75 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.084e-05/0.299, allocations: 8.078 kB / 232.4 MB, free: 15.75 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.299, allocations: 38.5 kB / 232.5 MB, free: 15.71 MB / 186.7 MB Notification: Performance of pre-optimization done (n=55): time 2.625e-06/0.299, allocations: 0 / 232.5 MB, free: 15.71 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.0113/0.3104, allocations: 2.981 MB / 235.4 MB, free: 13.14 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.3105, allocations: 59.97 kB / 235.5 MB, free: 13.07 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005323/0.311, allocations: 320.7 kB / 235.8 MB, free: 12.81 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.3111, allocations: 51.88 kB / 235.9 MB, free: 12.77 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.3113, allocations: 240.7 kB / 236.1 MB, free: 12.56 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002642/0.3116, allocations: 220 kB / 236.3 MB, free: 12.38 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.178e-05/0.3117, allocations: 14.69 kB / 236.3 MB, free: 12.38 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3118, allocations: 336.3 kB / 236.6 MB, free: 12.05 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.3129, allocations: 317.7 kB / 237 MB, free: 11.85 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.3141, allocations: 379.4 kB / 237.3 MB, free: 11.58 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009028/0.315, allocations: 251.5 kB / 237.6 MB, free: 11.43 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.315, allocations: 0 / 237.6 MB, free: 11.43 MB / 186.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003011/0.318, allocations: 0.8999 MB / 238.5 MB, free: 10.79 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.3181, allocations: 15.94 kB / 238.5 MB, free: 10.77 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3181, allocations: 4.031 kB / 238.5 MB, free: 10.77 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.3204, allocations: 0.7641 MB / 239.3 MB, free: 10.14 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008023/0.3212, allocations: 111.3 kB / 239.4 MB, free: 10.04 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/0.3236, allocations: 1.071 MB / 240.4 MB, free: 9.141 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.325, allocations: 150 kB / 240.6 MB, free: 9.004 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.3251, allocations: 33.86 kB / 240.6 MB, free: 8.977 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.0004284/0.3255, allocations: 188.5 kB / 240.8 MB, free: 8.816 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.3257, allocations: 47.44 kB / 240.8 MB, free: 8.77 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.3259, allocations: 65.78 kB / 240.9 MB, free: 8.746 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.3259, allocations: 8 kB / 240.9 MB, free: 8.738 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/0.3259, allocations: 0 / 240.9 MB, free: 8.738 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.3259, allocations: 3.984 kB / 240.9 MB, free: 8.734 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004216/0.3302, allocations: 1.521 MB / 242.4 MB, free: 7.551 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.3302, allocations: 0 / 242.4 MB, free: 7.551 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007894/0.331, allocations: 91.75 kB / 242.5 MB, free: 7.465 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.3331, allocations: 0.75 MB / 243.3 MB, free: 6.848 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.3333, allocations: 26.02 kB / 243.3 MB, free: 6.832 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002258/0.3355, allocations: 1.047 MB / 244.4 MB, free: 5.797 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.3356, allocations: 0 / 244.4 MB, free: 5.797 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004184/0.3398, allocations: 1.284 MB / 245.6 MB, free: 4.492 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.3402, allocations: 192.4 kB / 245.8 MB, free: 4.285 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002021/0.3405, allocations: 20 kB / 245.8 MB, free: 4.266 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.3417, allocations: 143.9 kB / 246 MB, free: 4.125 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004592/0.3422, allocations: 148.2 kB / 246.1 MB, free: 3.98 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.3423, allocations: 35.97 kB / 246.2 MB, free: 3.945 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003654/0.3427, allocations: 223.2 kB / 246.4 MB, free: 3.727 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3427, allocations: 0 / 246.4 MB, free: 3.727 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007287/0.3434, allocations: 144 kB / 246.5 MB, free: 3.586 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.0003336/0.3438, allocations: 155.1 kB / 246.7 MB, free: 3.426 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00265/0.3464, allocations: 0.7493 MB / 247.4 MB, free: 2.676 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3465, allocations: 0 / 247.4 MB, free: 2.676 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.3479, allocations: 405.9 kB / 247.8 MB, free: 2.281 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008509/0.3488, allocations: 74.58 kB / 247.9 MB, free: 2.207 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.3531, allocations: 1.68 MB / 249.6 MB, free: 0.5 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.3537, allocations: 0.8517 MB / 250.4 MB, free: 15.62 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.354, allocations: 39.42 kB / 250.5 MB, free: 15.58 MB / 202.7 MB Notification: Performance of SimCode: time 1.172e-06/0.354, allocations: 0 / 250.5 MB, free: 15.58 MB / 202.7 MB Notification: Performance of Templates: time 0.01723/0.3713, allocations: 7.504 MB / 258 MB, free: 8.074 MB / 202.7 MB