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.028/1.028, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.297e-05/2.309e-05, allocations: 0 / 154.4 MB, free: 13.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1707, allocations: 25.15 MB / 179.5 MB, free: 0.6953 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06338/0.2341, allocations: 35.66 MB / 215.2 MB, free: 13.34 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.2344, allocations: 67.97 kB / 215.2 MB, free: 13.27 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0397/0.2741, allocations: 8.27 MB / 223.5 MB, free: 4.98 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2742, allocations: 0 / 223.5 MB, free: 4.98 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.706e-05/0.2742, allocations: 8 kB / 223.5 MB, free: 4.973 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.002552/0.2768, allocations: 0.7596 MB / 224.3 MB, free: 4.168 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.2768, allocations: 8.031 kB / 224.3 MB, free: 4.16 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001976/0.2771, allocations: 82.53 kB / 224.4 MB, free: 4.07 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001827/0.2772, allocations: 59.28 kB / 224.4 MB, free: 4.012 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006711/0.2779, allocations: 327.6 kB / 224.7 MB, free: 3.656 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/0.278, allocations: 37 kB / 224.8 MB, free: 3.621 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.2782, allocations: 43.91 kB / 224.8 MB, free: 3.578 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.2798, allocations: 0.5761 MB / 225.4 MB, free: 2.992 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/0.2798, allocations: 4 kB / 225.4 MB, free: 2.988 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.47e-05/0.2799, allocations: 23.95 kB / 225.4 MB, free: 2.965 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.28, allocations: 8 kB / 225.4 MB, free: 2.957 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.2816, allocations: 0.5388 MB / 226 MB, free: 2.414 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004204/0.2858, allocations: 1.336 MB / 227.3 MB, free: 1.02 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.2872, allocations: 418 kB / 227.7 MB, free: 0.6016 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007445/0.288, allocations: 270.5 kB / 228 MB, free: 344 kB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.945e-05/0.2881, allocations: 12.55 kB / 228 MB, free: 332 kB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.2882, allocations: 39.12 kB / 228 MB, free: 280 kB / 186.7 MB Notification: Performance of pre-optimization done (n=55): time 3.957e-06/0.2882, allocations: 4 kB / 228 MB, free: 276 kB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.005923/0.2941, allocations: 1.967 MB / 230 MB, free: 14.21 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.2942, allocations: 55.97 kB / 230.1 MB, free: 14.15 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005072/0.2947, allocations: 279.5 kB / 230.3 MB, free: 13.86 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001598/0.2949, allocations: 49.64 kB / 230.4 MB, free: 13.81 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.2951, allocations: 247.8 kB / 230.6 MB, free: 13.57 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.2954, allocations: 213 kB / 230.8 MB, free: 13.36 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.871e-05/0.2955, allocations: 19.98 kB / 230.8 MB, free: 13.34 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2956, allocations: 334.8 kB / 231.2 MB, free: 13 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008378/0.2965, allocations: 289.5 kB / 231.5 MB, free: 12.72 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008816/0.2974, allocations: 335.1 kB / 231.8 MB, free: 12.39 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006547/0.2981, allocations: 222 kB / 232 MB, free: 12.17 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.2981, allocations: 4 kB / 232 MB, free: 12.17 MB / 202.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002461/0.3006, allocations: 0.8333 MB / 232.8 MB, free: 11.32 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.3006, allocations: 17.92 kB / 232.9 MB, free: 11.3 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.3007, allocations: 4.031 kB / 232.9 MB, free: 11.3 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00221/0.3029, allocations: 0.7523 MB / 233.6 MB, free: 10.55 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008/0.3037, allocations: 107.8 kB / 233.7 MB, free: 10.44 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/0.306, allocations: 1.06 MB / 234.8 MB, free: 9.355 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.3074, allocations: 144 kB / 234.9 MB, free: 9.215 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.3075, allocations: 35.98 kB / 235 MB, free: 9.18 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.0002712/0.3078, allocations: 153.8 kB / 235.1 MB, free: 9.023 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.308, allocations: 47.44 kB / 235.2 MB, free: 8.977 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002296/0.3082, allocations: 68.72 kB / 235.2 MB, free: 8.906 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.3083, allocations: 8 kB / 235.2 MB, free: 8.898 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.3083, allocations: 0 / 235.2 MB, free: 8.898 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.3083, allocations: 3.984 kB / 235.2 MB, free: 8.895 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003831/0.3121, allocations: 1.466 MB / 236.7 MB, free: 7.367 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.3122, allocations: 0 / 236.7 MB, free: 7.367 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008362/0.313, allocations: 83.88 kB / 236.8 MB, free: 7.285 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002094/0.3152, allocations: 0.7312 MB / 237.5 MB, free: 6.551 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/0.3153, allocations: 27.97 kB / 237.5 MB, free: 6.523 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.3174, allocations: 1.046 MB / 238.6 MB, free: 5.453 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3175, allocations: 80 / 238.6 MB, free: 5.453 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.3208, allocations: 1.183 MB / 239.8 MB, free: 4.25 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004937/0.3214, allocations: 196.4 kB / 240 MB, free: 4.039 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.3216, allocations: 24 kB / 240 MB, free: 4.016 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.3228, allocations: 147.8 kB / 240.1 MB, free: 3.871 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004851/0.3233, allocations: 140.2 kB / 240.3 MB, free: 3.734 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.3235, allocations: 39.95 kB / 240.3 MB, free: 3.695 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003685/0.3238, allocations: 214.2 kB / 240.5 MB, free: 3.488 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3238, allocations: 0 / 240.5 MB, free: 3.488 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007714/0.3246, allocations: 148 kB / 240.7 MB, free: 3.344 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.003634/0.3283, allocations: 1.74 MB / 242.4 MB, free: 1.57 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.3305, allocations: 0.6873 MB / 243.1 MB, free: 0.8867 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.3305, allocations: 4.062 kB / 243.1 MB, free: 0.8828 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.3317, allocations: 377.8 kB / 243.5 MB, free: 0.5117 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000862/0.3326, allocations: 69.16 kB / 243.5 MB, free: 452 kB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1469/0.4795, allocations: 1.338 MB / 244.9 MB, free: 53.7 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004339/0.48, allocations: 0.8524 MB / 245.7 MB, free: 52.99 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.4804, allocations: 149.7 kB / 245.9 MB, free: 52.98 MB / 202.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4804, allocations: 3.281 kB / 245.9 MB, free: 52.98 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.006/3.486, allocations: 9.299 MB / 255.2 MB, free: 49.84 MB / 202.7 MB