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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00167/0.00167, allocations: 110.6 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00214/0.00214, allocations: 216.4 kB / 22.25 MB, free: 5.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 256 MB, free: 7.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.849/2.849, allocations: 476.8 MB / 0.7707 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 66.28 kB / 1.117 GB, free: 40.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3944, allocations: 169.9 MB / 1.283 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002428/0.3968, allocations: 0.8706 MB / 1.284 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.3981, allocations: 0.9211 MB / 1.285 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.63e-05/0.3982, allocations: 8 kB / 1.285 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.846e-05/0.3982, allocations: 7.875 kB / 1.285 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.3983, allocations: 15.8 kB / 1.285 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.3986, allocations: 47.88 kB / 1.285 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.3987, allocations: 111.7 kB / 1.285 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.3989, allocations: 21.3 kB / 1.285 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.3991, allocations: 63.72 kB / 1.285 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.3992, allocations: 55.73 kB / 1.285 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.3992, allocations: 16 kB / 1.286 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.801e-05/0.3993, allocations: 16 kB / 1.286 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.891e-05/0.3993, allocations: 19.92 kB / 1.286 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.206e-05/0.3994, allocations: 47.73 kB / 1.286 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.3996, allocations: 127.7 kB / 1.286 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3996, allocations: 0 / 1.286 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3996, allocations: 0 / 1.286 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.3996, allocations: 3.938 kB / 1.286 GB, free: 9.355 MB / 0.9825 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.0007933/0.4004, allocations: 377.6 kB / 1.286 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.4005, allocations: 12.03 kB / 1.286 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.042e-05/0.4005, allocations: 34.75 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002543/0.4008, allocations: 32.86 kB / 1.286 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.4013, allocations: 190.5 kB / 1.286 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.4013, allocations: 8.375 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.4013, allocations: 4.375 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.4016, allocations: 120.5 kB / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.4016, allocations: 0 / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.4016, allocations: 4 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.4016, allocations: 4 kB / 1.286 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000269/0.4019, allocations: 75.86 kB / 1.287 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.4026, allocations: 476.2 kB / 1.287 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.4029, allocations: 107.8 kB / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.403, allocations: 56.38 kB / 1.287 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.4031, allocations: 7.938 kB / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.4031, allocations: 30.56 kB / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.153e-06/0.4031, allocations: 0 / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0006028/0.4037, allocations: 169.7 kB / 1.287 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.4038, allocations: 102.8 kB / 1.287 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.404, allocations: 148.9 kB / 1.288 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.404, allocations: 33.7 kB / 1.288 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/0.4041, allocations: 112.2 kB / 1.288 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.4041, allocations: 27.86 kB / 1.288 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.717e-05/0.4042, allocations: 33.86 kB / 1.288 GB, free: 7 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001862/0.4044, allocations: 326.8 kB / 1.288 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.4045, allocations: 39.97 kB / 1.288 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.4047, allocations: 85.09 kB / 1.288 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.405, allocations: 98.39 kB / 1.288 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.405, allocations: 4 kB / 1.288 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003569/0.4053, allocations: 137.5 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.4053, allocations: 8 kB / 1.288 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4054, allocations: 4 kB / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.4054, allocations: 0 / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.4055, allocations: 15.98 kB / 1.288 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.4055, allocations: 4 kB / 1.288 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.4056, allocations: 23.92 kB / 1.288 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.4057, allocations: 4 kB / 1.288 GB, free: 6.223 MB / 0.9825 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.000117/0.4058, allocations: 133.8 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.668e-05/0.4058, allocations: 15.95 kB / 1.289 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002619/0.4061, allocations: 81.98 kB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.4061, allocations: 4 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4061, allocations: 0 / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.4061, allocations: 0 / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.4064, allocations: 176.6 kB / 1.289 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4064, allocations: 0 / 1.289 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.4065, allocations: 23.98 kB / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.4065, allocations: 0 / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.4066, allocations: 4 kB / 1.289 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.4066, allocations: 11.92 kB / 1.289 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.4066, allocations: 0 / 1.289 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.407, allocations: 365.9 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.63e-05/0.407, allocations: 11.89 kB / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.4071, allocations: 4 kB / 1.289 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.4073, allocations: 15.97 kB / 1.289 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.456e-05/0.4073, allocations: 27.95 kB / 1.289 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.4074, allocations: 12 kB / 1.289 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.531e-05/0.4074, allocations: 117.8 kB / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.4074, allocations: 0 / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003161/0.4078, allocations: 23.95 kB / 1.289 GB, free: 5.141 MB / 0.9825 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.0007952/0.4085, allocations: 0.8948 MB / 1.29 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003849/0.4089, allocations: 99.84 kB / 1.29 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4089, allocations: 0 / 1.29 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.4091, allocations: 55.91 kB / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.4096, allocations: 19.77 kB / 1.291 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.4119, allocations: 1.79 MB / 1.292 GB, free: 2.156 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.4123, allocations: 0.7041 MB / 1.293 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.544e-05/0.4123, allocations: 16.64 kB / 1.293 GB, free: 1.41 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.233e-05/0.4124, allocations: 35.42 kB / 1.293 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of SimCode: time 6.11e-07/0.4124, allocations: 0 / 1.293 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03132/0.4438, allocations: 2.851 MB / 1.296 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.56, allocations: 6.766 kB / 1.296 GB, free: 14.65 MB / 0.9981 GB " [Timeout remaining time 288] (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) [Timeout 420.0] 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) [Timeout 300] "Error: Could not read variable hysteresis.y in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! Error: Could not read variable hysteresis1.y in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis1.y from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! Error: Could not read variable hysteresis2.y in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis2.y from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.26430126300147]