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.001409/0.001409, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001671/0.001671, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.58/1.58, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 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.343/3.343, allocations: 429.6 MB / 0.673 GB, free: 3.906 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 0.8776 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.974e-05/3.19e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.484 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002621/0.002653, allocations: 0.9993 MB / 0.8786 GB, free: 5.516 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002434/0.005086, allocations: 1.343 MB / 0.8799 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.005261, allocations: 8.5 kB / 0.8799 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.005447, allocations: 20.45 kB / 0.8799 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.00557, allocations: 27.55 kB / 0.8799 GB, free: 4.109 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008835/0.006454, allocations: 271.2 kB / 0.8802 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000547/0.007, allocations: 299.5 kB / 0.8805 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.007227, allocations: 60.73 kB / 0.8806 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003537/0.00758, allocations: 171.7 kB / 0.8807 GB, free: 3.32 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.007785, allocations: 79.75 kB / 0.8808 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 8.022e-05/0.007865, allocations: 32 kB / 0.8808 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.007988, allocations: 53.45 kB / 0.8809 GB, free: 3.16 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.199e-05/0.00804, allocations: 35.89 kB / 0.8809 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.008191, allocations: 87.8 kB / 0.881 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0006218/0.008813, allocations: 382.8 kB / 0.8814 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.008822, allocations: 5.031 kB / 0.8814 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.713e-06/0.008823, allocations: 4 kB / 0.8814 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.633e-05/0.00884, allocations: 1.125 kB / 0.8814 GB, free: 2.656 MB / 0.8386 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.0009642/0.009804, allocations: 460.9 kB / 0.8818 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.009849, allocations: 12.03 kB / 0.8818 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.009974, allocations: 33.88 kB / 0.8818 GB, free: 2.117 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/0.01046, allocations: 199.5 kB / 0.882 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.01049, allocations: 17.5 kB / 0.8821 GB, free: 1.879 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.009e-05/0.01054, allocations: 20.38 kB / 0.8821 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.01081, allocations: 126.9 kB / 0.8822 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.01082, allocations: 1.062 kB / 0.8822 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.01084, allocations: 4.375 kB / 0.8822 GB, free: 1.727 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.01085, allocations: 8.625 kB / 0.8822 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.01102, allocations: 68.47 kB / 0.8823 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009813/0.012, allocations: 461.7 kB / 0.8827 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.01224, allocations: 90.56 kB / 0.8828 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.022e-05/0.01232, allocations: 38.19 kB / 0.8828 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.01235, allocations: 4 kB / 0.8828 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.01258, allocations: 108.4 kB / 0.8829 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.823e-06/0.01258, allocations: 0 / 0.8829 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0004754/0.01306, allocations: 193.6 kB / 0.8831 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.01313, allocations: 56.05 kB / 0.8832 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.01335, allocations: 176.2 kB / 0.8834 GB, free: 480 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.117e-05/0.0134, allocations: 35.3 kB / 0.8834 GB, free: 440 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.01354, allocations: 132.4 kB / 0.8835 GB, free: 304 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.01358, allocations: 35.72 kB / 0.8835 GB, free: 268 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.01372, allocations: 69.62 kB / 0.8836 GB, free: 192 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002092/0.01393, allocations: 329.5 kB / 0.8839 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.0142, allocations: 151.3 kB / 0.8841 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.01452, allocations: 195.5 kB / 0.8843 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003407/0.01486, allocations: 208.9 kB / 0.8845 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.01487, allocations: 0 / 0.8845 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000755/0.01562, allocations: 416.9 kB / 0.8849 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.929e-05/0.01571, allocations: 71.33 kB / 0.8849 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.01572, allocations: 5.656 kB / 0.8849 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.01574, allocations: 0 / 0.8849 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.905e-05/0.01582, allocations: 11.94 kB / 0.8849 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.01583, allocations: 7.984 kB / 0.8849 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.01622, allocations: 61.36 kB / 0.885 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.01626, allocations: 12.16 kB / 0.885 GB, free: 14.64 MB / 0.8542 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.0001939/0.01646, allocations: 145.8 kB / 0.8852 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.675e-05/0.01649, allocations: 19.84 kB / 0.8852 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/0.01654, allocations: 21.41 kB / 0.8852 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.01655, allocations: 7.984 kB / 0.8852 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.01656, allocations: 3.984 kB / 0.8852 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.01656, allocations: 0 / 0.8852 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006625/0.01722, allocations: 393.1 kB / 0.8856 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.01723, allocations: 11.94 kB / 0.8856 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.664e-05/0.01726, allocations: 7.938 kB / 0.8856 GB, free: 14 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.01727, allocations: 0 / 0.8856 GB, free: 14 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.01728, allocations: 8 kB / 0.8856 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.01729, allocations: 7.984 kB / 0.8856 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01729, allocations: 0 / 0.8856 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.01762, allocations: 235.9 kB / 0.8858 GB, free: 13.74 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.118e-05/0.01765, allocations: 15.84 kB / 0.8859 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.01768, allocations: 8 kB / 0.8859 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.659e-05/0.01776, allocations: 0 / 0.8859 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.167e-05/0.01783, allocations: 19.97 kB / 0.8859 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.01786, allocations: 8 kB / 0.8859 GB, free: 13.69 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001262/0.01798, allocations: 127.9 kB / 0.886 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01798, allocations: 0 / 0.886 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003348/0.01832, allocations: 51.89 kB / 0.8861 GB, free: 13.51 MB / 0.8542 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.0002152/0.01853, allocations: 115.2 kB / 0.8862 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005733/0.01911, allocations: 342 kB / 0.8865 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01911, allocations: 4.312 kB / 0.8865 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.01921, allocations: 47.92 kB / 0.8865 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.0196, allocations: 35.34 kB / 0.8866 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007047/0.0203, allocations: 297.3 kB / 0.8869 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/0.02045, allocations: 112.1 kB / 0.887 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.272e-05/0.02051, allocations: 13.48 kB / 0.887 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.012e-05/0.02056, allocations: 24.44 kB / 0.887 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of SimCode: time 7.82e-07/0.02056, allocations: 0 / 0.887 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of Templates: time 0.007967/0.02853, allocations: 2.894 MB / 0.8898 GB, free: 9.664 MB / 0.8542 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.66944216703996]