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.001133/0.001133, allocations: 81.95 kB / 20.68 MB, free: 3.816 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.001808/0.001808, allocations: 181.3 kB / 24.09 MB, free: 416 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.011/1.011, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.936/1.936, allocations: 377.9 MB / 0.624 GB, free: 8.391 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.753e-06/1.753e-06, allocations: 0 / 0.812 GB, free: 1.445 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.593e-05, allocations: 4.984 kB / 0.812 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00176/0.001786, allocations: 1.035 MB / 0.813 GB, free: 436 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.003217, allocations: 1.366 MB / 0.8144 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.003333, allocations: 0.9688 kB / 0.8144 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.00346, allocations: 19.73 kB / 0.8144 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.162e-05/0.003531, allocations: 37.41 kB / 0.8144 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005378/0.004069, allocations: 256.9 kB / 0.8147 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002676/0.004337, allocations: 311.3 kB / 0.815 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.004469, allocations: 60.73 kB / 0.815 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.004621, allocations: 159.8 kB / 0.8152 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.004739, allocations: 85.33 kB / 0.8152 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.004775, allocations: 32 kB / 0.8153 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.361e-05/0.004849, allocations: 47.92 kB / 0.8153 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.197e-05/0.004881, allocations: 35.84 kB / 0.8154 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.845e-05/0.004949, allocations: 92.8 kB / 0.8154 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.005175, allocations: 215.4 kB / 0.8157 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005177, allocations: 0 / 0.8157 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.91e-07/0.005178, allocations: 0.7812 kB / 0.8157 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.005181, allocations: 0 / 0.8157 GB, free: 13.72 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.0005094/0.005691, allocations: 0.5506 MB / 0.8162 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.005731, allocations: 12.81 kB / 0.8162 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.712e-05/0.005788, allocations: 36.8 kB / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.005978, allocations: 198.1 kB / 0.8164 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.005999, allocations: 16.38 kB / 0.8164 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.006024, allocations: 16.38 kB / 0.8165 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.006146, allocations: 104.3 kB / 0.8166 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.006153, allocations: 192 / 0.8166 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.006165, allocations: 12.31 kB / 0.8166 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.006171, allocations: 2.125 kB / 0.8166 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.42e-05/0.006215, allocations: 39.91 kB / 0.8166 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.006701, allocations: 471.8 kB / 0.8171 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.006808, allocations: 71.59 kB / 0.8171 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.113e-05/0.00684, allocations: 28.69 kB / 0.8172 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.006862, allocations: 4 kB / 0.8172 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.006974, allocations: 105.6 kB / 0.8173 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.006975, allocations: 0.5625 kB / 0.8173 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0002126/0.007188, allocations: 145 kB / 0.8174 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.00722, allocations: 55.41 kB / 0.8175 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.007337, allocations: 224.6 kB / 0.8177 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.417e-05/0.007361, allocations: 33.7 kB / 0.8177 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.007435, allocations: 173.7 kB / 0.8179 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.00747, allocations: 39.7 kB / 0.8179 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.007551, allocations: 75.31 kB / 0.818 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.007673, allocations: 0.4962 MB / 0.8185 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.411e-05/0.007767, allocations: 111.3 kB / 0.8186 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.007881, allocations: 179.8 kB / 0.8187 GB, free: 10.32 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.008028, allocations: 193.8 kB / 0.8189 GB, free: 10.1 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.00803, allocations: 1.656 kB / 0.8189 GB, free: 10.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003039/0.008334, allocations: 352.2 kB / 0.8193 GB, free: 9.723 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.008377, allocations: 67.89 kB / 0.8193 GB, free: 9.645 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.008381, allocations: 0.5938 kB / 0.8193 GB, free: 9.645 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.008395, allocations: 7.938 kB / 0.8193 GB, free: 9.637 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.553e-05/0.00845, allocations: 17.05 kB / 0.8193 GB, free: 9.621 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.008454, allocations: 4 kB / 0.8194 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.008596, allocations: 40.95 kB / 0.8194 GB, free: 9.578 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.008615, allocations: 12.84 kB / 0.8194 GB, free: 9.566 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.753e-05/0.008712, allocations: 186.7 kB / 0.8196 GB, free: 9.375 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.769e-05/0.00873, allocations: 15.91 kB / 0.8196 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.97e-05/0.00876, allocations: 17.47 kB / 0.8196 GB, free: 9.348 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.008763, allocations: 7.938 kB / 0.8196 GB, free: 9.34 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.008765, allocations: 2.781 kB / 0.8196 GB, free: 9.34 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.008771, allocations: 7.969 kB / 0.8196 GB, free: 9.332 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.009068, allocations: 394.1 kB / 0.82 GB, free: 8.914 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.00907, allocations: 0 / 0.82 GB, free: 8.914 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-05/0.00909, allocations: 7.984 kB / 0.82 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.009093, allocations: 0 / 0.82 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.0091, allocations: 7.875 kB / 0.82 GB, free: 8.898 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.009101, allocations: 4 kB / 0.82 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.009103, allocations: 1.5 kB / 0.82 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001512/0.009254, allocations: 269 kB / 0.8203 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.694e-05/0.009271, allocations: 19.88 kB / 0.8203 GB, free: 8.594 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.009286, allocations: 7.938 kB / 0.8203 GB, free: 8.586 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.363e-05/0.00933, allocations: 4.5 kB / 0.8203 GB, free: 8.582 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.009368, allocations: 13 kB / 0.8203 GB, free: 8.57 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.009375, allocations: 4 kB / 0.8203 GB, free: 8.566 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.583e-05/0.00943, allocations: 158.4 kB / 0.8205 GB, free: 8.414 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009431, allocations: 0.7188 kB / 0.8205 GB, free: 8.414 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002043/0.009635, allocations: 51.89 kB / 0.8205 GB, free: 8.363 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.0001318/0.009767, allocations: 114.8 kB / 0.8206 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002437/0.01001, allocations: 306 kB / 0.8209 GB, free: 7.906 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.01001, allocations: 0 / 0.8209 GB, free: 7.906 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.48e-05/0.01006, allocations: 48.69 kB / 0.821 GB, free: 7.855 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.01029, allocations: 29.23 kB / 0.821 GB, free: 7.828 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004272/0.01071, allocations: 306.5 kB / 0.8213 GB, free: 7.504 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.138e-05/0.01077, allocations: 67.84 kB / 0.8214 GB, free: 7.418 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.514e-05/0.01081, allocations: 17.48 kB / 0.8214 GB, free: 7.402 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.01095, allocations: 118.2 kB / 0.8215 GB, free: 7.285 MB / 0.7761 GB Notification: Performance of SimCode: time 1.041e-06/0.01095, allocations: 0 / 0.8215 GB, free: 7.285 MB / 0.7761 GB Notification: Performance of Templates: time 0.00528/0.01623, allocations: 3.152 MB / 0.8246 GB, free: 4.262 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.3025548262521625]