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.001019/0.001019, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001081/0.001081, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.9522/0.9522, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.084/2.084, allocations: 429.5 MB / 0.6743 GB, free: 3.922 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 1.373e-06/1.373e-06, allocations: 0 / 0.8794 GB, free: 6.012 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.106e-05/2.243e-05, allocations: 5.125 kB / 0.8794 GB, free: 6.008 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.001655/0.001678, allocations: 1.031 MB / 0.8804 GB, free: 5.004 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001451/0.003128, allocations: 1.372 MB / 0.8818 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.003235, allocations: 0 / 0.8818 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.003355, allocations: 27.67 kB / 0.8818 GB, free: 3.594 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.055e-05/0.003416, allocations: 27.73 kB / 0.8818 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004798/0.003896, allocations: 268.2 kB / 0.8821 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.00415, allocations: 307.4 kB / 0.8824 GB, free: 3.004 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.004271, allocations: 65.75 kB / 0.8824 GB, free: 2.938 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.004402, allocations: 159.8 kB / 0.8826 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.004522, allocations: 83.69 kB / 0.8827 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.004557, allocations: 32.97 kB / 0.8827 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.725e-05/0.004624, allocations: 47.97 kB / 0.8827 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.394e-05/0.004658, allocations: 36.61 kB / 0.8828 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.01e-05/0.004728, allocations: 87.8 kB / 0.8828 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.004955, allocations: 222.9 kB / 0.8831 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.004958, allocations: 0 / 0.8831 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.81e-07/0.004959, allocations: 0 / 0.8831 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.004963, allocations: 0 / 0.8831 GB, free: 2.285 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.000483/0.005446, allocations: 0.5577 MB / 0.8836 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.005479, allocations: 15.95 kB / 0.8836 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.809e-05/0.005537, allocations: 32.84 kB / 0.8837 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.005724, allocations: 189.9 kB / 0.8838 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.005744, allocations: 16.38 kB / 0.8838 GB, free: 1.398 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.005772, allocations: 28.92 kB / 0.8839 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.005888, allocations: 96.5 kB / 0.884 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.005897, allocations: 192 / 0.884 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.005908, allocations: 9.156 kB / 0.884 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.005913, allocations: 384 / 0.884 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.603e-05/0.005959, allocations: 41.28 kB / 0.884 GB, free: 1.223 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004663/0.006425, allocations: 481.3 kB / 0.8845 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.006533, allocations: 71.19 kB / 0.8845 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.342e-05/0.006557, allocations: 23.67 kB / 0.8846 GB, free: 0.6172 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.006571, allocations: 12.12 kB / 0.8846 GB, free: 0.6055 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001014/0.006672, allocations: 96.98 kB / 0.8847 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 9.71e-07/0.006673, allocations: 0 / 0.8847 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0002039/0.006877, allocations: 144.7 kB / 0.8848 GB, free: 360 kB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.00691, allocations: 63.33 kB / 0.8849 GB, free: 284 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.835e-05/0.007008, allocations: 222.5 kB / 0.8851 GB, free: 44 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.007031, allocations: 29.7 kB / 0.8851 GB, free: 8 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.588e-05/0.007117, allocations: 179.2 kB / 0.8853 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.007145, allocations: 39.67 kB / 0.8853 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.884e-05/0.007224, allocations: 75.31 kB / 0.8854 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.007329, allocations: 0.5001 MB / 0.8859 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-05/0.007428, allocations: 111.3 kB / 0.886 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.007536, allocations: 171.1 kB / 0.8861 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.007665, allocations: 183.9 kB / 0.8863 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.007667, allocations: 3.938 kB / 0.8863 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003059/0.007973, allocations: 360.2 kB / 0.8867 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.008013, allocations: 67.39 kB / 0.8867 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.008018, allocations: 0 / 0.8867 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.008028, allocations: 7.938 kB / 0.8867 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.855e-05/0.008077, allocations: 8 kB / 0.8867 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.008083, allocations: 11.92 kB / 0.8868 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.008227, allocations: 39.92 kB / 0.8868 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.008248, allocations: 24.08 kB / 0.8868 GB, free: 14.1 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 9.499e-05/0.008343, allocations: 177.6 kB / 0.887 GB, free: 13.92 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.008362, allocations: 15.91 kB / 0.887 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.466e-05/0.008387, allocations: 21.45 kB / 0.887 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.008391, allocations: 7.938 kB / 0.887 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.008393, allocations: 0 / 0.887 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.008397, allocations: 0 / 0.887 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002886/0.008685, allocations: 398.1 kB / 0.8874 GB, free: 13.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.008686, allocations: 4 kB / 0.8874 GB, free: 13.45 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.888e-05/0.008705, allocations: 4 kB / 0.8874 GB, free: 13.45 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.008707, allocations: 0 / 0.8874 GB, free: 13.45 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.008715, allocations: 7.922 kB / 0.8874 GB, free: 13.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.008719, allocations: 7.938 kB / 0.8874 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.00872, allocations: 0 / 0.8874 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.008862, allocations: 264.3 kB / 0.8877 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.455e-05/0.008876, allocations: 15.84 kB / 0.8877 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.008894, allocations: 11.94 kB / 0.8877 GB, free: 13.13 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.305e-05/0.008937, allocations: 3.984 kB / 0.8877 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.156e-05/0.008968, allocations: 11.98 kB / 0.8877 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.008974, allocations: 8 kB / 0.8877 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000182/0.009156, allocations: 155.8 kB / 0.8879 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.009156, allocations: 0 / 0.8879 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002079/0.009364, allocations: 55.88 kB / 0.8879 GB, free: 12.9 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.0001098/0.009474, allocations: 111.2 kB / 0.888 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002284/0.009703, allocations: 301.9 kB / 0.8883 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.009704, allocations: 4.062 kB / 0.8883 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.321e-05/0.009747, allocations: 46.55 kB / 0.8884 GB, free: 12.39 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.009971, allocations: 38.59 kB / 0.8884 GB, free: 12.36 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003578/0.01033, allocations: 293.2 kB / 0.8887 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.787e-05/0.01037, allocations: 71.83 kB / 0.8888 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.836e-05/0.0104, allocations: 17.48 kB / 0.8888 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.01053, allocations: 122.2 kB / 0.8889 GB, free: 11.81 MB / 0.8542 GB Notification: Performance of SimCode: time 6.21e-07/0.01053, allocations: 0 / 0.8889 GB, free: 11.81 MB / 0.8542 GB Notification: Performance of Templates: time 0.004612/0.01515, allocations: 3.222 MB / 0.892 GB, free: 8.691 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.323368299752474]