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.502/2.502, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004503/0.0004503, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.4069, allocations: 54.85 MB / 369.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1921/0.599, allocations: 80.21 MB / 449.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/0.5994, allocations: 67.97 kB / 449.6 MB, free: 10.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004748/0.6042, allocations: 0.9038 MB / 450.5 MB, free: 9.293 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6042, allocations: 0 / 450.5 MB, free: 9.293 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.6043, allocations: 0 / 450.5 MB, free: 9.293 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.0005784/0.6049, allocations: 359.2 kB / 450.9 MB, free: 8.895 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.611e-05/0.6049, allocations: 12.03 kB / 450.9 MB, free: 8.883 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.544e-05/0.605, allocations: 30.56 kB / 450.9 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.859e-05/0.6051, allocations: 3.953 kB / 450.9 MB, free: 8.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.6053, allocations: 178.9 kB / 451.1 MB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.6053, allocations: 4 kB / 451.1 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.6053, allocations: 4 kB / 451.1 MB, free: 8.617 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.6056, allocations: 59.41 kB / 451.2 MB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.6056, allocations: 0 / 451.2 MB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.6056, allocations: 0 / 451.2 MB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.6056, allocations: 3.984 kB / 451.2 MB, free: 8.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.6058, allocations: 27.94 kB / 451.2 MB, free: 8.516 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.6064, allocations: 264.9 kB / 451.5 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.6066, allocations: 34.56 kB / 451.5 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.6066, allocations: 0 / 451.5 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.6067, allocations: 34.56 kB / 451.5 MB, free: 8.121 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.723e-06/0.6067, allocations: 0 / 451.5 MB, free: 8.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004121/0.6071, allocations: 81.53 kB / 451.6 MB, free: 8.035 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/0.6072, allocations: 77.11 kB / 451.7 MB, free: 7.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.6073, allocations: 105 kB / 451.8 MB, free: 7.832 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.6073, allocations: 25.7 kB / 451.8 MB, free: 7.801 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.737e-05/0.6075, allocations: 158.7 kB / 452 MB, free: 7.645 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.6075, allocations: 7.906 kB / 452 MB, free: 7.637 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.972e-06/0.6075, allocations: 0 / 452 MB, free: 7.637 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.6077, allocations: 310.8 kB / 452.3 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-05/0.6078, allocations: 15.98 kB / 452.3 MB, free: 7.309 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001149/0.6079, allocations: 33.64 kB / 452.3 MB, free: 7.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.238e-05/0.608, allocations: 12.03 kB / 452.3 MB, free: 7.258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.608, allocations: 0 / 452.3 MB, free: 7.258 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002605/0.6083, allocations: 69.69 kB / 452.4 MB, free: 7.184 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.6084, allocations: 4 kB / 452.4 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.6084, allocations: 3.938 kB / 452.4 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.6084, allocations: 4 kB / 452.4 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.6085, allocations: 4 kB / 452.4 MB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.6085, allocations: 7.953 kB / 452.4 MB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.6087, allocations: 11.98 kB / 452.4 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.6087, allocations: 0 / 452.4 MB, free: 7.148 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 () * Number of clocked 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.0001214/0.6088, allocations: 113.8 kB / 452.6 MB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.6089, allocations: 0 / 452.6 MB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.172e-05/0.609, allocations: 11.52 kB / 452.6 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.609, allocations: 0 / 452.6 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.609, allocations: 0 / 452.6 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.609, allocations: 7.953 kB / 452.6 MB, free: 7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002756/0.6093, allocations: 165.7 kB / 452.7 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.6093, allocations: 4 kB / 452.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.928e-05/0.6094, allocations: 4 kB / 452.7 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.6094, allocations: 0 / 452.7 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.6094, allocations: 0 / 452.7 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.6095, allocations: 0 / 452.7 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.6095, allocations: 3.984 kB / 452.7 MB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/0.6098, allocations: 159.3 kB / 452.9 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.01e-05/0.6099, allocations: 81.11 kB / 453 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.6099, allocations: 4 kB / 453 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.6101, allocations: 11.98 kB / 453 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.405e-05/0.6102, allocations: 7.984 kB / 453 MB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.6102, allocations: 4.031 kB / 453 MB, free: 6.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.602e-05/0.6103, allocations: 91.27 kB / 453.1 MB, free: 6.391 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6103, allocations: 0 / 453.1 MB, free: 6.391 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004348/0.6107, allocations: 4 kB / 453.1 MB, free: 6.387 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) * Number of clocked states: 0 () * 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.0006578/0.6114, allocations: 0.6928 MB / 453.8 MB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002473/0.6117, allocations: 27.98 kB / 453.8 MB, free: 5.641 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.6117, allocations: 0 / 453.8 MB, free: 5.641 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.6118, allocations: 23.92 kB / 453.8 MB, free: 5.617 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.6121, allocations: 0 / 453.8 MB, free: 5.617 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006803/0.6128, allocations: 196 kB / 454 MB, free: 5.379 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.6131, allocations: 0.6848 MB / 454.7 MB, free: 4.668 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.598e-05/0.6132, allocations: 7.438 kB / 454.7 MB, free: 4.66 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.6132, allocations: 3.938 kB / 454.7 MB, free: 4.656 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.729/3.342, allocations: 0.8687 MB / 455.6 MB, free: 3.789 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