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.001696/0.001696, allocations: 97.11 kB / 19.71 MB, free: 2.109 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.00191/0.00191, allocations: 215.8 kB / 23.01 MB, free: 4.918 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.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.824 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.474/3.474, allocations: 0.505 GB / 0.8109 GB, free: 23.61 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: translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|u.y|resSig.y|sam.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [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.002035/0.002035, allocations: 62.97 kB / 1.178 GB, free: 16.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4149/0.417, allocations: 180.2 MB / 1.354 GB, free: 7.512 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002554/0.4195, allocations: 0.9992 MB / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002036/0.4216, allocations: 1.335 MB / 1.356 GB, free: 5.164 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.4217, allocations: 0 / 1.356 GB, free: 5.164 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.4219, allocations: 27.73 kB / 1.356 GB, free: 5.137 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.17e-05/0.4219, allocations: 23.73 kB / 1.356 GB, free: 5.113 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007484/0.4227, allocations: 268 kB / 1.357 GB, free: 4.855 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003742/0.4231, allocations: 307.5 kB / 1.357 GB, free: 4.555 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.4232, allocations: 60.69 kB / 1.357 GB, free: 4.492 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.4234, allocations: 119.7 kB / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.4236, allocations: 115.6 kB / 1.357 GB, free: 4.262 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.724e-05/0.4236, allocations: 32 kB / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.4237, allocations: 47.92 kB / 1.357 GB, free: 4.184 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.72e-05/0.4238, allocations: 35.92 kB / 1.357 GB, free: 4.148 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.4239, allocations: 99.62 kB / 1.357 GB, free: 4.051 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.4244, allocations: 354.7 kB / 1.358 GB, free: 3.703 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4244, allocations: 0 / 1.358 GB, free: 3.703 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.473e-06/0.4244, allocations: 0 / 1.358 GB, free: 3.703 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.4244, allocations: 0 / 1.358 GB, free: 3.703 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.0009956/0.4254, allocations: 464.9 kB / 1.358 GB, free: 3.203 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.4254, allocations: 12.03 kB / 1.358 GB, free: 3.191 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.4256, allocations: 32.73 kB / 1.358 GB, free: 3.16 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005937/0.4262, allocations: 196.2 kB / 1.358 GB, free: 2.941 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.4262, allocations: 16.38 kB / 1.358 GB, free: 2.926 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.4262, allocations: 24.36 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003512/0.4266, allocations: 122.2 kB / 1.359 GB, free: 2.777 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.4266, allocations: 3.938 kB / 1.359 GB, free: 2.773 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.4266, allocations: 4 kB / 1.359 GB, free: 2.77 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.4267, allocations: 4 kB / 1.359 GB, free: 2.766 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/0.4269, allocations: 75.95 kB / 1.359 GB, free: 2.691 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.4282, allocations: 463.9 kB / 1.359 GB, free: 2.207 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.4285, allocations: 86.67 kB / 1.359 GB, free: 2.113 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.4286, allocations: 32.84 kB / 1.359 GB, free: 2.078 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.4286, allocations: 7.938 kB / 1.359 GB, free: 2.07 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.4289, allocations: 112.9 kB / 1.359 GB, free: 1.949 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 3.166e-06/0.4289, allocations: 0 / 1.359 GB, free: 1.949 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0005838/0.4295, allocations: 184.3 kB / 1.36 GB, free: 1.766 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.4296, allocations: 59.41 kB / 1.36 GB, free: 1.695 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.4299, allocations: 175.2 kB / 1.36 GB, free: 1.512 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.536e-05/0.4299, allocations: 37.7 kB / 1.36 GB, free: 1.469 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.4301, allocations: 124.4 kB / 1.36 GB, free: 1.344 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.018e-05/0.4301, allocations: 43.72 kB / 1.36 GB, free: 1.301 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.4303, allocations: 61.67 kB / 1.36 GB, free: 1.234 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002375/0.4306, allocations: 326.8 kB / 1.36 GB, free: 0.9062 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004071/0.431, allocations: 147.4 kB / 1.36 GB, free: 0.75 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.4315, allocations: 192.8 kB / 1.361 GB, free: 0.5352 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004493/0.4319, allocations: 213.7 kB / 1.361 GB, free: 304 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.4319, allocations: 0 / 1.361 GB, free: 304 kB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001166/0.4331, allocations: 408 kB / 1.361 GB, free: 15.87 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.86e-05/0.4332, allocations: 73.58 kB / 1.361 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.4332, allocations: 0 / 1.361 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.4332, allocations: 4.156 kB / 1.361 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.4334, allocations: 15.98 kB / 1.361 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.4334, allocations: 3.938 kB / 1.361 GB, free: 15.76 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/0.4339, allocations: 63.83 kB / 1.361 GB, free: 15.7 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.98e-05/0.434, allocations: 15.98 kB / 1.361 GB, free: 15.68 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.0002546/0.4342, allocations: 145.7 kB / 1.362 GB, free: 15.53 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.4343, allocations: 15.84 kB / 1.362 GB, free: 15.52 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.275e-05/0.4343, allocations: 21.45 kB / 1.362 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4344, allocations: 0 / 1.362 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.4344, allocations: 4 kB / 1.362 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.4344, allocations: 15.84 kB / 1.362 GB, free: 15.47 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.4344, allocations: 8 kB / 1.362 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.004e-05/0.4345, allocations: 3.984 kB / 1.362 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.4346, allocations: 11.98 kB / 1.362 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004331/0.435, allocations: 228.7 kB / 1.362 GB, free: 15.22 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004589/0.4355, allocations: 310.7 kB / 1.362 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001419/0.4356, allocations: 45.81 kB / 1.362 GB, free: 14.86 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000162/0.4358, allocations: 120 kB / 1.362 GB, free: 14.74 MB / 1.061 GB Notification: Performance of Backend: time 3.2e-07/0.4358, allocations: 0 / 1.362 GB, free: 14.74 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001316/0.4371, allocations: 399.6 kB / 1.363 GB, free: 14.31 MB / 1.061 GB Notification: Performance of SimCode: time 0.001193/0.4383, allocations: 0.7242 MB / 1.363 GB, free: 13.54 MB / 1.061 GB Notification: Performance of Templates: time 0.01104/0.4493, allocations: 3.198 MB / 1.367 GB, free: 10.43 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 800] 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: 9.640505794995988]