Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001367/0.001367, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00215/0.00215, allocations: 211.7 kB / 22.24 MB, free: 4.859 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.549/1.549, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.504/3.504, allocations: 0.5107 GB / 0.8158 GB, free: 17.76 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_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.002154/0.002154, allocations: 74.47 kB / 1.186 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.396/0.3982, allocations: 181.9 MB / 1.363 GB, free: 13.98 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002629/0.4008, allocations: 0.831 MB / 1.364 GB, free: 13.15 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.4025, allocations: 0.9132 MB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.4026, allocations: 0 / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.68e-05/0.4026, allocations: 11.86 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.4028, allocations: 19.8 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.4031, allocations: 47.88 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.4033, allocations: 115.7 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.4035, allocations: 13.3 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.4037, allocations: 63.77 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.4039, allocations: 47.77 kB / 1.365 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.937e-05/0.4039, allocations: 8 kB / 1.365 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.796e-05/0.404, allocations: 16 kB / 1.365 GB, free: 11.88 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.74e-05/0.404, allocations: 27.91 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.665e-05/0.4041, allocations: 39.8 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.4043, allocations: 123.7 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.4043, allocations: 4 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4043, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.741e-05/0.4043, allocations: 7.984 kB / 1.366 GB, free: 11.68 MB / 1.061 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.0007784/0.4051, allocations: 361.8 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.4052, allocations: 12.03 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.057e-05/0.4052, allocations: 42.67 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002806/0.4055, allocations: 32.83 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005119/0.406, allocations: 194.5 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.406, allocations: 4.375 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.4061, allocations: 8.375 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.4064, allocations: 123.3 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.4064, allocations: 0 / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.4064, allocations: 4 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.4064, allocations: 0 / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.4067, allocations: 79.86 kB / 1.366 GB, free: 10.76 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006985/0.4074, allocations: 460.1 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.4077, allocations: 115.8 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.4078, allocations: 54.59 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.4078, allocations: 4 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.4079, allocations: 38.5 kB / 1.367 GB, free: 10.01 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.4079, allocations: 3.938 kB / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0006124/0.4085, allocations: 157.6 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.46e-05/0.4086, allocations: 110.8 kB / 1.367 GB, free: 9.711 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.4087, allocations: 140.3 kB / 1.368 GB, free: 9.566 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.4088, allocations: 33.7 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.123e-05/0.4088, allocations: 108.2 kB / 1.368 GB, free: 9.414 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.4089, allocations: 27.78 kB / 1.368 GB, free: 9.387 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-05/0.409, allocations: 29.7 kB / 1.368 GB, free: 9.352 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.4091, allocations: 326.8 kB / 1.368 GB, free: 9.023 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.4093, allocations: 44.12 kB / 1.368 GB, free: 8.98 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.4095, allocations: 166.1 kB / 1.368 GB, free: 8.781 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.4098, allocations: 94.73 kB / 1.368 GB, free: 8.68 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4098, allocations: 0 / 1.368 GB, free: 8.68 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003989/0.4102, allocations: 145.5 kB / 1.368 GB, free: 8.531 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.4102, allocations: 8 kB / 1.368 GB, free: 8.523 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4102, allocations: 0 / 1.368 GB, free: 8.523 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.4103, allocations: 3.938 kB / 1.368 GB, free: 8.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.4104, allocations: 19.98 kB / 1.368 GB, free: 8.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.4104, allocations: 0 / 1.368 GB, free: 8.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.4105, allocations: 19.98 kB / 1.369 GB, free: 8.48 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.4106, allocations: 7.984 kB / 1.369 GB, free: 8.473 MB / 1.061 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.0001161/0.4107, allocations: 121.8 kB / 1.369 GB, free: 8.344 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.935e-05/0.4107, allocations: 11.91 kB / 1.369 GB, free: 8.332 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002834/0.411, allocations: 93.92 kB / 1.369 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.411, allocations: 0 / 1.369 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.411, allocations: 4 kB / 1.369 GB, free: 8.223 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.411, allocations: 0 / 1.369 GB, free: 8.223 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003287/0.4114, allocations: 164.7 kB / 1.369 GB, free: 8.02 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4114, allocations: 4 kB / 1.369 GB, free: 8.016 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.4115, allocations: 23.92 kB / 1.369 GB, free: 7.992 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.4115, allocations: 4 kB / 1.369 GB, free: 7.988 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.4115, allocations: 0 / 1.369 GB, free: 7.988 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.4115, allocations: 3.984 kB / 1.369 GB, free: 7.984 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4115, allocations: 7.938 kB / 1.369 GB, free: 7.977 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/0.412, allocations: 361.9 kB / 1.369 GB, free: 7.605 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.728e-05/0.412, allocations: 19.84 kB / 1.369 GB, free: 7.586 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.4121, allocations: 7.938 kB / 1.369 GB, free: 7.578 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.4123, allocations: 19.97 kB / 1.369 GB, free: 7.559 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.909e-05/0.4124, allocations: 23.95 kB / 1.369 GB, free: 7.535 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.4124, allocations: 7.938 kB / 1.369 GB, free: 7.527 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.58e-05/0.4125, allocations: 109.3 kB / 1.369 GB, free: 7.422 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4125, allocations: 0 / 1.369 GB, free: 7.422 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003481/0.4128, allocations: 20 kB / 1.369 GB, free: 7.402 MB / 1.061 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.0008508/0.4137, allocations: 0.9034 MB / 1.37 GB, free: 6.473 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003957/0.4141, allocations: 99.84 kB / 1.37 GB, free: 6.375 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4141, allocations: 0 / 1.37 GB, free: 6.375 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.4142, allocations: 47.91 kB / 1.37 GB, free: 6.328 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005117/0.4148, allocations: 19.94 kB / 1.371 GB, free: 6.309 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.4174, allocations: 1.804 MB / 1.372 GB, free: 4.402 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.4175, allocations: 84.19 kB / 1.372 GB, free: 4.297 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.773e-05/0.4176, allocations: 20.62 kB / 1.372 GB, free: 4.277 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.845e-05/0.4177, allocations: 35.42 kB / 1.372 GB, free: 4.242 MB / 1.061 GB Notification: Performance of SimCode: time 5.51e-07/0.4177, allocations: 4 kB / 1.372 GB, free: 4.238 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03255/0.4502, allocations: 3.306 MB / 1.376 GB, free: 1.09 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12, allocations: 6.125 kB / 1.376 GB, free: 1.086 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.24335966212675]