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.001015/0.001015, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001048/0.001048, allocations: 161 kB / 23.82 MB, free: 0.75 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 1.024/1.024, allocations: 177.1 MB / 204.2 MB, free: 5.598 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.958/1.958, allocations: 377.9 MB / 0.6236 GB, free: 8.527 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 3.596e-06/3.596e-06, allocations: 0 / 0.8116 GB, free: 1.688 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.77e-05/4.13e-05, allocations: 2.312 kB / 0.8116 GB, free: 1.684 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002169/0.00221, allocations: 1.058 MB / 0.8126 GB, free: 0.6445 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.003723, allocations: 1.363 MB / 0.8139 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.003852, allocations: 7.938 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.003999, allocations: 19.8 kB / 0.8139 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.042e-05/0.00407, allocations: 35.66 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006169/0.004686, allocations: 256.9 kB / 0.8142 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.005042, allocations: 303.4 kB / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.00524, allocations: 62.17 kB / 0.8146 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.005459, allocations: 171.7 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.005638, allocations: 79.73 kB / 0.8148 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.78e-05/0.005686, allocations: 32.53 kB / 0.8148 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.005788, allocations: 43.98 kB / 0.8149 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.564e-05/0.005834, allocations: 36.38 kB / 0.8149 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 9.998e-05/0.005934, allocations: 84.81 kB / 0.815 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006121/0.006546, allocations: 227.2 kB / 0.8152 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.00655, allocations: 0 / 0.8152 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.463e-06/0.006551, allocations: 0.75 kB / 0.8152 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.006557, allocations: 0 / 0.8152 GB, free: 13.94 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.0007065/0.007264, allocations: 0.5544 MB / 0.8158 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.00732, allocations: 9.406 kB / 0.8158 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.007432, allocations: 36.8 kB / 0.8158 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.007704, allocations: 198.1 kB / 0.816 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.007736, allocations: 13.53 kB / 0.816 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.007767, allocations: 20.38 kB / 0.816 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.007933, allocations: 102.9 kB / 0.8161 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.007942, allocations: 1.062 kB / 0.8161 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.007957, allocations: 8.359 kB / 0.8161 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.007967, allocations: 4.875 kB / 0.8161 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.447e-05/0.008041, allocations: 51.84 kB / 0.8162 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005958/0.008637, allocations: 0.4933 MB / 0.8167 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.008782, allocations: 75.14 kB / 0.8167 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.925e-05/0.008821, allocations: 28.55 kB / 0.8168 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.008842, allocations: 4 kB / 0.8168 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001302/0.008972, allocations: 118.6 kB / 0.8169 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 2.455e-06/0.008974, allocations: 3.938 kB / 0.8169 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0002713/0.009246, allocations: 150.8 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.009283, allocations: 55.41 kB / 0.8171 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.009419, allocations: 232.3 kB / 0.8173 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.009448, allocations: 33.7 kB / 0.8173 GB, free: 11.58 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.06e-05/0.009538, allocations: 175.1 kB / 0.8175 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.333e-05/0.009572, allocations: 38.95 kB / 0.8175 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.152e-05/0.009663, allocations: 71.33 kB / 0.8176 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.009798, allocations: 0.4923 MB / 0.8181 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.009944, allocations: 123.4 kB / 0.8182 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.01009, allocations: 189.4 kB / 0.8184 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.01027, allocations: 199.8 kB / 0.8186 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.01027, allocations: 0 / 0.8186 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004119/0.01069, allocations: 376.2 kB / 0.8189 GB, free: 9.805 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.801e-05/0.01074, allocations: 70.3 kB / 0.819 GB, free: 9.727 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.01075, allocations: 7.938 kB / 0.819 GB, free: 9.719 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.01077, allocations: 0 / 0.819 GB, free: 9.719 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.607e-05/0.01084, allocations: 11.94 kB / 0.819 GB, free: 9.707 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001889/0.01103, allocations: 5.094 kB / 0.819 GB, free: 9.703 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.0112, allocations: 44.86 kB / 0.8191 GB, free: 9.66 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.01122, allocations: 19.98 kB / 0.8191 GB, free: 9.641 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.0001154/0.01134, allocations: 175.7 kB / 0.8193 GB, free: 9.461 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.01136, allocations: 23.91 kB / 0.8193 GB, free: 9.438 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.655e-05/0.0114, allocations: 21.39 kB / 0.8193 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.0114, allocations: 0.7812 kB / 0.8193 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.01141, allocations: 0 / 0.8193 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.01141, allocations: 2.406 kB / 0.8193 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003587/0.01177, allocations: 437.5 kB / 0.8197 GB, free: 8.953 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01177, allocations: 0 / 0.8197 GB, free: 8.953 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.739e-05/0.0118, allocations: 7.938 kB / 0.8197 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.0118, allocations: 4 kB / 0.8197 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.01181, allocations: 3.984 kB / 0.8197 GB, free: 8.938 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01181, allocations: 3.031 kB / 0.8197 GB, free: 8.938 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.01182, allocations: 0 / 0.8197 GB, free: 8.938 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001721/0.01199, allocations: 281.8 kB / 0.82 GB, free: 8.645 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.619e-05/0.012, allocations: 19.77 kB / 0.82 GB, free: 8.625 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.025e-05/0.01202, allocations: 4 kB / 0.82 GB, free: 8.621 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.648e-05/0.01207, allocations: 7.984 kB / 0.82 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.679e-05/0.01212, allocations: 11.98 kB / 0.8201 GB, free: 8.602 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.01213, allocations: 4 kB / 0.8201 GB, free: 8.598 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.692e-05/0.01219, allocations: 156.7 kB / 0.8202 GB, free: 8.445 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01219, allocations: 0 / 0.8202 GB, free: 8.445 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002164/0.01241, allocations: 55.88 kB / 0.8203 GB, free: 8.391 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.0001453/0.01255, allocations: 109.5 kB / 0.8204 GB, free: 8.273 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003134/0.01287, allocations: 326.8 kB / 0.8207 GB, free: 7.914 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01287, allocations: 0 / 0.8207 GB, free: 7.914 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.746e-05/0.01293, allocations: 47.95 kB / 0.8207 GB, free: 7.867 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.01318, allocations: 33.45 kB / 0.8208 GB, free: 7.836 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000466/0.01365, allocations: 305.3 kB / 0.821 GB, free: 7.512 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.625e-05/0.01369, allocations: 72.89 kB / 0.8211 GB, free: 7.422 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.608e-05/0.01374, allocations: 17.48 kB / 0.8211 GB, free: 7.406 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.588e-05/0.01377, allocations: 21.84 kB / 0.8211 GB, free: 7.387 MB / 0.7761 GB Notification: Performance of SimCode: time 8.41e-07/0.01377, allocations: 0 / 0.8211 GB, free: 7.387 MB / 0.7761 GB Notification: Performance of Templates: time 0.00541/0.01918, allocations: 3.119 MB / 0.8242 GB, free: 4.387 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.307958537247032]