Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.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.001644/0.001644, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.001598/0.001598, allocations: 214.8 kB / 22.25 MB, free: 5.082 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.543/1.543, allocations: 230.6 MB / 256 MB, free: 7.996 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.497/3.497, allocations: 0.505 GB / 0.8101 GB, free: 22.05 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.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold",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.002082/0.002082, allocations: 61.83 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4007, allocations: 180.2 MB / 1.353 GB, free: 8.465 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00263/0.4033, allocations: 1.045 MB / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001998/0.4053, allocations: 1.362 MB / 1.355 GB, free: 6.047 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.4055, allocations: 4 kB / 1.355 GB, free: 6.043 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.4056, allocations: 19.73 kB / 1.355 GB, free: 6.023 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.823e-05/0.4057, allocations: 39.66 kB / 1.355 GB, free: 5.984 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007985/0.4065, allocations: 269.6 kB / 1.356 GB, free: 5.727 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004372/0.407, allocations: 311.5 kB / 1.356 GB, free: 5.422 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.4072, allocations: 56.69 kB / 1.356 GB, free: 5.363 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.4073, allocations: 119.7 kB / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.4075, allocations: 111.5 kB / 1.356 GB, free: 5.137 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.573e-05/0.4076, allocations: 32 kB / 1.356 GB, free: 5.105 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.4077, allocations: 55.92 kB / 1.356 GB, free: 5.051 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.703e-05/0.4077, allocations: 27.92 kB / 1.356 GB, free: 5.023 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.4079, allocations: 123.5 kB / 1.356 GB, free: 4.902 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004349/0.4083, allocations: 347.1 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4083, allocations: 0 / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.933e-06/0.4083, allocations: 4 kB / 1.357 GB, free: 4.559 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.4083, allocations: 0 / 1.357 GB, free: 4.559 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008042/0.4091, allocations: 468.9 kB / 1.357 GB, free: 4.055 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.4092, allocations: 12.03 kB / 1.357 GB, free: 4.043 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.717e-05/0.4092, allocations: 46.73 kB / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.482e-05/0.4093, allocations: 24.8 kB / 1.357 GB, free: 3.965 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.4097, allocations: 188.3 kB / 1.357 GB, free: 3.754 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.4097, allocations: 20.36 kB / 1.357 GB, free: 3.734 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.4098, allocations: 36.3 kB / 1.357 GB, free: 3.699 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.41, allocations: 118 kB / 1.358 GB, free: 3.578 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.41, allocations: 0 / 1.358 GB, free: 3.578 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.41, allocations: 8 kB / 1.358 GB, free: 3.57 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.41, allocations: 4 kB / 1.358 GB, free: 3.566 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.4102, allocations: 71.97 kB / 1.358 GB, free: 3.496 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008899/0.4111, allocations: 0.546 MB / 1.358 GB, free: 2.906 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.4112, allocations: 90.47 kB / 1.358 GB, free: 2.809 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.579e-05/0.4113, allocations: 36.92 kB / 1.358 GB, free: 2.77 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.4113, allocations: 0 / 1.358 GB, free: 2.77 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000196/0.4115, allocations: 119.3 kB / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.4115, allocations: 4 kB / 1.358 GB, free: 2.637 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0003749/0.4119, allocations: 187.4 kB / 1.359 GB, free: 2.449 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.412, allocations: 55.41 kB / 1.359 GB, free: 2.383 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.4122, allocations: 182.7 kB / 1.359 GB, free: 2.191 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.4122, allocations: 37.7 kB / 1.359 GB, free: 2.148 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.4123, allocations: 128.4 kB / 1.359 GB, free: 2.02 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.973e-05/0.4123, allocations: 31.8 kB / 1.359 GB, free: 1.988 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.4125, allocations: 65.67 kB / 1.359 GB, free: 1.918 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4126, allocations: 330.8 kB / 1.359 GB, free: 1.586 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.4128, allocations: 83.95 kB / 1.359 GB, free: 1.504 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.413, allocations: 131.2 kB / 1.36 GB, free: 1.359 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.4133, allocations: 214.1 kB / 1.36 GB, free: 1.121 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4133, allocations: 0 / 1.36 GB, free: 1.121 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005792/0.4139, allocations: 346.5 kB / 1.36 GB, free: 0.7656 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.912e-05/0.4139, allocations: 67.39 kB / 1.36 GB, free: 0.6875 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.414, allocations: 7.984 kB / 1.36 GB, free: 0.6797 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.414, allocations: 4.156 kB / 1.36 GB, free: 0.6758 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.816e-05/0.414, allocations: 15.98 kB / 1.36 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.4141, allocations: 7.938 kB / 1.36 GB, free: 0.6523 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.4144, allocations: 59.83 kB / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.4144, allocations: 15.98 kB / 1.36 GB, free: 0.5781 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (sam.yRec.y,$PRE.sam.yRec.y,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,u.booPul.y,$PRE.u.booPul.y,resSig.y,$PRE.resSig.y,sam.edgThr.y,sam.edgThr.u,$PRE.sam.edgThr.u,sam.edgRes.u,$PRE.sam.edgRes.u,sam.samTri.y,sam.samTri.u2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 2 * 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.0001407/0.4146, allocations: 146.4 kB / 1.36 GB, free: 436 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.4146, allocations: 15.91 kB / 1.36 GB, free: 420 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.396e-05/0.4146, allocations: 21.45 kB / 1.36 GB, free: 396 kB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.4146, allocations: 0 / 1.36 GB, free: 396 kB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4146, allocations: 3.938 kB / 1.36 GB, free: 392 kB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.4146, allocations: 4 kB / 1.36 GB, free: 388 kB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005525/0.4152, allocations: 452.2 kB / 1.361 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.4152, allocations: 4 kB / 1.361 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.703e-05/0.4152, allocations: 11.94 kB / 1.361 GB, free: 15.87 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.4152, allocations: 0 / 1.361 GB, free: 15.87 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.4152, allocations: 3.984 kB / 1.361 GB, free: 15.87 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.4153, allocations: 4 kB / 1.361 GB, free: 15.86 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4153, allocations: 0 / 1.361 GB, free: 15.86 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.4155, allocations: 235.8 kB / 1.361 GB, free: 15.62 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.367e-05/0.4156, allocations: 23.8 kB / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.4156, allocations: 4 kB / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.032e-05/0.4157, allocations: 11.98 kB / 1.361 GB, free: 15.58 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.4157, allocations: 11.98 kB / 1.361 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.4157, allocations: 15.88 kB / 1.361 GB, free: 15.55 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000127/0.4159, allocations: 140.8 kB / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4159, allocations: 0 / 1.361 GB, free: 15.41 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003109/0.4162, allocations: 44 kB / 1.361 GB, free: 15.37 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (sam.samTri.y,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,$whenCondition1,sam.yRec.y,sam.samTri.u2,sam.edgRes.u,sam.edgThr.u,sam.edgThr.y,resSig.y,u.booPul.y) * Number of discrete states: 2 (sam.edgThr.u,sam.edgRes.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006692/0.4168, allocations: 0.7914 MB / 1.362 GB, free: 14.55 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004695/0.4173, allocations: 290.8 kB / 1.362 GB, free: 14.25 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4173, allocations: 0 / 1.362 GB, free: 14.25 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.307e-05/0.4174, allocations: 43.98 kB / 1.362 GB, free: 14.21 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.4178, allocations: 28.23 kB / 1.363 GB, free: 14.18 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.4207, allocations: 2.326 MB / 1.365 GB, free: 11.74 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.4211, allocations: 0.7203 MB / 1.365 GB, free: 10.99 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.561e-05/0.4212, allocations: 17.48 kB / 1.365 GB, free: 10.97 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.919e-05/0.4213, allocations: 55.41 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of SimCode: time 4.81e-07/0.4213, allocations: 4 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0339/0.4552, allocations: 4.527 MB / 1.37 GB, free: 6.582 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.82, allocations: 21.36 kB / 1.37 GB, free: 6.562 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.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.07025399291888]