Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001779/0.001779, allocations: 110.4 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.002338/0.002338, allocations: 221.4 kB / 22.26 MB, free: 5.125 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.561/1.561, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.398/3.398, allocations: 0.49 GB / 0.7951 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: 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_12_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_12_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.002154/0.002154, allocations: 69 kB / 1.154 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4355/0.4377, allocations: 176.1 MB / 1.326 GB, free: 1.43 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00274/0.4404, allocations: 1.045 MB / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002097/0.4425, allocations: 1.369 MB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.4427, allocations: 7.938 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.4428, allocations: 15.8 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.166e-05/0.4429, allocations: 27.73 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008726/0.4438, allocations: 268.7 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003969/0.4442, allocations: 311.5 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.4444, allocations: 60.69 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.4445, allocations: 119.7 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.4447, allocations: 115.5 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.4448, allocations: 32 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.782e-05/0.4449, allocations: 39.98 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.351e-05/0.4449, allocations: 35.92 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.445, allocations: 123.5 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004523/0.4455, allocations: 342.8 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4455, allocations: 0 / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4455, allocations: 7.938 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.4455, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 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.0008148/0.4463, allocations: 468.9 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.4464, allocations: 8.031 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.102e-05/0.4465, allocations: 24.84 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.4468, allocations: 200 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.4469, allocations: 12.38 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.4469, allocations: 24.36 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002647/0.4472, allocations: 126.1 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.4472, allocations: 7.922 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.4472, allocations: 4 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.4472, allocations: 4 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.4474, allocations: 71.91 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009974/0.4483, allocations: 0.5499 MB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.4486, allocations: 90.56 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.256e-05/0.4486, allocations: 36.94 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.4487, allocations: 4 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.4489, allocations: 115.5 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.4489, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004307/0.4493, allocations: 180.3 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.4494, allocations: 63.39 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/0.4496, allocations: 191.2 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/0.4496, allocations: 33.7 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.4497, allocations: 124.4 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.4498, allocations: 39.73 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.4499, allocations: 65.67 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001963/0.4501, allocations: 322.8 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.4503, allocations: 91.95 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.4505, allocations: 133 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.4508, allocations: 209.9 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4508, allocations: 3.938 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006208/0.4515, allocations: 340.7 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.202e-05/0.4515, allocations: 72.95 kB / 1.334 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.4515, allocations: 0 / 1.334 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.4516, allocations: 4 kB / 1.334 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.088e-05/0.4516, allocations: 16.03 kB / 1.334 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4517, allocations: 4 kB / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.452, allocations: 67.81 kB / 1.334 GB, free: 9.613 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.452, allocations: 12 kB / 1.334 GB, free: 9.602 MB / 1.029 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.0002027/0.4522, allocations: 153.6 kB / 1.334 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.4523, allocations: 19.86 kB / 1.334 GB, free: 9.422 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.112e-05/0.4523, allocations: 17.47 kB / 1.334 GB, free: 9.395 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.4523, allocations: 0 / 1.334 GB, free: 9.395 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4523, allocations: 4 kB / 1.334 GB, free: 9.391 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.4523, allocations: 0 / 1.334 GB, free: 9.391 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006058/0.4529, allocations: 445.6 kB / 1.334 GB, free: 8.906 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.4529, allocations: 0 / 1.334 GB, free: 8.906 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.728e-05/0.453, allocations: 15.98 kB / 1.334 GB, free: 8.891 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.453, allocations: 4 kB / 1.334 GB, free: 8.887 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.453, allocations: 4 kB / 1.334 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.453, allocations: 0 / 1.334 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.453, allocations: 0 / 1.334 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.4533, allocations: 239.8 kB / 1.335 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.778e-05/0.4533, allocations: 19.84 kB / 1.335 GB, free: 8.613 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.4533, allocations: 11.92 kB / 1.335 GB, free: 8.602 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.723e-05/0.4534, allocations: 4 kB / 1.335 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.4535, allocations: 19.97 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.4535, allocations: 4 kB / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001309/0.4536, allocations: 140.2 kB / 1.335 GB, free: 8.438 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4536, allocations: 0 / 1.335 GB, free: 8.438 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003389/0.4539, allocations: 47.95 kB / 1.335 GB, free: 8.391 MB / 1.029 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.0002088/0.4542, allocations: 122.5 kB / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004832/0.4546, allocations: 278.7 kB / 1.335 GB, free: 7.969 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4546, allocations: 3.938 kB / 1.335 GB, free: 7.965 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.673e-05/0.4547, allocations: 46.94 kB / 1.335 GB, free: 7.922 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.4551, allocations: 35.95 kB / 1.335 GB, free: 7.887 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000685/0.4558, allocations: 296 kB / 1.336 GB, free: 7.574 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.4563, allocations: 0.7242 MB / 1.336 GB, free: 6.824 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.804e-05/0.4563, allocations: 17.48 kB / 1.336 GB, free: 6.809 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.414e-05/0.4564, allocations: 15.44 kB / 1.336 GB, free: 6.793 MB / 1.029 GB Notification: Performance of SimCode: time 6.41e-07/0.4564, allocations: 3.938 kB / 1.336 GB, free: 6.789 MB / 1.029 GB Notification: Performance of Templates: time 0.007281/0.4637, allocations: 2.795 MB / 1.339 GB, free: 4.055 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_SamplerWithResetThreshold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.721085323020816]