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.001035/0.001035, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001109/0.001109, allocations: 173 kB / 23.49 MB, free: 1.059 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.9955/0.9955, allocations: 177.1 MB / 203.8 MB, free: 5.652 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.053/2.053, allocations: 429.5 MB / 0.6736 GB, free: 4.043 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 2.505e-06/2.505e-06, allocations: 0 / 0.8782 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.955e-05/3.205e-05, allocations: 6.5 kB / 0.8782 GB, free: 6.637 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.001867/0.001899, allocations: 1.055 MB / 0.8792 GB, free: 5.605 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.003327, allocations: 1.358 MB / 0.8805 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.003454, allocations: 7.938 kB / 0.8806 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.003585, allocations: 17.33 kB / 0.8806 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.307e-05/0.003648, allocations: 35.67 kB / 0.8806 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.004183, allocations: 260.6 kB / 0.8809 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002733/0.004457, allocations: 312.4 kB / 0.8812 GB, free: 3.617 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.00461, allocations: 56.73 kB / 0.8812 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.004754, allocations: 163.8 kB / 0.8814 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.004877, allocations: 95.08 kB / 0.8815 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/0.004914, allocations: 28 kB / 0.8815 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.072e-05/0.004985, allocations: 43.98 kB / 0.8815 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.005018, allocations: 35.84 kB / 0.8816 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.045e-05/0.005098, allocations: 83.81 kB / 0.8816 GB, free: 3.121 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.005351, allocations: 231.3 kB / 0.8819 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.005354, allocations: 0 / 0.8819 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.402e-06/0.005355, allocations: 0 / 0.8819 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.00536, allocations: 0 / 0.8819 GB, free: 2.895 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.0005579/0.005918, allocations: 0.5583 MB / 0.8824 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.005956, allocations: 16.03 kB / 0.8824 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.539e-05/0.006031, allocations: 32.84 kB / 0.8824 GB, free: 2.238 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.006262, allocations: 194.1 kB / 0.8826 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.006284, allocations: 12.38 kB / 0.8826 GB, free: 2.008 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.752e-05/0.006312, allocations: 24.31 kB / 0.8827 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.006465, allocations: 111.7 kB / 0.8828 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-06/0.006472, allocations: 192 / 0.8828 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.006487, allocations: 8.359 kB / 0.8828 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.006495, allocations: 4.375 kB / 0.8828 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.672e-05/0.006572, allocations: 44.91 kB / 0.8828 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005739/0.007146, allocations: 0.4992 MB / 0.8833 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.00729, allocations: 71.02 kB / 0.8834 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.912e-05/0.007329, allocations: 27.81 kB / 0.8834 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.007348, allocations: 4 kB / 0.8834 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001364/0.007485, allocations: 105 kB / 0.8835 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.007486, allocations: 0 / 0.8835 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0002709/0.007757, allocations: 169.1 kB / 0.8837 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.007795, allocations: 55.41 kB / 0.8837 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.007922, allocations: 227.5 kB / 0.8839 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.007947, allocations: 33.7 kB / 0.884 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.081e-05/0.008028, allocations: 179.1 kB / 0.8841 GB, free: 360 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.008055, allocations: 31.73 kB / 0.8842 GB, free: 328 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.008134, allocations: 75.33 kB / 0.8843 GB, free: 244 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.008261, allocations: 0.4962 MB / 0.8847 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.008391, allocations: 119.4 kB / 0.8848 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.008535, allocations: 185.5 kB / 0.885 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.008704, allocations: 199.7 kB / 0.8852 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.008707, allocations: 4 kB / 0.8852 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003697/0.009077, allocations: 372.2 kB / 0.8856 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.009124, allocations: 71.39 kB / 0.8856 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.009131, allocations: 3.938 kB / 0.8856 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.009145, allocations: 0 / 0.8856 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.381e-05/0.009209, allocations: 20.09 kB / 0.8857 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.009215, allocations: 0 / 0.8857 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.009367, allocations: 51.84 kB / 0.8857 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.009389, allocations: 15.98 kB / 0.8857 GB, free: 14.58 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.0001/0.009489, allocations: 172.6 kB / 0.8859 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.409e-05/0.009513, allocations: 19.84 kB / 0.8859 GB, free: 14.38 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.009546, allocations: 33.38 kB / 0.8859 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.009549, allocations: 3.938 kB / 0.8859 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.009553, allocations: 0 / 0.8859 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.009557, allocations: 4 kB / 0.886 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003392/0.009896, allocations: 417.6 kB / 0.8864 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.009898, allocations: 0 / 0.8864 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.584e-05/0.009924, allocations: 19.88 kB / 0.8864 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.009926, allocations: 0 / 0.8864 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.009936, allocations: 3.984 kB / 0.8864 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.009938, allocations: 0 / 0.8864 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.009939, allocations: 4 kB / 0.8864 GB, free: 13.87 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001667/0.01011, allocations: 276.3 kB / 0.8866 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.662e-05/0.01012, allocations: 19.78 kB / 0.8867 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.01014, allocations: 0 / 0.8867 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.658e-05/0.01019, allocations: 11.98 kB / 0.8867 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.01023, allocations: 7.984 kB / 0.8867 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.01024, allocations: 8 kB / 0.8867 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.868e-05/0.01031, allocations: 155.8 kB / 0.8868 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01031, allocations: 0 / 0.8868 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002529/0.01057, allocations: 55.88 kB / 0.8869 GB, free: 13.33 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.0003038/0.01087, allocations: 113.1 kB / 0.887 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003082/0.01118, allocations: 325.6 kB / 0.8873 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01118, allocations: 0 / 0.8873 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.67e-05/0.01125, allocations: 49.86 kB / 0.8874 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.0115, allocations: 32.28 kB / 0.8874 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004676/0.01197, allocations: 298.2 kB / 0.8877 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.429e-05/0.01202, allocations: 71.83 kB / 0.8877 GB, free: 12.36 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.012e-05/0.01206, allocations: 17.48 kB / 0.8878 GB, free: 12.34 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.092e-05/0.01209, allocations: 20.44 kB / 0.8878 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of SimCode: time 7.31e-07/0.01209, allocations: 0 / 0.8878 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of Templates: time 0.004614/0.0167, allocations: 2.899 MB / 0.8906 GB, free: 9.531 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.463551393011585]