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.001127/0.001127, allocations: 88.22 kB / 19.65 MB, free: 272 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.0009996/0.0009996, allocations: 177 kB / 23.02 MB, free: 1.539 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 0.9092/0.9092, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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 2.042/2.042, allocations: 429.5 MB / 0.6732 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 177] 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 3.907e-06/3.907e-06, allocations: 0 / 0.8782 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.107e-05/3.498e-05, allocations: 4.844 kB / 0.8782 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002814/0.002849, allocations: 1.059 MB / 0.8792 GB, free: 5.273 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00206/0.004908, allocations: 1.362 MB / 0.8805 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.005081, allocations: 8.875 kB / 0.8806 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.005249, allocations: 19.8 kB / 0.8806 GB, free: 3.871 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.005352, allocations: 36.81 kB / 0.8806 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000722/0.006074, allocations: 256.4 kB / 0.8809 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.006392, allocations: 308.4 kB / 0.8811 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.006544, allocations: 64.67 kB / 0.8812 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.006704, allocations: 167.7 kB / 0.8814 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.006829, allocations: 84.88 kB / 0.8814 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.021e-05/0.006869, allocations: 28 kB / 0.8815 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.55e-05/0.006944, allocations: 43.98 kB / 0.8815 GB, free: 2.902 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.614e-05/0.00698, allocations: 36.88 kB / 0.8816 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.735e-05/0.007068, allocations: 87.81 kB / 0.8816 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.007348, allocations: 228.4 kB / 0.8819 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.007353, allocations: 0 / 0.8819 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.734e-06/0.007354, allocations: 4 kB / 0.8819 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.00736, allocations: 0.7188 kB / 0.8819 GB, free: 2.555 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.0006226/0.007982, allocations: 0.5539 MB / 0.8824 GB, free: 1.949 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.008024, allocations: 9.594 kB / 0.8824 GB, free: 1.941 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.814e-05/0.008112, allocations: 32.84 kB / 0.8824 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.008369, allocations: 198.1 kB / 0.8826 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.008397, allocations: 20.86 kB / 0.8826 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.008424, allocations: 20.38 kB / 0.8827 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.008594, allocations: 109.4 kB / 0.8828 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.008602, allocations: 192 / 0.8828 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.008616, allocations: 4.375 kB / 0.8828 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.008626, allocations: 4.375 kB / 0.8828 GB, free: 1.527 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.436e-05/0.0087, allocations: 52.88 kB / 0.8828 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006031/0.009303, allocations: 0.4933 MB / 0.8833 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.00945, allocations: 78.94 kB / 0.8834 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.979e-05/0.00949, allocations: 28.47 kB / 0.8834 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.009509, allocations: 4 kB / 0.8834 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001311/0.009641, allocations: 102.4 kB / 0.8835 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 2.404e-06/0.009643, allocations: 0 / 0.8835 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0002777/0.009921, allocations: 168.6 kB / 0.8837 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.009955, allocations: 54.78 kB / 0.8837 GB, free: 492 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.01009, allocations: 231.5 kB / 0.884 GB, free: 244 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.01011, allocations: 29.7 kB / 0.884 GB, free: 208 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.904e-05/0.01019, allocations: 171.2 kB / 0.8841 GB, free: 32 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.767e-05/0.01024, allocations: 43.86 kB / 0.8842 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.01033, allocations: 71.33 kB / 0.8843 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.01046, allocations: 0.4962 MB / 0.8847 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.0106, allocations: 127.4 kB / 0.8849 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.01074, allocations: 178.2 kB / 0.885 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.01091, allocations: 202.3 kB / 0.8852 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.01091, allocations: 4 kB / 0.8852 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003742/0.01129, allocations: 368.2 kB / 0.8856 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.652e-05/0.01134, allocations: 67.39 kB / 0.8856 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.01134, allocations: 7.75 kB / 0.8856 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.01136, allocations: 0 / 0.8856 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.59e-05/0.01144, allocations: 19.92 kB / 0.8857 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.01144, allocations: 0 / 0.8857 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.0116, allocations: 52.06 kB / 0.8857 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.01162, allocations: 16 kB / 0.8857 GB, free: 14.26 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.0001225/0.01174, allocations: 180.4 kB / 0.8859 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.01178, allocations: 19.91 kB / 0.8859 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.452e-05/0.01182, allocations: 17.41 kB / 0.8859 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.01182, allocations: 0 / 0.8859 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.01183, allocations: 0 / 0.8859 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.01184, allocations: 7.984 kB / 0.8859 GB, free: 14.03 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003696/0.01221, allocations: 425.6 kB / 0.8864 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.01221, allocations: 3.938 kB / 0.8864 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.791e-05/0.01224, allocations: 11.94 kB / 0.8864 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.01224, allocations: 3.984 kB / 0.8864 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.01225, allocations: 0 / 0.8864 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.01225, allocations: 3.938 kB / 0.8864 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.01225, allocations: 4 kB / 0.8864 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003309/0.01258, allocations: 276.3 kB / 0.8866 GB, free: 13.26 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.835e-05/0.0126, allocations: 19.78 kB / 0.8867 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.01262, allocations: 0 / 0.8867 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.428e-05/0.01268, allocations: 12 kB / 0.8867 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.01272, allocations: 15.91 kB / 0.8867 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.01274, allocations: 8 kB / 0.8867 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.003e-05/0.01281, allocations: 155.9 kB / 0.8868 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01281, allocations: 0 / 0.8868 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000225/0.01304, allocations: 51.89 kB / 0.8869 GB, free: 13 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.0001811/0.01322, allocations: 109.1 kB / 0.887 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003614/0.01358, allocations: 331.8 kB / 0.8873 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01358, allocations: 0 / 0.8873 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.661e-05/0.01365, allocations: 51.59 kB / 0.8874 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.01395, allocations: 31.92 kB / 0.8874 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005739/0.01452, allocations: 299.1 kB / 0.8877 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.139e-05/0.01457, allocations: 72.08 kB / 0.8877 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.962e-05/0.01462, allocations: 21.48 kB / 0.8878 GB, free: 12 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.703e-05/0.01466, allocations: 16.5 kB / 0.8878 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of SimCode: time 1.092e-06/0.01466, allocations: 0 / 0.8878 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of Templates: time 0.006062/0.02072, allocations: 3.136 MB / 0.8908 GB, free: 8.961 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.33379468601197]