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.001152/0.001152, allocations: 71.75 kB / 20.97 MB, free: 3.566 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: 169 kB / 24.28 MB, free: 268 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 1.018/1.018, allocations: 177.1 MB / 204.6 MB, free: 5.625 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 1.954/1.954, allocations: 377.8 MB / 0.6239 GB, free: 8.59 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.733e-06/1.733e-06, allocations: 0 / 0.8115 GB, free: 2.074 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.618e-05, allocations: 4.984 kB / 0.8115 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.001744/0.00177, allocations: 1.036 MB / 0.8125 GB, free: 1.055 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.003205, allocations: 1.371 MB / 0.8139 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.003321, allocations: 3.938 kB / 0.8139 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.003448, allocations: 17.08 kB / 0.8139 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.073e-05/0.003508, allocations: 31.67 kB / 0.8139 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005632/0.004072, allocations: 264.6 kB / 0.8142 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004713/0.004543, allocations: 309.1 kB / 0.8145 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.004697, allocations: 64.72 kB / 0.8145 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.004857, allocations: 163.8 kB / 0.8147 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.004977, allocations: 87.67 kB / 0.8148 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.77e-05/0.005015, allocations: 32.88 kB / 0.8148 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.24e-05/0.005088, allocations: 43.98 kB / 0.8149 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.309e-05/0.005121, allocations: 40.53 kB / 0.8149 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.005222, allocations: 83.81 kB / 0.815 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.005544, allocations: 228.2 kB / 0.8152 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.005548, allocations: 0 / 0.8152 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.102e-06/0.005549, allocations: 0 / 0.8152 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.005554, allocations: 0.6562 kB / 0.8152 GB, free: 14.33 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.0005711/0.006126, allocations: 0.5549 MB / 0.8157 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.006164, allocations: 8.031 kB / 0.8157 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.599e-05/0.00624, allocations: 40.73 kB / 0.8158 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.00648, allocations: 199.1 kB / 0.816 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.006505, allocations: 13.09 kB / 0.816 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.006534, allocations: 20.38 kB / 0.816 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.006701, allocations: 108.2 kB / 0.8161 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.006709, allocations: 192 / 0.8161 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.006723, allocations: 8.359 kB / 0.8161 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.006733, allocations: 14.2 kB / 0.8161 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.577e-05/0.006809, allocations: 47.91 kB / 0.8162 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005691/0.007378, allocations: 0.4914 MB / 0.8167 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.007519, allocations: 80.02 kB / 0.8167 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.796e-05/0.007557, allocations: 27.67 kB / 0.8168 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.007578, allocations: 1.562 kB / 0.8168 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00013/0.007708, allocations: 113 kB / 0.8169 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.00771, allocations: 0 / 0.8169 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0002631/0.007973, allocations: 154.9 kB / 0.817 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.008011, allocations: 60.88 kB / 0.8171 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.008137, allocations: 219.3 kB / 0.8173 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.008163, allocations: 37.7 kB / 0.8173 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.008246, allocations: 179.1 kB / 0.8175 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.008274, allocations: 41.47 kB / 0.8175 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-05/0.008358, allocations: 67.34 kB / 0.8176 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.008475, allocations: 0.4923 MB / 0.8181 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.008625, allocations: 127.3 kB / 0.8182 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.008776, allocations: 186.4 kB / 0.8184 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.008955, allocations: 197.8 kB / 0.8186 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.008958, allocations: 0 / 0.8186 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003855/0.009343, allocations: 381.3 kB / 0.8189 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.002e-05/0.009393, allocations: 71.86 kB / 0.819 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.0094, allocations: 4.75 kB / 0.819 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.009414, allocations: 0 / 0.819 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.682e-05/0.009481, allocations: 16.86 kB / 0.819 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.009487, allocations: 4 kB / 0.819 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.00966, allocations: 49.77 kB / 0.8191 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.009683, allocations: 19.98 kB / 0.8191 GB, free: 10.02 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 0.0001049/0.009788, allocations: 174.9 kB / 0.8192 GB, free: 9.84 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.36e-05/0.009811, allocations: 27.89 kB / 0.8193 GB, free: 9.812 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.00984, allocations: 18.03 kB / 0.8193 GB, free: 9.801 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.009843, allocations: 0.75 kB / 0.8193 GB, free: 9.801 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.009846, allocations: 0 / 0.8193 GB, free: 9.801 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.00985, allocations: 0 / 0.8193 GB, free: 9.801 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003974/0.01025, allocations: 437.5 kB / 0.8197 GB, free: 9.336 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.01025, allocations: 3.938 kB / 0.8197 GB, free: 9.332 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.493e-05/0.01028, allocations: 8.859 kB / 0.8197 GB, free: 9.324 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.01028, allocations: 4 kB / 0.8197 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.01029, allocations: 1.344 kB / 0.8197 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01029, allocations: 0 / 0.8197 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.01029, allocations: 0 / 0.8197 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/0.01047, allocations: 280.2 kB / 0.82 GB, free: 9.027 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.714e-05/0.01049, allocations: 20.47 kB / 0.82 GB, free: 9.008 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.01051, allocations: 8.547 kB / 0.82 GB, free: 9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.648e-05/0.01056, allocations: 0 / 0.82 GB, free: 9 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.01061, allocations: 13.86 kB / 0.82 GB, free: 8.988 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.01062, allocations: 11.98 kB / 0.82 GB, free: 8.977 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.000101/0.01072, allocations: 155.9 kB / 0.8202 GB, free: 8.824 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.5e-07/0.01072, allocations: 0 / 0.8202 GB, free: 8.824 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002347/0.01095, allocations: 51.89 kB / 0.8202 GB, free: 8.773 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.0001652/0.01112, allocations: 122 kB / 0.8204 GB, free: 8.648 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003408/0.01146, allocations: 317.7 kB / 0.8207 GB, free: 8.297 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.01146, allocations: 4 kB / 0.8207 GB, free: 8.293 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.957e-05/0.01152, allocations: 43.66 kB / 0.8207 GB, free: 8.246 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.01179, allocations: 40.91 kB / 0.8207 GB, free: 8.207 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004625/0.01226, allocations: 286.3 kB / 0.821 GB, free: 7.902 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.186e-05/0.01231, allocations: 71.83 kB / 0.8211 GB, free: 7.812 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.137e-05/0.01236, allocations: 22.56 kB / 0.8211 GB, free: 7.793 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.0124, allocations: 16.5 kB / 0.8211 GB, free: 7.777 MB / 0.7761 GB Notification: Performance of SimCode: time 1.252e-06/0.0124, allocations: 0.6562 kB / 0.8211 GB, free: 7.777 MB / 0.7761 GB Notification: Performance of Templates: time 0.004993/0.01739, allocations: 2.898 MB / 0.824 GB, free: 5.023 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.32049476983957]