Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.845/1.845, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003636, allocations: 16 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08504, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3501/0.4352, allocations: 69.18 MB / 341.3 MB, free: 4.305 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003044/0.4355, allocations: 71.09 kB / 341.4 MB, free: 4.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04169/0.4772, allocations: 8.858 MB / 350.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4773, allocations: 0 / 350.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.196e-05/0.4773, allocations: 12 kB / 350.2 MB, free: 12.62 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.00259/0.4799, allocations: 0.8422 MB / 351.1 MB, free: 11.76 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.48, allocations: 8.031 kB / 351.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002003/0.4802, allocations: 83.2 kB / 351.2 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.4804, allocations: 62.44 kB / 351.2 MB, free: 11.63 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.481, allocations: 335.7 kB / 351.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.4811, allocations: 38.45 kB / 351.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.4813, allocations: 46.19 kB / 351.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.483, allocations: 0.6152 MB / 352.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.521e-05/0.4831, allocations: 11.78 kB / 352.3 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.407e-05/0.4831, allocations: 14.75 kB / 352.3 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.4832, allocations: 8 kB / 352.3 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002079/0.4853, allocations: 0.6161 MB / 352.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003762/0.489, allocations: 1.365 MB / 354.3 MB, free: 9.148 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.4907, allocations: 467.8 kB / 354.7 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.598e-05/0.4907, allocations: 8.562 kB / 354.7 MB, free: 8.812 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.4908, allocations: 50.56 kB / 354.8 MB, free: 8.758 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.156e-06/0.4908, allocations: 0 / 354.8 MB, free: 8.758 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.01149/0.5023, allocations: 3.076 MB / 357.9 MB, free: 6.121 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.5024, allocations: 55.97 kB / 357.9 MB, free: 6.055 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/0.5029, allocations: 292.9 kB / 358.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.503, allocations: 47.62 kB / 358.2 MB, free: 5.773 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.5032, allocations: 250.7 kB / 358.5 MB, free: 5.559 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.5035, allocations: 220.8 kB / 358.7 MB, free: 5.371 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.115e-05/0.5036, allocations: 18.94 kB / 358.7 MB, free: 5.363 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.5038, allocations: 342 kB / 359.1 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.5049, allocations: 324.5 kB / 359.4 MB, free: 4.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.506, allocations: 388.4 kB / 359.7 MB, free: 4.555 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009073/0.5069, allocations: 257.5 kB / 360 MB, free: 4.387 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.507, allocations: 0 / 360 MB, free: 4.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002981/0.5099, allocations: 0.9279 MB / 360.9 MB, free: 3.723 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.51, allocations: 4 kB / 360.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.51, allocations: 0 / 360.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/0.5122, allocations: 0.7713 MB / 361.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007419/0.513, allocations: 103.4 kB / 361.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.5151, allocations: 1.073 MB / 362.9 MB, free: 2.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.5165, allocations: 152 kB / 363 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.5166, allocations: 39.17 kB / 363.1 MB, free: 1.926 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.0004132/0.5171, allocations: 182.8 kB / 363.2 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.5172, allocations: 47.44 kB / 363.3 MB, free: 1.727 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.5174, allocations: 72 kB / 363.4 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.5174, allocations: 4 kB / 363.4 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.5175, allocations: 7.953 kB / 363.4 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.5175, allocations: 3.984 kB / 363.4 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004636/0.5221, allocations: 1.636 MB / 365 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.335e-06/0.5222, allocations: 7.953 kB / 365 MB, free: 388 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008548/0.523, allocations: 87.89 kB / 365.1 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.5252, allocations: 0.7452 MB / 365.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.969e-05/0.5253, allocations: 30.89 kB / 365.9 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/0.5273, allocations: 1.041 MB / 366.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5274, allocations: 0 / 366.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004335/0.5317, allocations: 1.37 MB / 368.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000412/0.5321, allocations: 195.3 kB / 368.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.5323, allocations: 23.12 kB / 368.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.5336, allocations: 143.5 kB / 368.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000479/0.5341, allocations: 143.6 kB / 368.8 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.5342, allocations: 35.59 kB / 368.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003421/0.5345, allocations: 225.7 kB / 369 MB, free: 13.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.605e-06/0.5345, allocations: 0 / 369 MB, free: 13.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007702/0.5353, allocations: 167 kB / 369.2 MB, free: 12.95 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.004685/0.54, allocations: 1.956 MB / 371.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.5426, allocations: 0.7603 MB / 371.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.5426, allocations: 0 / 371.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.5439, allocations: 426.5 kB / 372.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008289/0.5448, allocations: 70.7 kB / 372.4 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/0.5549, allocations: 4.225 MB / 376.6 MB, free: 6.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.5554, allocations: 0.8598 MB / 377.5 MB, free: 5.938 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004219/0.5559, allocations: 147.4 kB / 377.6 MB, free: 5.793 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5559, allocations: 0 / 377.6 MB, free: 5.793 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.007/3.563, allocations: 9.694 MB / 387.3 MB, free: 12.11 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat