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.001911/0.001911, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002169/0.002169, allocations: 212.8 kB / 22.99 MB, free: 4.957 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.568/1.568, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.494/3.494, allocations: 0.49 GB / 0.7959 GB, free: 35.36 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.00224/0.00224, allocations: 62.77 kB / 1.155 GB, free: 25.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4375/0.4397, allocations: 176.1 MB / 1.327 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002782/0.4425, allocations: 0.9885 MB / 1.328 GB, free: 32 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002157/0.4447, allocations: 1.338 MB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.4448, allocations: 7.938 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.4449, allocations: 19.73 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.9e-05/0.445, allocations: 31.72 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007345/0.4457, allocations: 273.5 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.4461, allocations: 307.5 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.4463, allocations: 64.67 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.4464, allocations: 115.7 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.4466, allocations: 111.6 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.779e-05/0.4467, allocations: 28 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.605e-05/0.4468, allocations: 43.98 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.442e-05/0.4468, allocations: 39.92 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.447, allocations: 107.5 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.4474, allocations: 342.8 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.4474, allocations: 0 / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4474, allocations: 0 / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.4474, allocations: 0 / 1.331 GB, free: 13.22 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.0008036/0.4482, allocations: 472.8 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.4483, allocations: 8.031 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.798e-05/0.4483, allocations: 24.84 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.4487, allocations: 191.8 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.4488, allocations: 16.38 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.774e-05/0.4488, allocations: 20.38 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.4491, allocations: 130.1 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.4491, allocations: 3.938 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.4491, allocations: 4 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4491, allocations: 4 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.4493, allocations: 67.97 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008749/0.4502, allocations: 471.8 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.4504, allocations: 90.72 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.846e-05/0.4504, allocations: 32.84 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.4504, allocations: 7.938 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.4506, allocations: 117.6 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.4506, allocations: 0 / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0004456/0.4511, allocations: 181.4 kB / 1.333 GB, free: 11.28 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.4512, allocations: 55.41 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.4513, allocations: 175.9 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.4514, allocations: 37.64 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.4515, allocations: 132.5 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.4515, allocations: 39.75 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.4517, allocations: 61.67 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.4518, allocations: 326.8 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.4521, allocations: 147.4 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002953/0.4524, allocations: 192.4 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.4527, allocations: 214.2 kB / 1.334 GB, free: 9.805 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4527, allocations: 4 kB / 1.334 GB, free: 9.801 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000643/0.4533, allocations: 406.5 kB / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.439e-05/0.4534, allocations: 75.39 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.4534, allocations: 0 / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.4534, allocations: 4 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.87e-05/0.4535, allocations: 7.938 kB / 1.334 GB, free: 9.277 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.4535, allocations: 4 kB / 1.334 GB, free: 9.273 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.4538, allocations: 75.97 kB / 1.334 GB, free: 9.199 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.4539, allocations: 8 kB / 1.334 GB, free: 9.191 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.0001535/0.454, allocations: 146.2 kB / 1.335 GB, free: 9.039 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.454, allocations: 23.84 kB / 1.335 GB, free: 9.016 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.699e-05/0.4541, allocations: 13.47 kB / 1.335 GB, free: 8.996 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.4541, allocations: 4 kB / 1.335 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.4541, allocations: 0 / 1.335 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4541, allocations: 0 / 1.335 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.4546, allocations: 408.4 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4546, allocations: 0 / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.739e-05/0.4547, allocations: 7.984 kB / 1.335 GB, free: 8.551 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.4547, allocations: 4 kB / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.4547, allocations: 0 / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4547, allocations: 0 / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4547, allocations: 0 / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.455, allocations: 239.8 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.674e-05/0.455, allocations: 23.84 kB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.4551, allocations: 3.984 kB / 1.335 GB, free: 8.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.915e-05/0.4551, allocations: 11.94 kB / 1.335 GB, free: 8.258 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.4552, allocations: 11.97 kB / 1.335 GB, free: 8.246 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.4552, allocations: 8 kB / 1.335 GB, free: 8.238 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001012/0.4553, allocations: 120 kB / 1.335 GB, free: 8.121 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4553, allocations: 0 / 1.335 GB, free: 8.121 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003072/0.4556, allocations: 51.89 kB / 1.335 GB, free: 8.07 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.0001971/0.4558, allocations: 121.7 kB / 1.336 GB, free: 7.945 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000523/0.4563, allocations: 339.4 kB / 1.336 GB, free: 7.578 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4563, allocations: 0 / 1.336 GB, free: 7.578 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.4565, allocations: 51.91 kB / 1.336 GB, free: 7.527 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.4569, allocations: 35.86 kB / 1.336 GB, free: 7.492 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005853/0.4575, allocations: 294.5 kB / 1.336 GB, free: 7.18 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.4576, allocations: 108 kB / 1.336 GB, free: 7.059 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.52e-05/0.4576, allocations: 17.42 kB / 1.336 GB, free: 7.039 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.948e-05/0.4577, allocations: 19.44 kB / 1.336 GB, free: 7.023 MB / 1.029 GB Notification: Performance of SimCode: time 3.3e-07/0.4577, allocations: 4 kB / 1.336 GB, free: 7.02 MB / 1.029 GB Notification: Performance of Templates: time 0.007239/0.4649, allocations: 3.022 MB / 1.339 GB, free: 4.098 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 -s cvode -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/jenkins1/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.706147122007678]