Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.392/2.392, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.207e-05/3.224e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.3993, allocations: 54.84 MB / 364.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.5577, allocations: 80.13 MB / 444.7 MB, free: 252 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.5581, allocations: 59.97 kB / 444.8 MB, free: 192 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004918/0.563, allocations: 0.9081 MB / 445.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.47e-06/0.563, allocations: 0 / 445.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.5631, allocations: 7.938 kB / 445.7 MB, free: 15.29 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005697/0.5637, allocations: 338.5 kB / 446 MB, free: 14.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.619e-05/0.5637, allocations: 16.28 kB / 446.1 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.815e-05/0.5638, allocations: 38.55 kB / 446.1 MB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.849e-05/0.5639, allocations: 11.86 kB / 446.1 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.5641, allocations: 159.1 kB / 446.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.5641, allocations: 5.625 kB / 446.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.5641, allocations: 4 kB / 446.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.5643, allocations: 55.39 kB / 446.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.5643, allocations: 0 / 446.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.5644, allocations: 1.031 kB / 446.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.5644, allocations: 7.953 kB / 446.3 MB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.5645, allocations: 19.92 kB / 446.4 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005952/0.5652, allocations: 261 kB / 446.6 MB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.5653, allocations: 26.58 kB / 446.6 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.762e-05/0.5654, allocations: 8.922 kB / 446.6 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.5654, allocations: 4 kB / 446.7 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.5654, allocations: 42.48 kB / 446.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 2.464e-06/0.5655, allocations: 0 / 446.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002465/0.5657, allocations: 45.66 kB / 446.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.5658, allocations: 77.11 kB / 446.8 MB, free: 13.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.5659, allocations: 105.5 kB / 446.9 MB, free: 13.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.566, allocations: 25.7 kB / 446.9 MB, free: 13.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.5661, allocations: 162.5 kB / 447.1 MB, free: 13.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.5661, allocations: 4 kB / 447.1 MB, free: 13.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-06/0.5662, allocations: 0 / 447.1 MB, free: 13.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.5663, allocations: 310.8 kB / 447.4 MB, free: 13.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.298e-05/0.5664, allocations: 8 kB / 447.4 MB, free: 13.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.908e-05/0.5665, allocations: 27.2 kB / 447.4 MB, free: 13.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.643e-05/0.5666, allocations: 7.938 kB / 447.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5666, allocations: 0 / 447.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001799/0.5668, allocations: 53.72 kB / 447.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.5668, allocations: 4 kB / 447.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5668, allocations: 0 / 447.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.5669, allocations: 11.23 kB / 447.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.567, allocations: 4 kB / 447.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.567, allocations: 320 / 447.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.5672, allocations: 11.98 kB / 447.5 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.5672, allocations: 2 kB / 447.5 MB, free: 13.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.5673, allocations: 109 kB / 447.6 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.314e-05/0.5674, allocations: 3.906 kB / 447.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.312e-05/0.5675, allocations: 15.64 kB / 447.7 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.5675, allocations: 0 / 447.7 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.5675, allocations: 3.953 kB / 447.7 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.5675, allocations: 0.6562 kB / 447.7 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003078/0.5678, allocations: 157.7 kB / 447.8 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5679, allocations: 0 / 447.8 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.054e-05/0.5679, allocations: 7.938 kB / 447.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.568, allocations: 8 kB / 447.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.568, allocations: 0 / 447.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.568, allocations: 0 / 447.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.568, allocations: 5.391 kB / 447.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.5682, allocations: 143.5 kB / 448 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.279e-05/0.5683, allocations: 81.16 kB / 448.1 MB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.5684, allocations: 10.48 kB / 448.1 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.5686, allocations: 16.02 kB / 448.1 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.5687, allocations: 3.984 kB / 448.1 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.5687, allocations: 4 kB / 448.1 MB, free: 12.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.058e-05/0.5688, allocations: 91.22 kB / 448.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.5688, allocations: 0 / 448.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005161/0.5694, allocations: 8 kB / 448.2 MB, free: 12.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006148/0.57, allocations: 0.6734 MB / 448.9 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001564/0.5702, allocations: 16 kB / 448.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.5702, allocations: 0 / 448.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.722e-05/0.5703, allocations: 12.48 kB / 448.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.5705, allocations: 8.094 kB / 448.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006414/0.5712, allocations: 128.3 kB / 449 MB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.5716, allocations: 0.6848 MB / 449.7 MB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.787e-05/0.5717, allocations: 15.42 kB / 449.7 MB, free: 10.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5717, allocations: 4 kB / 449.7 MB, free: 10.87 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.322/2.894, allocations: 0.8625 MB / 450.6 MB, free: 10.02 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat