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.001895/0.001895, allocations: 80.92 kB / 19.18 MB, free: 2.52 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.002381/0.002381, allocations: 167.1 kB / 22.46 MB, free: 5.375 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.527/1.527, allocations: 177.2 MB / 202.8 MB, free: 9.156 MB / 190.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.008/3.008, allocations: 389 MB / 0.633 GB, free: 0.9727 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 2.604e-06/2.604e-06, allocations: 0 / 1 GB, free: 7.254 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.241e-05/3.502e-05, allocations: 4.953 kB / 1 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002463/0.002498, allocations: 1.001 MB / 1.001 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002042/0.004541, allocations: 1.345 MB / 1.002 GB, free: 4.895 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.00467, allocations: 7.938 kB / 1.002 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.004815, allocations: 19.8 kB / 1.002 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.27e-05/0.004907, allocations: 35.66 kB / 1.002 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007872/0.005694, allocations: 277 kB / 1.003 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.00614, allocations: 311.4 kB / 1.003 GB, free: 4.262 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.006314, allocations: 64.72 kB / 1.003 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.006564, allocations: 159.8 kB / 1.003 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.006755, allocations: 83.75 kB / 1.003 GB, free: 3.961 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.358e-05/0.006829, allocations: 35.98 kB / 1.003 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.871e-05/0.006928, allocations: 36 kB / 1.003 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.176e-05/0.006989, allocations: 43.83 kB / 1.003 GB, free: 3.848 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.007124, allocations: 91.81 kB / 1.004 GB, free: 3.758 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005192/0.007643, allocations: 378.9 kB / 1.004 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.007647, allocations: 0 / 1.004 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.556e-06/0.007651, allocations: 3.984 kB / 1.004 GB, free: 3.383 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.007659, allocations: 0 / 1.004 GB, free: 3.383 MB / 0.9512 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.0008361/0.008496, allocations: 464.9 kB / 1.004 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.008531, allocations: 11.98 kB / 1.004 GB, free: 2.871 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.41e-05/0.008625, allocations: 32.78 kB / 1.004 GB, free: 2.84 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.00902, allocations: 190.3 kB / 1.005 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.009045, allocations: 12.38 kB / 1.005 GB, free: 2.613 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.871e-05/0.009094, allocations: 28.36 kB / 1.005 GB, free: 2.586 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.009357, allocations: 118.2 kB / 1.005 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.009368, allocations: 192 / 1.005 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.009389, allocations: 8.375 kB / 1.005 GB, free: 2.457 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.009396, allocations: 4.125 kB / 1.005 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.009559, allocations: 79.91 kB / 1.005 GB, free: 2.375 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008633/0.01042, allocations: 452 kB / 1.005 GB, free: 1.902 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002108/0.01063, allocations: 90.52 kB / 1.005 GB, free: 1.805 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.908e-05/0.01071, allocations: 40.98 kB / 1.005 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.01074, allocations: 3.984 kB / 1.005 GB, free: 1.758 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001976/0.01094, allocations: 115.4 kB / 1.005 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.01094, allocations: 0 / 1.005 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.000411/0.01135, allocations: 188.1 kB / 1.006 GB, free: 1.445 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.0114, allocations: 59.34 kB / 1.006 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.0116, allocations: 163.3 kB / 1.006 GB, free: 1.203 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.01164, allocations: 37.7 kB / 1.006 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.01177, allocations: 132.4 kB / 1.006 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.849e-05/0.01182, allocations: 47.67 kB / 1.006 GB, free: 0.9766 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.01195, allocations: 57.69 kB / 1.006 GB, free: 0.9141 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.01212, allocations: 326.8 kB / 1.006 GB, free: 0.5859 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.01237, allocations: 155.3 kB / 1.007 GB, free: 432 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/0.01265, allocations: 196.4 kB / 1.007 GB, free: 204 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.01298, allocations: 202.3 kB / 1.007 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.01298, allocations: 4 kB / 1.007 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006846/0.01367, allocations: 404.1 kB / 1.007 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.223e-05/0.01375, allocations: 71.33 kB / 1.007 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.01375, allocations: 0 / 1.007 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.01377, allocations: 4 kB / 1.007 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.391e-05/0.01385, allocations: 15.94 kB / 1.007 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.01386, allocations: 3.984 kB / 1.007 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.01422, allocations: 63.98 kB / 1.008 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.01426, allocations: 19.98 kB / 1.008 GB, free: 15.36 MB / 0.9669 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.0001682/0.01443, allocations: 142.2 kB / 1.008 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.01446, allocations: 11.91 kB / 1.008 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.811e-05/0.0145, allocations: 21.41 kB / 1.008 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.01451, allocations: 4 kB / 1.008 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.01451, allocations: 0 / 1.008 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.01452, allocations: 7.984 kB / 1.008 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005421/0.01506, allocations: 386.3 kB / 1.008 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.01507, allocations: 3.938 kB / 1.008 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.884e-05/0.01511, allocations: 15.94 kB / 1.008 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.01511, allocations: 0 / 1.008 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.01512, allocations: 0 / 1.008 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.01513, allocations: 4 kB / 1.008 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.01513, allocations: 0 / 1.008 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.01544, allocations: 238.8 kB / 1.008 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.01547, allocations: 19.83 kB / 1.008 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.01551, allocations: 12 kB / 1.008 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.7e-05/0.01558, allocations: 0 / 1.008 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.01565, allocations: 19.97 kB / 1.008 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.01566, allocations: 7.938 kB / 1.008 GB, free: 14.42 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001161/0.01578, allocations: 124.9 kB / 1.009 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01578, allocations: 0 / 1.009 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003508/0.01613, allocations: 55.89 kB / 1.009 GB, free: 14.25 MB / 0.9669 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.0002008/0.01633, allocations: 107.2 kB / 1.009 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000571/0.0169, allocations: 349.9 kB / 1.009 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.0169, allocations: 0 / 1.009 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.01701, allocations: 47.92 kB / 1.009 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003754/0.01739, allocations: 37.8 kB / 1.009 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006641/0.01805, allocations: 282.9 kB / 1.009 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.01816, allocations: 116 kB / 1.009 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.103e-05/0.01822, allocations: 13.48 kB / 1.009 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.01826, allocations: 16.5 kB / 1.009 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of SimCode: time 5.51e-07/0.01826, allocations: 0 / 1.009 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of Templates: time 0.007364/0.02562, allocations: 2.882 MB / 1.012 GB, free: 10.42 MB / 0.9669 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/jenkins/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: 8.540216512978077]