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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.49/2.49, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.187e-05/2.166e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3404, allocations: 54.85 MB / 358.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.4879, allocations: 79.45 MB / 437.6 MB, free: 15.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.4882, allocations: 67.95 kB / 437.6 MB, free: 15.24 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003674/0.4919, allocations: 0.9154 MB / 438.6 MB, free: 14.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4919, allocations: 0 / 438.6 MB, free: 14.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.492, allocations: 0 / 438.6 MB, free: 14.32 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.0004651/0.4924, allocations: 348.4 kB / 438.9 MB, free: 13.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.4925, allocations: 8.031 kB / 438.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.4926, allocations: 7.953 kB / 438.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.4927, allocations: 163 kB / 439.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.4927, allocations: 8 kB / 439.1 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.4928, allocations: 0 / 439.1 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.078e-05/0.4929, allocations: 8 kB / 439.1 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.493, allocations: 51.41 kB / 439.1 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.493, allocations: 3.938 kB / 439.1 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.493, allocations: 3.984 kB / 439.1 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.493, allocations: 3.953 kB / 439.1 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004467/0.4935, allocations: 241.5 kB / 439.4 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.333e-05/0.4936, allocations: 26.58 kB / 439.4 MB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.213e-05/0.4936, allocations: 8.922 kB / 439.4 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.4937, allocations: 0 / 439.4 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.4937, allocations: 38.5 kB / 439.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.4937, allocations: 4 kB / 439.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001977/0.4939, allocations: 45.62 kB / 439.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.494, allocations: 81.06 kB / 439.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.382e-05/0.4941, allocations: 105 kB / 439.7 MB, free: 13.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.4941, allocations: 25.7 kB / 439.7 MB, free: 12.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.402e-05/0.4942, allocations: 154.5 kB / 439.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.4943, allocations: 7.906 kB / 439.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.4943, allocations: 0 / 439.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4944, allocations: 318.9 kB / 440.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.861e-05/0.4945, allocations: 4 kB / 440.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.169e-05/0.4945, allocations: 17.72 kB / 440.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.456e-05/0.4946, allocations: 11.98 kB / 440.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4946, allocations: 0 / 440.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001136/0.4947, allocations: 45.64 kB / 440.3 MB, free: 12.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.4947, allocations: 7.984 kB / 440.3 MB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4948, allocations: 0 / 440.3 MB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4948, allocations: 4 kB / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.417e-05/0.4949, allocations: 8.172 kB / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.4949, allocations: 320 / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.495, allocations: 15.94 kB / 440.3 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.495, allocations: 4 kB / 440.3 MB, free: 12.37 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 8.61e-05/0.4951, allocations: 105 kB / 440.4 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001088/0.4953, allocations: 49.59 kB / 440.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.19e-05/0.4953, allocations: 7.969 kB / 440.5 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.4953, allocations: 11.97 kB / 440.5 MB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4954, allocations: 0 / 440.5 MB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.4954, allocations: 3.953 kB / 440.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4954, allocations: 0 / 440.5 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.4956, allocations: 142.2 kB / 440.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4956, allocations: 0 / 440.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.396e-05/0.4957, allocations: 7.938 kB / 440.6 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4957, allocations: 0 / 440.6 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.4957, allocations: 3.984 kB / 440.6 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.4957, allocations: 3.984 kB / 440.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.4957, allocations: 4 kB / 440.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.4959, allocations: 139.5 kB / 440.8 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.146e-05/0.496, allocations: 85 kB / 440.8 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.496, allocations: 4 kB / 440.9 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.4961, allocations: 8 kB / 440.9 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.4962, allocations: 12 kB / 440.9 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.4962, allocations: 4 kB / 440.9 MB, free: 11.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.509e-05/0.4963, allocations: 83.28 kB / 441 MB, free: 11.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4963, allocations: 0 / 441 MB, free: 11.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002801/0.4966, allocations: 8 kB / 441 MB, free: 11.62 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.0004376/0.497, allocations: 0.6734 MB / 441.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001198/0.4972, allocations: 16 kB / 441.7 MB, free: 10.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4972, allocations: 0 / 441.7 MB, free: 10.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.846e-05/0.4972, allocations: 11.98 kB / 441.7 MB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.4974, allocations: 1.406 kB / 441.7 MB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000429/0.4979, allocations: 119.3 kB / 441.8 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.4982, allocations: 0.6807 MB / 442.5 MB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.034e-05/0.4983, allocations: 23.42 kB / 442.5 MB, free: 9.996 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.4983, allocations: 0 / 442.5 MB, free: 9.996 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.498/2.996, allocations: 0.8603 MB / 443.3 MB, free: 9.133 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