Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001511/0.001511, allocations: 87.58 kB / 20.45 MB, free: 4.109 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.001038/0.001038, allocations: 165 kB / 23.82 MB, free: 0.7422 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.9903/0.9903, allocations: 177.1 MB / 204.2 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.023/2.023, allocations: 377.8 MB / 0.6236 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 0.8115 GB, free: 1.695 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.995e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.691 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.001695/0.001715, allocations: 1.049 MB / 0.8126 GB, free: 0.6641 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001381/0.003097, allocations: 1.366 MB / 0.8139 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.919e-05/0.003196, allocations: 4 kB / 0.8139 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.003324, allocations: 24.67 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.297e-05/0.003387, allocations: 31.72 kB / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005116/0.003898, allocations: 261 kB / 0.8142 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.004154, allocations: 317 kB / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.004291, allocations: 56.73 kB / 0.8146 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.004425, allocations: 163.8 kB / 0.8147 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.004546, allocations: 87.73 kB / 0.8148 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.004584, allocations: 29.53 kB / 0.8148 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.994e-05/0.004654, allocations: 47.98 kB / 0.8149 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.332e-05/0.004687, allocations: 31.84 kB / 0.8149 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.143e-05/0.004769, allocations: 87.81 kB / 0.815 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.005011, allocations: 219.4 kB / 0.8152 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.005014, allocations: 4.688 kB / 0.8152 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.012e-06/0.005015, allocations: 0.8438 kB / 0.8152 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.00502, allocations: 0 / 0.8152 GB, free: 13.95 MB / 0.7761 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.0005525/0.005573, allocations: 0.5477 MB / 0.8157 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.005609, allocations: 11.97 kB / 0.8158 GB, free: 13.34 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.738e-05/0.005677, allocations: 36.8 kB / 0.8158 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.005904, allocations: 194.2 kB / 0.816 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.005929, allocations: 16.89 kB / 0.816 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/0.00596, allocations: 21.09 kB / 0.816 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001461/0.006106, allocations: 106.8 kB / 0.8161 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.006118, allocations: 4.703 kB / 0.8161 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.006132, allocations: 8.312 kB / 0.8161 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.006142, allocations: 6.031 kB / 0.8161 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.413e-05/0.006216, allocations: 55.89 kB / 0.8162 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000556/0.006772, allocations: 499.7 kB / 0.8167 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.006909, allocations: 75.66 kB / 0.8167 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.663e-05/0.006946, allocations: 24.59 kB / 0.8168 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.006968, allocations: 4.188 kB / 0.8168 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000127/0.007095, allocations: 114 kB / 0.8169 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.007097, allocations: 0 / 0.8169 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0002636/0.00736, allocations: 160.3 kB / 0.817 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.007395, allocations: 55.34 kB / 0.8171 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.007527, allocations: 227.3 kB / 0.8173 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.007552, allocations: 33.7 kB / 0.8173 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.969e-05/0.007632, allocations: 176.9 kB / 0.8175 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.007666, allocations: 35.73 kB / 0.8175 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-05/0.00775, allocations: 75.33 kB / 0.8176 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.007879, allocations: 0.4923 MB / 0.8181 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.008011, allocations: 127.3 kB / 0.8182 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.008158, allocations: 182.3 kB / 0.8184 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.008327, allocations: 202.8 kB / 0.8186 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.00833, allocations: 4 kB / 0.8186 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003752/0.008706, allocations: 372.1 kB / 0.8189 GB, free: 9.824 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.058e-05/0.008746, allocations: 67.39 kB / 0.819 GB, free: 9.746 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.008752, allocations: 7.938 kB / 0.819 GB, free: 9.738 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.00877, allocations: 1.531 kB / 0.819 GB, free: 9.738 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.077e-05/0.00883, allocations: 15.98 kB / 0.819 GB, free: 9.723 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.008837, allocations: 0 / 0.819 GB, free: 9.723 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.008984, allocations: 52.86 kB / 0.8191 GB, free: 9.672 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.009011, allocations: 20 kB / 0.8191 GB, free: 9.652 MB / 0.7761 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.703e-05/0.009108, allocations: 175.6 kB / 0.8193 GB, free: 9.473 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.009127, allocations: 19.91 kB / 0.8193 GB, free: 9.453 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.00916, allocations: 24 kB / 0.8193 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.009162, allocations: 0 / 0.8193 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.009166, allocations: 0 / 0.8193 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.009173, allocations: 7.984 kB / 0.8193 GB, free: 9.43 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003349/0.009508, allocations: 429.4 kB / 0.8197 GB, free: 8.969 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.00951, allocations: 0 / 0.8197 GB, free: 8.969 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.107e-05/0.009531, allocations: 11.94 kB / 0.8197 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.009532, allocations: 0.625 kB / 0.8197 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.009541, allocations: 0 / 0.8197 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.009543, allocations: 1.125 kB / 0.8197 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.009545, allocations: 7.938 kB / 0.8197 GB, free: 8.949 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001655/0.00971, allocations: 279.1 kB / 0.82 GB, free: 8.66 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.64e-05/0.009727, allocations: 20.81 kB / 0.82 GB, free: 8.641 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.009745, allocations: 4 kB / 0.82 GB, free: 8.637 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.017e-05/0.009786, allocations: 4.844 kB / 0.82 GB, free: 8.633 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.009838, allocations: 15.97 kB / 0.82 GB, free: 8.617 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.009846, allocations: 4 kB / 0.82 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.681e-05/0.009912, allocations: 156.5 kB / 0.8202 GB, free: 8.461 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.009912, allocations: 3.688 kB / 0.8202 GB, free: 8.461 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001991/0.01011, allocations: 47.94 kB / 0.8202 GB, free: 8.414 MB / 0.7761 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.0001219/0.01023, allocations: 123.2 kB / 0.8204 GB, free: 8.281 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002932/0.01053, allocations: 313.8 kB / 0.8207 GB, free: 7.934 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.01053, allocations: 0 / 0.8207 GB, free: 7.934 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.148e-05/0.01059, allocations: 53.06 kB / 0.8207 GB, free: 7.879 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.01082, allocations: 32.92 kB / 0.8207 GB, free: 7.848 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004192/0.01124, allocations: 302.4 kB / 0.821 GB, free: 7.527 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.485e-05/0.01129, allocations: 75.83 kB / 0.8211 GB, free: 7.434 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.61e-05/0.01132, allocations: 18.56 kB / 0.8211 GB, free: 7.418 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.865e-05/0.01136, allocations: 20.5 kB / 0.8211 GB, free: 7.398 MB / 0.7761 GB Notification: Performance of SimCode: time 7.61e-07/0.01136, allocations: 0 / 0.8211 GB, free: 7.398 MB / 0.7761 GB Notification: Performance of Templates: time 0.004687/0.01605, allocations: 2.886 MB / 0.824 GB, free: 4.637 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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.456527344882488]