Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005269/0.000527, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1042, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3684/0.4727, allocations: 69.18 MB / 341.3 MB, free: 4.109 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.473, allocations: 72.2 kB / 341.4 MB, free: 4.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04365/0.5167, allocations: 8.862 MB / 350.2 MB, free: 12.44 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5168, allocations: 0 / 350.2 MB, free: 12.44 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.317e-05/0.5168, allocations: 8 kB / 350.3 MB, free: 12.43 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.003007/0.5198, allocations: 0.8383 MB / 351.1 MB, free: 11.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.5199, allocations: 8.031 kB / 351.1 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002613/0.5202, allocations: 79.78 kB / 351.2 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002085/0.5204, allocations: 63.23 kB / 351.2 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007896/0.5212, allocations: 343.2 kB / 351.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.374e-05/0.5213, allocations: 36.2 kB / 351.6 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.5215, allocations: 42.81 kB / 351.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.5235, allocations: 0.6244 MB / 352.3 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.991e-05/0.5236, allocations: 3.906 kB / 352.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.5237, allocations: 17.88 kB / 352.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.5237, allocations: 12 kB / 352.3 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.526, allocations: 0.6087 MB / 352.9 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00455/0.5306, allocations: 1.365 MB / 354.3 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.5324, allocations: 470.2 kB / 354.7 MB, free: 8.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.5326, allocations: 8.562 kB / 354.7 MB, free: 8.629 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.5326, allocations: 38.95 kB / 354.8 MB, free: 8.586 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.397e-06/0.5326, allocations: 0 / 354.8 MB, free: 8.586 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.01239/0.545, allocations: 3.082 MB / 357.9 MB, free: 5.941 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.5451, allocations: 59.97 kB / 357.9 MB, free: 5.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005577/0.5457, allocations: 284.2 kB / 358.2 MB, free: 5.637 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.5459, allocations: 48.58 kB / 358.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.5461, allocations: 206.5 kB / 358.5 MB, free: 5.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002893/0.5464, allocations: 223.2 kB / 358.7 MB, free: 5.242 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.172e-05/0.5465, allocations: 19.42 kB / 358.7 MB, free: 5.234 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.5467, allocations: 357.6 kB / 359 MB, free: 4.895 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.5478, allocations: 325 kB / 359.4 MB, free: 4.684 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.549, allocations: 384.4 kB / 359.7 MB, free: 4.418 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009207/0.5499, allocations: 267 kB / 360 MB, free: 4.242 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.55, allocations: 0 / 360 MB, free: 4.242 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003091/0.5531, allocations: 0.9404 MB / 360.9 MB, free: 3.566 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/0.5531, allocations: 4 kB / 360.9 MB, free: 3.562 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5532, allocations: 0 / 360.9 MB, free: 3.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002311/0.5555, allocations: 0.7769 MB / 361.7 MB, free: 2.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008832/0.5564, allocations: 103 kB / 361.8 MB, free: 2.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/0.5589, allocations: 1.076 MB / 362.9 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.5604, allocations: 158.2 kB / 363 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.5606, allocations: 30.67 kB / 363.1 MB, free: 1.762 MB / 282.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 (64): * Single equations (assignments): 63 * 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.0004979/0.5611, allocations: 183.6 kB / 363.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.5613, allocations: 47.44 kB / 363.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002117/0.5615, allocations: 68.69 kB / 363.4 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.5615, allocations: 8 kB / 363.4 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.5615, allocations: 3.953 kB / 363.4 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.5616, allocations: 3.984 kB / 363.4 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005001/0.5666, allocations: 1.624 MB / 365 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.5667, allocations: 7.953 kB / 365 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009168/0.5676, allocations: 105.8 kB / 365.1 MB, free: 132 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002282/0.5699, allocations: 0.7387 MB / 365.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.5701, allocations: 26.78 kB / 365.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.5724, allocations: 1.043 MB / 366.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.5725, allocations: 0 / 366.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/0.5772, allocations: 1.379 MB / 368.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005879/0.5779, allocations: 192.4 kB / 368.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.5781, allocations: 23.25 kB / 368.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/0.5795, allocations: 139.6 kB / 368.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005677/0.5801, allocations: 147.2 kB / 368.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.5802, allocations: 35.08 kB / 368.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004408/0.5807, allocations: 228.6 kB / 369.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.895e-06/0.5807, allocations: 0 / 369.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009525/0.5817, allocations: 164.6 kB / 369.2 MB, free: 12.78 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,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 (43): * Single equations (assignments): 42 * 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.00517/0.5869, allocations: 1.957 MB / 371.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002794/0.5897, allocations: 0.7607 MB / 371.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/0.5898, allocations: 0 / 371.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.5913, allocations: 428.3 kB / 372.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009436/0.5922, allocations: 76.56 kB / 372.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.6035, allocations: 4.176 MB / 376.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.6041, allocations: 0.8559 MB / 377.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003769/0.6045, allocations: 44.17 kB / 377.5 MB, free: 5.434 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.6049, allocations: 155.4 kB / 377.7 MB, free: 5.281 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6049, allocations: 0 / 377.7 MB, free: 5.281 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05543/0.6604, allocations: 15.01 MB / 392.7 MB, free: 6.324 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003553/0.6608, allocations: 213.5 kB / 392.9 MB, free: 6.082 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.35/4.011, allocations: 0 / 392.9 MB, free: 6.082 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat