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.002561/0.002561, allocations: 79.7 kB / 20.23 MB, free: 4.195 MB / 18.57 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.002761/0.002761, allocations: 161.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 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.598/1.598, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.067/3.067, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 0.8108 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.882e-05/3.072e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.066 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002688/0.002719, allocations: 1.03 MB / 0.8118 GB, free: 1.059 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002193/0.004912, allocations: 1.343 MB / 0.8131 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.005034, allocations: 5.688 kB / 0.8131 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.005181, allocations: 19.69 kB / 0.8132 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.284e-05/0.005263, allocations: 27.78 kB / 0.8132 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007109/0.005974, allocations: 264.9 kB / 0.8134 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.006387, allocations: 309.1 kB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.006575, allocations: 59.14 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.006819, allocations: 175.7 kB / 0.814 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.006988, allocations: 75.81 kB / 0.814 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.74e-05/0.007055, allocations: 32.66 kB / 0.8141 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003246/0.00738, allocations: 51.86 kB / 0.8141 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.277e-05/0.007443, allocations: 37.12 kB / 0.8141 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.007582, allocations: 91.78 kB / 0.8142 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005044/0.008087, allocations: 382.9 kB / 0.8146 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.00809, allocations: 1.156 kB / 0.8146 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.272e-06/0.008091, allocations: 0 / 0.8146 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.008096, allocations: 0 / 0.8146 GB, free: 14.21 MB / 0.7761 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.0008627/0.008959, allocations: 0.5627 MB / 0.8151 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.008995, allocations: 8.031 kB / 0.8152 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.0091, allocations: 40.8 kB / 0.8152 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.009468, allocations: 204.1 kB / 0.8154 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.009501, allocations: 16.38 kB / 0.8154 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.654e-05/0.009547, allocations: 20.38 kB / 0.8154 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.009784, allocations: 114.2 kB / 0.8155 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.0098, allocations: 4.125 kB / 0.8155 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.009818, allocations: 9.703 kB / 0.8155 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.009827, allocations: 8.125 kB / 0.8156 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.009987, allocations: 71.97 kB / 0.8156 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009625/0.01095, allocations: 0.5358 MB / 0.8161 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.01117, allocations: 96.98 kB / 0.8162 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.069e-05/0.01125, allocations: 43.81 kB / 0.8163 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.01128, allocations: 0 / 0.8163 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/0.01151, allocations: 125.9 kB / 0.8164 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.01151, allocations: 2.406 kB / 0.8164 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0004357/0.01195, allocations: 196 kB / 0.8166 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.012, allocations: 55.41 kB / 0.8166 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.01229, allocations: 259.2 kB / 0.8169 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.72e-05/0.01234, allocations: 33.7 kB / 0.8169 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.01248, allocations: 183.1 kB / 0.8171 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 5.274e-05/0.01254, allocations: 44.41 kB / 0.8171 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.0127, allocations: 83.33 kB / 0.8172 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002901/0.01299, allocations: 0.5084 MB / 0.8177 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.01328, allocations: 164.5 kB / 0.8179 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.01361, allocations: 229.5 kB / 0.8181 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.01397, allocations: 233.4 kB / 0.8183 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.01397, allocations: 0.8438 kB / 0.8183 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000753/0.01473, allocations: 453.8 kB / 0.8187 GB, free: 9.645 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 7.425e-05/0.0148, allocations: 75.33 kB / 0.8188 GB, free: 9.559 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.01481, allocations: 0 / 0.8188 GB, free: 9.559 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.01483, allocations: 4.812 kB / 0.8188 GB, free: 9.555 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.092e-05/0.01491, allocations: 11.94 kB / 0.8188 GB, free: 9.543 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.01492, allocations: 2.312 kB / 0.8188 GB, free: 9.543 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.01523, allocations: 51.84 kB / 0.8189 GB, free: 9.492 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.01527, allocations: 15.98 kB / 0.8189 GB, free: 9.477 MB / 0.7761 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.0001871/0.01545, allocations: 187.1 kB / 0.8191 GB, free: 9.285 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.01549, allocations: 23.91 kB / 0.8191 GB, free: 9.262 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.624e-05/0.01554, allocations: 17.39 kB / 0.8191 GB, free: 9.25 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.01554, allocations: 4 kB / 0.8191 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.279e-06/0.01555, allocations: 1.031 kB / 0.8191 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01555, allocations: 0 / 0.8191 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006347/0.01619, allocations: 478.6 kB / 0.8196 GB, free: 8.738 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.01619, allocations: 3.938 kB / 0.8196 GB, free: 8.734 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.319e-05/0.01622, allocations: 4 kB / 0.8196 GB, free: 8.73 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.01623, allocations: 4.875 kB / 0.8196 GB, free: 8.727 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.01625, allocations: 11.98 kB / 0.8196 GB, free: 8.715 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01625, allocations: 1.688 kB / 0.8196 GB, free: 8.715 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.01625, allocations: 0 / 0.8196 GB, free: 8.715 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003558/0.01661, allocations: 306.1 kB / 0.8199 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.983e-05/0.01664, allocations: 15.84 kB / 0.8199 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.01667, allocations: 4 kB / 0.8199 GB, free: 8.379 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.588e-05/0.01674, allocations: 8.484 kB / 0.8199 GB, free: 8.371 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.0168, allocations: 13.33 kB / 0.8199 GB, free: 8.359 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.01681, allocations: 4 kB / 0.8199 GB, free: 8.355 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.000151/0.01696, allocations: 175.8 kB / 0.8201 GB, free: 8.184 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01697, allocations: 3.938 kB / 0.8201 GB, free: 8.18 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003223/0.01729, allocations: 52.61 kB / 0.8202 GB, free: 8.129 MB / 0.7761 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.01748, allocations: 114.5 kB / 0.8203 GB, free: 8.012 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0006377/0.01812, allocations: 409.6 kB / 0.8207 GB, free: 7.57 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.01812, allocations: 0 / 0.8207 GB, free: 7.57 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.01825, allocations: 63.61 kB / 0.8207 GB, free: 7.504 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.01862, allocations: 43.8 kB / 0.8208 GB, free: 7.465 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008936/0.01951, allocations: 307 kB / 0.8211 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.01966, allocations: 110.2 kB / 0.8212 GB, free: 7.008 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.13e-05/0.01971, allocations: 13.48 kB / 0.8212 GB, free: 6.996 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.751e-05/0.01976, allocations: 22.78 kB / 0.8212 GB, free: 6.977 MB / 0.7761 GB Notification: Performance of SimCode: time 4.11e-07/0.01976, allocations: 0 / 0.8212 GB, free: 6.977 MB / 0.7761 GB Notification: Performance of Templates: time 0.007527/0.02728, allocations: 2.896 MB / 0.824 GB, free: 4.195 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 240] 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: 8.276718955952674]