Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.00174, allocations: 115.7 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 185 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.219/0.219, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3475, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002632/0.3502, allocations: 1.44 MB / 0.5198 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007401/0.3509, allocations: 417.4 kB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.073e-05/0.351, allocations: 1.188 kB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.707e-05/0.351, allocations: 4.641 kB / 0.5202 GB, free: 2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.343e-05/0.3511, allocations: 10 kB / 0.5202 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001924/0.3513, allocations: 14.06 kB / 0.5202 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.909e-05/0.3514, allocations: 34.89 kB / 0.5203 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3515, allocations: 8.984 kB / 0.5203 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.145e-05/0.3516, allocations: 25.14 kB / 0.5203 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.81e-05/0.3517, allocations: 13.7 kB / 0.5203 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.3517, allocations: 2.875 kB / 0.5203 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.289e-05/0.3517, allocations: 2.406 kB / 0.5203 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.109e-05/0.3518, allocations: 11.55 kB / 0.5203 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.283e-05/0.3518, allocations: 12.75 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.3519, allocations: 29.02 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3519, allocations: 3.938 kB / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.3519, allocations: 1.156 kB / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.3519, allocations: 0 / 0.5204 GB, free: 1.914 MB / 382.1 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.000413/0.3523, allocations: 353.3 kB / 0.5207 GB, free: 1.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3524, allocations: 9.469 kB / 0.5207 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.312e-05/0.3524, allocations: 31.45 kB / 0.5208 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.88e-05/0.3525, allocations: 11.56 kB / 0.5208 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.8e-05/0.3526, allocations: 172.8 kB / 0.5209 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.3526, allocations: 1.469 kB / 0.5209 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.3526, allocations: 1.406 kB / 0.5209 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000165/0.3528, allocations: 69.06 kB / 0.521 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.3528, allocations: 0 / 0.521 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.3528, allocations: 1.25 kB / 0.521 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3528, allocations: 0 / 0.521 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.382e-05/0.3529, allocations: 20.86 kB / 0.521 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003605/0.3533, allocations: 264.9 kB / 0.5213 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.983e-05/0.3534, allocations: 38.19 kB / 0.5213 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.77e-05/0.3534, allocations: 16.98 kB / 0.5213 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/0.3535, allocations: 1.219 kB / 0.5213 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.3535, allocations: 32.44 kB / 0.5214 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3535, allocations: 0 / 0.5214 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002408/0.3537, allocations: 58.03 kB / 0.5214 GB, free: 0.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.3538, allocations: 85.94 kB / 0.5215 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.848e-05/0.3538, allocations: 112.2 kB / 0.5216 GB, free: 0.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.3539, allocations: 26.86 kB / 0.5216 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.875e-05/0.3539, allocations: 86.58 kB / 0.5217 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.3539, allocations: 5.797 kB / 0.5217 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.3539, allocations: 17.97 kB / 0.5217 GB, free: 496 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.995e-05/0.354, allocations: 321.3 kB / 0.522 GB, free: 168 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.984e-05/0.3541, allocations: 17.59 kB / 0.5221 GB, free: 160 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.757e-05/0.3541, allocations: 30.17 kB / 0.5221 GB, free: 136 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.725e-05/0.3542, allocations: 24.34 kB / 0.5221 GB, free: 124 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3542, allocations: 0 / 0.5221 GB, free: 124 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001162/0.3543, allocations: 59.2 kB / 0.5222 GB, free: 84 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.3543, allocations: 11.56 kB / 0.5222 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.3544, allocations: 0.5156 kB / 0.5222 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3544, allocations: 5.125 kB / 0.5222 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.992e-05/0.3544, allocations: 12.95 kB / 0.5222 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.3545, allocations: 0.75 kB / 0.5222 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.714e-05/0.3545, allocations: 11.55 kB / 0.5222 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.3545, allocations: 1.156 kB / 0.5222 GB, free: 64 kB / 382.1 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 (hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.551e-05/0.3546, allocations: 114 kB / 0.5223 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.644e-05/0.3547, allocations: 1.859 kB / 0.5223 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.3547, allocations: 14.36 kB / 0.5223 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.3547, allocations: 0.5156 kB / 0.5223 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3547, allocations: 4 kB / 0.5223 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3547, allocations: 2.219 kB / 0.5223 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.355, allocations: 170.6 kB / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.355, allocations: 0 / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.799e-05/0.355, allocations: 4.219 kB / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.355, allocations: 2.031 kB / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.355, allocations: 0 / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.355, allocations: 1.953 kB / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.355, allocations: 0 / 0.5225 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002031/0.3552, allocations: 163.1 kB / 0.5227 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.3554, allocations: 78.95 kB / 0.5227 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3554, allocations: 1.062 kB / 0.5227 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.492e-05/0.3555, allocations: 8.844 kB / 0.5228 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/0.3555, allocations: 6.25 kB / 0.5228 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.3556, allocations: 1.641 kB / 0.5228 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.007e-05/0.3556, allocations: 87.83 kB / 0.5228 GB, free: 15.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3556, allocations: 4.031 kB / 0.5228 GB, free: 15.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.3558, allocations: 6.094 kB / 0.5229 GB, free: 15.39 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006277/0.3565, allocations: 0.6836 MB / 0.5235 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002065/0.3567, allocations: 33.22 kB / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3567, allocations: 0 / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.026e-05/0.3568, allocations: 10.48 kB / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.357, allocations: 6.906 kB / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005336/0.3575, allocations: 152.6 kB / 0.5237 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.358, allocations: 0.6864 MB / 0.5244 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.233e-05/0.3581, allocations: 10.2 kB / 0.5244 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.857e-05/0.3582, allocations: 14.33 kB / 0.5244 GB, free: 13.83 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3582, allocations: 0 / 0.5244 GB, free: 13.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.382, allocations: 1.497 MB / 0.5259 GB, free: 13.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.89/8.272, allocations: 7.969 kB / 0.5259 GB, free: 13.43 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches