Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01073/0.01073, allocations: 107.5 kB / 15.06 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001147/0.001147, allocations: 182.3 kB / 15.95 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.999/1.999, allocations: 194.6 MB / 211.3 MB, free: 11.09 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2613/0.2613, allocations: 40.04 MB / 296.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006464/0.0006466, allocations: 12 kB / 361.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1203, allocations: 54.88 MB / 416 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00195/0.1223, allocations: 1.141 MB / 417.2 MB, free: 1.406 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008837/0.1232, allocations: 416.5 kB / 417.6 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.123e-05/0.1232, allocations: 0 / 417.6 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.1233, allocations: 3.938 kB / 417.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.868e-05/0.1233, allocations: 4 kB / 417.6 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.1235, allocations: 19.97 kB / 417.6 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.476e-05/0.1236, allocations: 19.97 kB / 417.6 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.001e-05/0.1237, allocations: 4 kB / 417.6 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1238, allocations: 19.91 kB / 417.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.179e-05/0.1239, allocations: 19.86 kB / 417.7 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.1239, allocations: 4 kB / 417.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.185e-05/0.1239, allocations: 0 / 417.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.124, allocations: 0 / 417.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.727e-05/0.124, allocations: 29.7 kB / 417.7 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 6.336e-05/0.1241, allocations: 19.97 kB / 417.7 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.1241, allocations: 0 / 417.7 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1241, allocations: 4 kB / 417.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1241, allocations: 3.938 kB / 417.7 MB, free: 0.8398 MB / 346.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.000493/0.1246, allocations: 343.5 kB / 418 MB, free: 468 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.1247, allocations: 12.03 kB / 418.1 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.1247, allocations: 38.48 kB / 418.1 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.1248, allocations: 7.906 kB / 418.1 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.1249, allocations: 171 kB / 418.3 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.1249, allocations: 0 / 418.3 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.125, allocations: 7.953 kB / 418.3 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.1252, allocations: 63.39 kB / 418.3 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1252, allocations: 0 / 418.3 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.1252, allocations: 0 / 418.3 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1252, allocations: 0 / 418.3 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001448/0.1254, allocations: 31.92 kB / 418.4 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004573/0.1258, allocations: 268.9 kB / 418.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.126, allocations: 30.58 kB / 418.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.126, allocations: 4 kB / 418.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.1261, allocations: 30.56 kB / 418.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.563e-06/0.1261, allocations: 0 / 418.7 MB, free: 15.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003368/0.1264, allocations: 69.67 kB / 418.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.1265, allocations: 81.23 kB / 418.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.885e-05/0.1266, allocations: 113.8 kB / 419 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.1266, allocations: 29.7 kB / 419 MB, free: 15.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.399e-05/0.1267, allocations: 88.12 kB / 419.1 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.1267, allocations: 0 / 419.1 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.1267, allocations: 0 / 419.1 MB, free: 15.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1269, allocations: 318.8 kB / 419.4 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.905e-05/0.127, allocations: 11.98 kB / 419.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.352e-05/0.1271, allocations: 29.7 kB / 419.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.459e-05/0.1272, allocations: 15.94 kB / 419.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1272, allocations: 4 kB / 419.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002132/0.1274, allocations: 69.47 kB / 419.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1274, allocations: 4 kB / 419.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.1274, allocations: 4.031 kB / 419.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1275, allocations: 4 kB / 419.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.098e-05/0.1276, allocations: 4 kB / 419.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1276, allocations: 0 / 419.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.1277, allocations: 11.98 kB / 419.5 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1277, allocations: 0 / 419.5 MB, free: 14.77 MB / 362.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 9.689e-05/0.1278, allocations: 113.8 kB / 419.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.1279, allocations: 7.953 kB / 419.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.554e-05/0.1279, allocations: 23.47 kB / 419.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1279, allocations: 0 / 419.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1279, allocations: 3.938 kB / 419.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1279, allocations: 0 / 419.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.1282, allocations: 161.7 kB / 419.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1282, allocations: 0 / 419.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.205e-05/0.1282, allocations: 4 kB / 419.8 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1283, allocations: 3.953 kB / 419.9 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1283, allocations: 0 / 419.9 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1283, allocations: 7.938 kB / 419.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1283, allocations: 0 / 419.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.1286, allocations: 155.4 kB / 420 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.1286, allocations: 81.11 kB / 420.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.1287, allocations: 3.953 kB / 420.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.1288, allocations: 16.02 kB / 420.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/0.1289, allocations: 7.984 kB / 420.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-06/0.1289, allocations: 0 / 420.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.347e-05/0.129, allocations: 91.27 kB / 420.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.129, allocations: 0 / 420.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002953/0.1293, allocations: 4 kB / 420.2 MB, free: 14 MB / 362.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.0005115/0.1298, allocations: 0.6889 MB / 420.9 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002323/0.13, allocations: 31.98 kB / 420.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1301, allocations: 0 / 420.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.738e-05/0.1302, allocations: 20.02 kB / 420.9 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.1304, allocations: 7.891 kB / 421 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005088/0.1309, allocations: 170.2 kB / 421.1 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.1312, allocations: 0.6848 MB / 421.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.176e-05/0.1312, allocations: 4.297 kB / 421.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.067e-05/0.1313, allocations: 11.44 kB / 421.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1313, allocations: 0 / 421.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.1533, allocations: 1.203 MB / 423 MB, free: 11.16 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002736/0.1536, allocations: 156.6 kB / 423.2 MB, free: 10.92 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.305/2.459, allocations: 0 / 423.2 MB, free: 10.92 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat