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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.044/1.044, allocations: 111.1 MB / 126.7 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002701/0.0002704, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05577/0.05607, allocations: 25.16 MB / 183.6 MB, free: 5.891 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2155/0.2716, allocations: 35.75 MB / 219.3 MB, free: 5.828 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.2719, allocations: 65.53 kB / 219.4 MB, free: 5.82 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03614/0.3081, allocations: 8.27 MB / 227.7 MB, free: 2.703 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3081, allocations: 0 / 227.7 MB, free: 2.703 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.537e-05/0.3081, allocations: 9.312 kB / 227.7 MB, free: 2.703 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.002372/0.3105, allocations: 0.8131 MB / 228.5 MB, free: 2.07 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3106, allocations: 8.031 kB / 228.5 MB, free: 2.062 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.3107, allocations: 82.95 kB / 228.6 MB, free: 1.996 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.3109, allocations: 59.28 kB / 228.6 MB, free: 1.938 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.3114, allocations: 323 kB / 229 MB, free: 1.617 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.3115, allocations: 32.44 kB / 229 MB, free: 1.598 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.3116, allocations: 53.83 kB / 229 MB, free: 1.559 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.3133, allocations: 0.6054 MB / 229.6 MB, free: 1.109 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.3133, allocations: 9.125 kB / 229.7 MB, free: 1.102 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.094e-05/0.3134, allocations: 21.39 kB / 229.7 MB, free: 1.094 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.3135, allocations: 12 kB / 229.7 MB, free: 1.082 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.3153, allocations: 0.5962 MB / 230.3 MB, free: 0.6484 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003608/0.3189, allocations: 1.337 MB / 231.6 MB, free: 15.52 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.3205, allocations: 444.1 kB / 232.1 MB, free: 15.2 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.903e-05/0.3206, allocations: 12 kB / 232.1 MB, free: 15.19 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.3207, allocations: 34.88 kB / 232.1 MB, free: 15.15 MB / 186.7 MB Notification: Performance of pre-optimization done (n=55): time 3.446e-06/0.3207, allocations: 0 / 232.1 MB, free: 15.15 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.01113/0.3318, allocations: 2.984 MB / 235.1 MB, free: 12.59 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.3319, allocations: 59.97 kB / 235.1 MB, free: 12.52 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004601/0.3324, allocations: 286.5 kB / 235.4 MB, free: 12.27 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.3325, allocations: 51.44 kB / 235.5 MB, free: 12.23 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.3327, allocations: 239.9 kB / 235.7 MB, free: 12.03 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.333, allocations: 218.5 kB / 235.9 MB, free: 11.85 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.042e-05/0.3331, allocations: 13.06 kB / 235.9 MB, free: 11.85 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3333, allocations: 340 kB / 236.3 MB, free: 11.52 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.3343, allocations: 315.8 kB / 236.6 MB, free: 11.32 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.3354, allocations: 379.4 kB / 236.9 MB, free: 11.05 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008917/0.3363, allocations: 243.3 kB / 237.2 MB, free: 10.9 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3363, allocations: 0 / 237.2 MB, free: 10.9 MB / 186.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00289/0.3392, allocations: 0.9022 MB / 238.1 MB, free: 10.26 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.3393, allocations: 11.94 kB / 238.1 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3393, allocations: 4.031 kB / 238.1 MB, free: 10.24 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002207/0.3415, allocations: 0.7733 MB / 238.9 MB, free: 9.613 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007576/0.3423, allocations: 103.8 kB / 239 MB, free: 9.516 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/0.3446, allocations: 1.075 MB / 240 MB, free: 8.613 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.346, allocations: 147.4 kB / 240.2 MB, free: 8.48 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.3461, allocations: 27.86 kB / 240.2 MB, free: 8.457 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.0004161/0.3465, allocations: 184.5 kB / 240.4 MB, free: 8.301 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.3467, allocations: 47.44 kB / 240.4 MB, free: 8.254 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001974/0.3469, allocations: 65.84 kB / 240.5 MB, free: 8.234 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.347, allocations: 8 kB / 240.5 MB, free: 8.227 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.347, allocations: 0 / 240.5 MB, free: 8.227 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.347, allocations: 3.984 kB / 240.5 MB, free: 8.223 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004268/0.3513, allocations: 1.522 MB / 242 MB, free: 7.035 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.3513, allocations: 0 / 242 MB, free: 7.035 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008665/0.3522, allocations: 91.75 kB / 242.1 MB, free: 6.949 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.3543, allocations: 0.7518 MB / 242.9 MB, free: 6.332 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.3545, allocations: 33.64 kB / 242.9 MB, free: 6.309 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002721/0.3572, allocations: 1.047 MB / 244 MB, free: 5.41 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.3573, allocations: 4.078 kB / 244 MB, free: 5.406 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005585/0.3629, allocations: 1.283 MB / 245.3 MB, free: 4.223 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006275/0.3636, allocations: 192.4 kB / 245.4 MB, free: 4.016 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002611/0.3638, allocations: 20 kB / 245.5 MB, free: 3.996 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/0.3656, allocations: 143.9 kB / 245.6 MB, free: 3.855 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006981/0.3663, allocations: 148.2 kB / 245.7 MB, free: 3.711 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/0.3665, allocations: 31.97 kB / 245.8 MB, free: 3.68 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0005463/0.3671, allocations: 223.2 kB / 246 MB, free: 3.461 MB / 186.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.3671, allocations: 0 / 246 MB, free: 3.461 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001357/0.3685, allocations: 152 kB / 246.1 MB, free: 3.312 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.01039/0.3789, allocations: 1.825 MB / 248 MB, free: 1.457 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.003587/0.3825, allocations: 0.7415 MB / 248.7 MB, free: 0.7188 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 9.238e-06/0.3826, allocations: 0 / 248.7 MB, free: 0.7188 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009954/0.3925, allocations: 421.5 kB / 249.1 MB, free: 316 kB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.3938, allocations: 73.44 kB / 249.2 MB, free: 240 kB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03165/0.4254, allocations: 4.126 MB / 253.3 MB, free: 12.04 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007001/0.4262, allocations: 0.8478 MB / 254.2 MB, free: 11.17 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000572/0.4268, allocations: 151.4 kB / 254.3 MB, free: 11.02 MB / 202.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4268, allocations: 0 / 254.3 MB, free: 11.02 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.869/3.296, allocations: 9.34 MB / 263.7 MB, free: 1.684 MB / 202.7 MB