Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003532, allocations: 12 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1023, allocations: 44.5 MB / 308.5 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.462/0.5644, allocations: 74.5 MB / 383 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000329/0.5648, allocations: 73.05 kB / 383.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04443/0.6093, allocations: 9.018 MB / 392.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6093, allocations: 0 / 392.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.075e-05/0.6094, allocations: 11.75 kB / 392.1 MB, free: 13.59 MB / 314.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.002638/0.612, allocations: 0.8295 MB / 393 MB, free: 13.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.6121, allocations: 11.75 kB / 393 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002409/0.6124, allocations: 80.92 kB / 393.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.6125, allocations: 62 kB / 393.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.6132, allocations: 337.6 kB / 393.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.641e-05/0.6132, allocations: 33.53 kB / 393.5 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.6134, allocations: 47.72 kB / 393.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.6151, allocations: 0.5876 MB / 394.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/0.6152, allocations: 3.875 kB / 394.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.571e-05/0.6153, allocations: 20.44 kB / 394.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.6153, allocations: 7.625 kB / 394.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.6172, allocations: 0.5661 MB / 394.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004126/0.6214, allocations: 1.33 MB / 396 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.6231, allocations: 480.1 kB / 396.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.6233, allocations: 15.86 kB / 396.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.6234, allocations: 42.69 kB / 396.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 4.659e-06/0.6234, allocations: 0 / 396.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.01139/0.6348, allocations: 2.918 MB / 399.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.6349, allocations: 55.84 kB / 399.5 MB, free: 11.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.6353, allocations: 264 kB / 399.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001901/0.6355, allocations: 51.36 kB / 399.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.6357, allocations: 241.6 kB / 400.1 MB, free: 10.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.636, allocations: 238.1 kB / 400.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-05/0.636, allocations: 14.56 kB / 400.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.313e-05/0.6361, allocations: 331.8 kB / 400.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009969/0.6371, allocations: 296.8 kB / 400.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.6382, allocations: 350.5 kB / 401.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.639, allocations: 228.2 kB / 401.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.6391, allocations: 0 / 401.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002752/0.6418, allocations: 0.8387 MB / 402.3 MB, free: 10.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.6419, allocations: 5.125 kB / 402.3 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.177e-05/0.642, allocations: 2.594 kB / 402.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/0.6437, allocations: 0.5764 MB / 402.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007989/0.6446, allocations: 97.75 kB / 403 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002063/0.6467, allocations: 0.9867 MB / 404 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.6482, allocations: 148.2 kB / 404.2 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/0.6484, allocations: 29.77 kB / 404.2 MB, free: 9.664 MB / 314.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): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0004509/0.6489, allocations: 180.3 kB / 404.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.6491, allocations: 49.83 kB / 404.4 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003137/0.6522, allocations: 0.9267 MB / 405.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.6523, allocations: 7.75 kB / 405.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.6523, allocations: 3.328 kB / 405.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.6523, allocations: 3.188 kB / 405.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004093/0.6564, allocations: 1.499 MB / 406.8 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.6565, allocations: 0 / 406.8 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000838/0.6573, allocations: 97.06 kB / 406.9 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.6589, allocations: 0.5515 MB / 407.5 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.6591, allocations: 35.33 kB / 407.5 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.6609, allocations: 0.9558 MB / 408.5 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6609, allocations: 0 / 408.5 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003927/0.6648, allocations: 1.205 MB / 409.7 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004426/0.6653, allocations: 191.4 kB / 409.9 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/0.6655, allocations: 21.5 kB / 409.9 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.6667, allocations: 144 kB / 410 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004527/0.6672, allocations: 154 kB / 410.2 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.6673, allocations: 31.11 kB / 410.2 MB, free: 7.621 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003381/0.6677, allocations: 218 kB / 410.4 MB, free: 7.516 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6677, allocations: 0 / 410.4 MB, free: 7.516 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008386/0.6685, allocations: 166.3 kB / 410.6 MB, free: 7.504 MB / 314.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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,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.004396/0.6729, allocations: 1.788 MB / 412.4 MB, free: 6.641 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002612/0.6756, allocations: 0.8146 MB / 413.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.6757, allocations: 0 / 413.2 MB, free: 6.434 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.677, allocations: 406.1 kB / 413.6 MB, free: 6.363 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009205/0.678, allocations: 78.59 kB / 413.7 MB, free: 6.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009785/0.6878, allocations: 4.069 MB / 417.7 MB, free: 4.285 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.6882, allocations: 0.8641 MB / 418.6 MB, free: 3.508 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003718/0.6886, allocations: 146.3 kB / 418.7 MB, free: 3.484 MB / 314.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6886, allocations: 3.938 kB / 418.8 MB, free: 3.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.985/3.673, allocations: 10.27 MB / 429 MB, free: 14.61 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat