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.001297/0.001297, allocations: 103.6 kB / 18.95 MB, free: 2.688 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.001809/0.001809, allocations: 216.8 kB / 22.24 MB, free: 5.242 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.801 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.367/3.367, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 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.003192/0.003192, allocations: 71.59 kB / 1.186 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4363/0.4395, allocations: 181.9 MB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002897/0.4424, allocations: 1.001 MB / 1.364 GB, free: 13.12 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002334/0.4447, allocations: 1.335 MB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.4449, allocations: 7.938 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.4451, allocations: 19.8 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.4452, allocations: 31.72 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008529/0.446, allocations: 267.3 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.4465, allocations: 295.5 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.4467, allocations: 68.66 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.4469, allocations: 115.6 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.4471, allocations: 103.5 kB / 1.367 GB, free: 10.89 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.777e-05/0.4472, allocations: 32 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.4473, allocations: 44 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.101e-05/0.4474, allocations: 39.91 kB / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.4475, allocations: 99.62 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005072/0.448, allocations: 343 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.448, allocations: 4 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.653e-06/0.448, allocations: 0 / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.242e-05/0.4481, allocations: 0 / 1.367 GB, free: 10.34 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001044/0.4491, allocations: 464.9 kB / 1.368 GB, free: 9.844 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.4492, allocations: 12.03 kB / 1.368 GB, free: 9.832 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.502e-05/0.4492, allocations: 46.73 kB / 1.368 GB, free: 9.777 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.909e-05/0.4493, allocations: 28.8 kB / 1.368 GB, free: 9.75 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004548/0.4498, allocations: 195.1 kB / 1.368 GB, free: 9.531 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.239e-05/0.4498, allocations: 12.38 kB / 1.368 GB, free: 9.52 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.159e-05/0.4499, allocations: 24.31 kB / 1.368 GB, free: 9.496 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.4501, allocations: 138.4 kB / 1.368 GB, free: 9.355 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.4501, allocations: 0 / 1.368 GB, free: 9.355 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.4502, allocations: 8 kB / 1.368 GB, free: 9.348 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4502, allocations: 0 / 1.368 GB, free: 9.348 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.4503, allocations: 79.97 kB / 1.368 GB, free: 9.27 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009555/0.4513, allocations: 499.2 kB / 1.369 GB, free: 8.738 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.4515, allocations: 90.66 kB / 1.369 GB, free: 8.641 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.802e-05/0.4516, allocations: 32.84 kB / 1.369 GB, free: 8.605 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.4516, allocations: 4 kB / 1.369 GB, free: 8.602 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.4518, allocations: 111.5 kB / 1.369 GB, free: 8.48 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 3.497e-06/0.4518, allocations: 4 kB / 1.369 GB, free: 8.477 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0004119/0.4522, allocations: 179.9 kB / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.4523, allocations: 55.41 kB / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002168/0.4525, allocations: 190.7 kB / 1.369 GB, free: 8.031 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.4525, allocations: 33.7 kB / 1.369 GB, free: 7.992 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.4527, allocations: 136.3 kB / 1.369 GB, free: 7.855 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.015e-05/0.4527, allocations: 27.8 kB / 1.369 GB, free: 7.828 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.4528, allocations: 61.69 kB / 1.369 GB, free: 7.762 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001808/0.453, allocations: 334.8 kB / 1.37 GB, free: 7.426 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.4532, allocations: 147.3 kB / 1.37 GB, free: 7.27 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.4535, allocations: 196.5 kB / 1.37 GB, free: 7.047 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.4538, allocations: 215.1 kB / 1.37 GB, free: 6.809 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4538, allocations: 0 / 1.37 GB, free: 6.809 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007258/0.4546, allocations: 404.1 kB / 1.371 GB, free: 6.383 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.681e-05/0.4546, allocations: 71.39 kB / 1.371 GB, free: 6.301 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.4546, allocations: 8.156 kB / 1.371 GB, free: 6.293 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.4547, allocations: 0 / 1.371 GB, free: 6.293 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.54e-05/0.4548, allocations: 15.92 kB / 1.371 GB, free: 6.277 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.4548, allocations: 4 kB / 1.371 GB, free: 6.273 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.4551, allocations: 59.83 kB / 1.371 GB, free: 6.215 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.226e-05/0.4552, allocations: 15.98 kB / 1.371 GB, free: 6.199 MB / 1.061 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.0001859/0.4554, allocations: 150.3 kB / 1.371 GB, free: 6.043 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.276e-05/0.4554, allocations: 15.91 kB / 1.371 GB, free: 6.027 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.917e-05/0.4555, allocations: 21.45 kB / 1.371 GB, free: 5.996 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.4555, allocations: 0 / 1.371 GB, free: 5.996 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.4555, allocations: 4 kB / 1.371 GB, free: 5.992 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4555, allocations: 0 / 1.371 GB, free: 5.992 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.4561, allocations: 441.6 kB / 1.371 GB, free: 5.512 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4561, allocations: 0 / 1.371 GB, free: 5.512 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.6e-05/0.4561, allocations: 7.938 kB / 1.371 GB, free: 5.504 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4561, allocations: 4 kB / 1.371 GB, free: 5.5 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.4561, allocations: 3.984 kB / 1.371 GB, free: 5.496 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.4561, allocations: 4 kB / 1.371 GB, free: 5.492 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4561, allocations: 0 / 1.371 GB, free: 5.492 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.4564, allocations: 246.2 kB / 1.372 GB, free: 5.238 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.4565, allocations: 19.84 kB / 1.372 GB, free: 5.219 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.4565, allocations: 0 / 1.372 GB, free: 5.219 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-05/0.4566, allocations: 11.98 kB / 1.372 GB, free: 5.207 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.4567, allocations: 7.984 kB / 1.372 GB, free: 5.199 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.4567, allocations: 11.94 kB / 1.372 GB, free: 5.188 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001476/0.4568, allocations: 140.8 kB / 1.372 GB, free: 5.051 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4568, allocations: 11.94 kB / 1.372 GB, free: 5.039 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003303/0.4571, allocations: 40 kB / 1.372 GB, free: 5 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.0007348/0.4579, allocations: 0.7922 MB / 1.373 GB, free: 4.184 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005681/0.4585, allocations: 338 kB / 1.373 GB, free: 3.816 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4585, allocations: 0 / 1.373 GB, free: 3.816 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.941e-05/0.4586, allocations: 51.91 kB / 1.373 GB, free: 3.766 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.459, allocations: 40.22 kB / 1.373 GB, free: 3.727 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/0.4624, allocations: 2.572 MB / 1.376 GB, free: 0.9922 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.4625, allocations: 116.1 kB / 1.376 GB, free: 0.8633 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.704e-05/0.4626, allocations: 13.48 kB / 1.376 GB, free: 0.8477 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.833e-05/0.4627, allocations: 55.42 kB / 1.376 GB, free: 0.793 MB / 1.061 GB Notification: Performance of SimCode: time 1.021e-06/0.4627, allocations: 0 / 1.376 GB, free: 0.793 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03609/0.4988, allocations: 5.173 MB / 1.381 GB, free: 11.85 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.16, allocations: 7.922 kB / 1.381 GB, free: 11.84 MB / 1.076 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.191136409994215]