Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_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.001151/0.001151, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.259/1.259, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.388/2.388, allocations: 437.1 MB / 0.7104 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 59.91 kB / 0.8694 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5154/0.5166, allocations: 151.6 MB / 1.017 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001995/0.5186, allocations: 0.8421 MB / 1.018 GB, free: 1.586 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001035/0.5197, allocations: 0.8934 MB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.791e-05/0.5198, allocations: 4 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.372e-05/0.5198, allocations: 7.875 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.488e-05/0.5199, allocations: 11.81 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.5201, allocations: 39.94 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.5202, allocations: 123.6 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.5203, allocations: 29.09 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.5205, allocations: 47.83 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.142e-05/0.5206, allocations: 51.77 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.5206, allocations: 12 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.923e-05/0.5206, allocations: 12 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.06e-05/0.5206, allocations: 27.91 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.435e-05/0.5207, allocations: 47.72 kB / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.5209, allocations: 121.8 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.5209, allocations: 0 / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5209, allocations: 0 / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.5209, allocations: 0 / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006288/0.5215, allocations: 450.8 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.5216, allocations: 8.031 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.346e-05/0.5216, allocations: 34.75 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/0.5216, allocations: 12.84 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004582/0.5221, allocations: 264 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.5221, allocations: 384 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.5222, allocations: 20.31 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.5224, allocations: 116.5 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.5224, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.5225, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.5225, allocations: 4 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002731/0.5227, allocations: 79.86 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.5233, allocations: 0.4932 MB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/0.5236, allocations: 111.8 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.5237, allocations: 58.61 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.5238, allocations: 7.922 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.5238, allocations: 34.56 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 2.545e-06/0.5238, allocations: 3.984 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0005614/0.5244, allocations: 157.5 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.5244, allocations: 106.8 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.5246, allocations: 147.2 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.5246, allocations: 33.7 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.5246, allocations: 104.3 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.5247, allocations: 27.64 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.968e-05/0.5247, allocations: 29.88 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.845e-05/0.5248, allocations: 326.8 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.525, allocations: 39.95 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.5252, allocations: 85.05 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.5254, allocations: 94.45 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.5255, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003462/0.5258, allocations: 137.5 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.5258, allocations: 8 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.5258, allocations: 0 / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.5259, allocations: 4 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.526, allocations: 20.03 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.526, allocations: 4 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.5261, allocations: 23.89 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.5262, allocations: 0 / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.205e-05/0.5263, allocations: 137.6 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.358e-05/0.5263, allocations: 7.906 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002484/0.5266, allocations: 89.89 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.5266, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5266, allocations: 4 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.5266, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.5269, allocations: 201.6 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.5269, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.527, allocations: 27.91 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.527, allocations: 4 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.996e-06/0.527, allocations: 3.938 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.5271, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.5271, allocations: 4 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003973/0.5275, allocations: 374.2 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/0.5275, allocations: 93 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.5275, allocations: 0 / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.5277, allocations: 11.98 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.611e-05/0.5278, allocations: 35.88 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.5278, allocations: 7.938 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.585e-05/0.5279, allocations: 117.3 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5279, allocations: 0 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003096/0.5282, allocations: 12 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0006372/0.5289, allocations: 0.904 MB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003441/0.5292, allocations: 103.7 kB / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5292, allocations: 0 / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.5294, allocations: 51.97 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.5298, allocations: 23.78 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.5319, allocations: 1.791 MB / 1.026 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.5321, allocations: 0.7002 MB / 1.027 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.756e-05/0.5322, allocations: 16.64 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.046e-05/0.5323, allocations: 43.36 kB / 1.027 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.5323, allocations: 0 / 1.027 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.5497, allocations: 2.663 MB / 1.03 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.775/7.324, allocations: 8.922 kB / 1.03 GB, free: 5.258 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches