Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_11_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.004394/0.004394, allocations: 98.47 kB / 15.73 MB, free: 5.949 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.001307/0.001307, allocations: 196.4 kB / 16.68 MB, free: 5.871 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.732/2.732, allocations: 469.8 MB / 0.7425 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 68.11 kB / 1.065 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6672/0.6692, allocations: 159.1 MB / 1.22 GB, free: 2 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001985/0.6712, allocations: 0.848 MB / 1.221 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.6724, allocations: 0.8819 MB / 1.222 GB, free: 264 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.6724, allocations: 4 kB / 1.222 GB, free: 260 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.681e-05/0.6725, allocations: 11.81 kB / 1.222 GB, free: 248 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.277e-05/0.6726, allocations: 19.8 kB / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.6728, allocations: 35.94 kB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.673, allocations: 123.6 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.6731, allocations: 17.12 kB / 1.222 GB, free: 52 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.6732, allocations: 55.92 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.982e-05/0.6734, allocations: 55.75 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.6734, allocations: 8 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 2.298e-05/0.6734, allocations: 12 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.6734, allocations: 19.92 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.244e-05/0.6735, allocations: 55.7 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.6737, allocations: 119 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.6737, allocations: 0 / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6737, allocations: 0 / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.6737, allocations: 0 / 1.222 GB, free: 15.73 MB / 0.9512 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.0007108/0.6744, allocations: 454.8 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.6745, allocations: 8.031 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.237e-05/0.6745, allocations: 34.75 kB / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.6746, allocations: 16.84 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005236/0.6751, allocations: 263.1 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.6751, allocations: 4.375 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.6752, allocations: 16.31 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.6755, allocations: 115 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.6755, allocations: 3.938 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.6755, allocations: 4 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.6755, allocations: 4 kB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.6758, allocations: 75.86 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006463/0.6765, allocations: 0.497 MB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.6768, allocations: 115.8 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.677, allocations: 54.61 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.677, allocations: 4 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.677, allocations: 38.55 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 4.108e-06/0.677, allocations: 0 / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0006304/0.6777, allocations: 157.4 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/0.6777, allocations: 110.8 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.6779, allocations: 146.2 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.6779, allocations: 29.7 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.086e-05/0.678, allocations: 108.6 kB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.678, allocations: 35.84 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.934e-05/0.6781, allocations: 25.72 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.6782, allocations: 326.8 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.6784, allocations: 39.95 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.6786, allocations: 81.12 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.6789, allocations: 98.44 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.6789, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003936/0.6793, allocations: 141.5 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.6794, allocations: 8 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.6794, allocations: 0 / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.6794, allocations: 0 / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.6795, allocations: 23.97 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.6796, allocations: 0 / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.6797, allocations: 11.98 kB / 1.225 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.6797, allocations: 8 kB / 1.225 GB, free: 12.41 MB / 0.9512 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 0.0001058/0.6798, allocations: 129.7 kB / 1.225 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.777e-05/0.6799, allocations: 11.91 kB / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002793/0.6802, allocations: 90.22 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.6802, allocations: 3.984 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.6802, allocations: 4 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.6802, allocations: 48 / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003296/0.6806, allocations: 205.5 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6806, allocations: 0 / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.6807, allocations: 19.92 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.6807, allocations: 3.938 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.6807, allocations: 7.984 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.6807, allocations: 0 / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.6807, allocations: 3.938 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004752/0.6812, allocations: 373.9 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.6813, allocations: 96.94 kB / 1.226 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.6813, allocations: 7.938 kB / 1.226 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.6815, allocations: 16.05 kB / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.305e-05/0.6816, allocations: 27.97 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.6816, allocations: 7.922 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.332e-05/0.6817, allocations: 117.5 kB / 1.226 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6817, allocations: 0 / 1.226 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003279/0.6821, allocations: 12 kB / 1.226 GB, free: 11.19 MB / 0.9512 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.0008113/0.6829, allocations: 0.899 MB / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003913/0.6833, allocations: 103.9 kB / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.6833, allocations: 0 / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001886/0.6835, allocations: 47.95 kB / 1.227 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/0.684, allocations: 15.94 kB / 1.227 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.6863, allocations: 1.809 MB / 1.229 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.6866, allocations: 0.704 MB / 1.23 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.236e-05/0.6867, allocations: 16.58 kB / 1.23 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.033e-05/0.6868, allocations: 35.42 kB / 1.23 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of SimCode: time 2.7e-07/0.6868, allocations: 4 kB / 1.23 GB, free: 7.402 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02189/0.7087, allocations: 2.707 MB / 1.233 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.54/8.249, allocations: 13.97 kB / 1.233 GB, free: 4.785 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches