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.001037/0.001037, allocations: 80.3 kB / 21.47 MB, free: 3.035 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.001128/0.001128, allocations: 170.5 kB / 24.86 MB, free: 8.367 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.9585/0.9585, allocations: 177.2 MB / 205.3 MB, free: 5.488 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.925/1.925, allocations: 377.9 MB / 0.6247 GB, free: 8.418 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.703e-06/1.703e-06, allocations: 0 / 0.8128 GB, free: 1.422 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.307e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.418 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.001681/0.001704, allocations: 1.02 MB / 0.8138 GB, free: 428 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001436/0.00314, allocations: 1.369 MB / 0.8151 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.003272, allocations: 2.406 kB / 0.8151 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.003393, allocations: 15.75 kB / 0.8151 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.486e-05/0.003458, allocations: 31.72 kB / 0.8152 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.004003, allocations: 264.2 kB / 0.8154 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003109/0.004314, allocations: 312.3 kB / 0.8157 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.004452, allocations: 60.73 kB / 0.8158 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.004609, allocations: 163.8 kB / 0.8159 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.004726, allocations: 85.08 kB / 0.816 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.004764, allocations: 32 kB / 0.816 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.147e-05/0.004835, allocations: 43.98 kB / 0.8161 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.247e-05/0.004868, allocations: 37.78 kB / 0.8161 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.424e-05/0.004942, allocations: 83.81 kB / 0.8162 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002346/0.005177, allocations: 223.4 kB / 0.8164 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.005179, allocations: 0 / 0.8164 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.142e-06/0.00518, allocations: 0 / 0.8164 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.005185, allocations: 0 / 0.8164 GB, free: 13.71 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.0005968/0.005782, allocations: 0.5516 MB / 0.817 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.005824, allocations: 12.03 kB / 0.817 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.005903, allocations: 44.73 kB / 0.817 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.006134, allocations: 185.9 kB / 0.8172 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.006165, allocations: 24.34 kB / 0.8172 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.006196, allocations: 20.38 kB / 0.8172 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/0.006685, allocations: 99.38 kB / 0.8173 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.006696, allocations: 4.719 kB / 0.8173 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.006708, allocations: 4.375 kB / 0.8173 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.006716, allocations: 4.906 kB / 0.8173 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.15e-05/0.006767, allocations: 45.11 kB / 0.8174 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005344/0.007301, allocations: 472.3 kB / 0.8178 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.007417, allocations: 68.48 kB / 0.8179 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.631e-05/0.007443, allocations: 27.77 kB / 0.8179 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.007456, allocations: 192 / 0.8179 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001156/0.007572, allocations: 106 kB / 0.818 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.012e-06/0.007573, allocations: 0 / 0.818 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0002197/0.007793, allocations: 148 kB / 0.8182 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.007833, allocations: 60.38 kB / 0.8182 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.007947, allocations: 224.6 kB / 0.8184 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.007973, allocations: 33.7 kB / 0.8185 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.337e-05/0.008047, allocations: 176 kB / 0.8186 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.008076, allocations: 35.72 kB / 0.8187 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.008153, allocations: 72.16 kB / 0.8187 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.008272, allocations: 0.5001 MB / 0.8192 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.008373, allocations: 112.6 kB / 0.8193 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.008485, allocations: 173.4 kB / 0.8195 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.008627, allocations: 189.7 kB / 0.8197 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.00863, allocations: 0 / 0.8197 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003298/0.00896, allocations: 357.5 kB / 0.82 GB, free: 9.707 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.009002, allocations: 72.17 kB / 0.8201 GB, free: 9.625 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.009007, allocations: 1.469 kB / 0.8201 GB, free: 9.625 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.009018, allocations: 7.938 kB / 0.8201 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.104e-05/0.009069, allocations: 11.98 kB / 0.8201 GB, free: 9.605 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.009072, allocations: 0 / 0.8201 GB, free: 9.605 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.009219, allocations: 42.84 kB / 0.8201 GB, free: 9.566 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.009244, allocations: 19.92 kB / 0.8202 GB, free: 9.547 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.833e-05/0.009342, allocations: 181 kB / 0.8203 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.009363, allocations: 21.23 kB / 0.8204 GB, free: 9.34 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.748e-05/0.009391, allocations: 17.47 kB / 0.8204 GB, free: 9.328 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.009394, allocations: 3.938 kB / 0.8204 GB, free: 9.324 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.009397, allocations: 0 / 0.8204 GB, free: 9.324 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.009402, allocations: 8.875 kB / 0.8204 GB, free: 9.316 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002998/0.009702, allocations: 386.1 kB / 0.8208 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.009704, allocations: 0.5938 kB / 0.8208 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.904e-05/0.009733, allocations: 16 kB / 0.8208 GB, free: 8.891 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.009737, allocations: 4.641 kB / 0.8208 GB, free: 8.887 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.009745, allocations: 3.938 kB / 0.8208 GB, free: 8.883 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.009746, allocations: 2.75 kB / 0.8208 GB, free: 8.883 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.009749, allocations: 7.938 kB / 0.8208 GB, free: 8.875 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.009903, allocations: 266 kB / 0.821 GB, free: 8.598 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.367e-05/0.009916, allocations: 11.89 kB / 0.8211 GB, free: 8.586 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.009933, allocations: 7.938 kB / 0.8211 GB, free: 8.578 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.637e-05/0.009979, allocations: 7.984 kB / 0.8211 GB, free: 8.57 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.01001, allocations: 11.98 kB / 0.8211 GB, free: 8.559 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.01002, allocations: 10.7 kB / 0.8211 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.91e-05/0.01008, allocations: 158.4 kB / 0.8212 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01008, allocations: 0 / 0.8212 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002191/0.0103, allocations: 55.89 kB / 0.8213 GB, free: 8.344 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.0001396/0.01044, allocations: 110.6 kB / 0.8214 GB, free: 8.227 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002713/0.01071, allocations: 306.8 kB / 0.8217 GB, free: 7.887 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.01072, allocations: 0 / 0.8217 GB, free: 7.887 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.928e-05/0.01076, allocations: 46.28 kB / 0.8217 GB, free: 7.84 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.01101, allocations: 38.11 kB / 0.8218 GB, free: 7.805 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003934/0.0114, allocations: 302.9 kB / 0.8221 GB, free: 7.484 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.145e-05/0.01144, allocations: 71.83 kB / 0.8221 GB, free: 7.395 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.101e-05/0.01148, allocations: 14.2 kB / 0.8221 GB, free: 7.383 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.01162, allocations: 122.2 kB / 0.8223 GB, free: 7.262 MB / 0.7761 GB Notification: Performance of SimCode: time 6.61e-07/0.01162, allocations: 1.656 kB / 0.8223 GB, free: 7.262 MB / 0.7761 GB Notification: Performance of Templates: time 0.005817/0.01744, allocations: 3.212 MB / 0.8254 GB, free: 4.168 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.2931663282215595]