Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001003/0.001003, allocations: 80.75 kB / 19.94 MB, free: 4.547 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: 181 kB / 23.36 MB, free: 1.133 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.031/1.031, allocations: 177.1 MB / 203.8 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.509/2.509, allocations: 438.8 MB / 0.6827 GB, free: 13.59 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.504e-05, allocations: 4.562 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.001854/0.001879, allocations: 1.02 MB / 0.8396 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.003582, allocations: 1.388 MB / 0.8409 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.396e-05/0.003676, allocations: 4 kB / 0.8409 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.003798, allocations: 19.73 kB / 0.841 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.199e-05/0.00386, allocations: 35.72 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004626/0.004323, allocations: 255.3 kB / 0.8412 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.004598, allocations: 311.3 kB / 0.8415 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.004745, allocations: 66.03 kB / 0.8416 GB, free: 11.09 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.004891, allocations: 159.8 kB / 0.8418 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.005013, allocations: 87.73 kB / 0.8418 GB, free: 10.85 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.833e-05/0.005052, allocations: 32 kB / 0.8419 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-05/0.005125, allocations: 43.92 kB / 0.8419 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 3.516e-05/0.00516, allocations: 39.84 kB / 0.8419 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 7.031e-05/0.005231, allocations: 83.81 kB / 0.842 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.005534, allocations: 219.4 kB / 0.8422 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.005536, allocations: 0 / 0.8422 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.102e-06/0.005538, allocations: 4 kB / 0.8422 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.005541, allocations: 0 / 0.8422 GB, free: 10.43 MB / 0.8073 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.0004754/0.006017, allocations: 435.5 kB / 0.8427 GB, free: 9.969 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.006051, allocations: 12.61 kB / 0.8427 GB, free: 9.957 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.516e-05/0.006097, allocations: 24.92 kB / 0.8427 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.006281, allocations: 170.2 kB / 0.8429 GB, free: 9.738 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.0063, allocations: 12.38 kB / 0.8429 GB, free: 9.727 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.085e-05/0.006331, allocations: 20.38 kB / 0.8429 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.006453, allocations: 110.9 kB / 0.843 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.006461, allocations: 192 / 0.843 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.006473, allocations: 12.31 kB / 0.843 GB, free: 9.578 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.00648, allocations: 8.359 kB / 0.843 GB, free: 9.57 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.395e-05/0.006524, allocations: 27.92 kB / 0.843 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000407/0.006931, allocations: 303.8 kB / 0.8433 GB, free: 9.23 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.892e-05/0.007029, allocations: 66.42 kB / 0.8434 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.406e-05/0.007054, allocations: 24.84 kB / 0.8434 GB, free: 9.129 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.007067, allocations: 0 / 0.8434 GB, free: 9.129 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.526e-05/0.007162, allocations: 102.5 kB / 0.8435 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.007163, allocations: 192 / 0.8435 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.00034/0.007503, allocations: 113.5 kB / 0.8436 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.007533, allocations: 59.34 kB / 0.8437 GB, free: 8.832 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.354e-05/0.007617, allocations: 163.3 kB / 0.8438 GB, free: 8.66 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.007641, allocations: 33.7 kB / 0.8439 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004617/0.008102, allocations: 128.3 kB / 0.844 GB, free: 8.492 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.008127, allocations: 35.69 kB / 0.844 GB, free: 8.457 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.916e-05/0.008197, allocations: 65.64 kB / 0.8441 GB, free: 8.387 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.884e-05/0.008275, allocations: 326.8 kB / 0.8444 GB, free: 8.059 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.245e-05/0.008358, allocations: 107.4 kB / 0.8445 GB, free: 7.941 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.603e-05/0.008454, allocations: 153 kB / 0.8446 GB, free: 7.762 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004158/0.00887, allocations: 174.1 kB / 0.8448 GB, free: 7.562 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.008872, allocations: 0 / 0.8448 GB, free: 7.562 MB / 0.8073 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002193/0.009092, allocations: 294.5 kB / 0.8451 GB, free: 7.246 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.824e-05/0.00913, allocations: 75.39 kB / 0.8452 GB, free: 7.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.009135, allocations: 0 / 0.8452 GB, free: 7.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.009146, allocations: 4 kB / 0.8452 GB, free: 7.156 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.89e-05/0.009195, allocations: 19.86 kB / 0.8452 GB, free: 7.137 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.009199, allocations: 4 kB / 0.8452 GB, free: 7.133 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.009335, allocations: 43.92 kB / 0.8452 GB, free: 7.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.009355, allocations: 15.98 kB / 0.8452 GB, free: 7.074 MB / 0.8073 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 7.944e-05/0.009434, allocations: 134.8 kB / 0.8454 GB, free: 6.934 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.009449, allocations: 15.98 kB / 0.8454 GB, free: 6.918 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.513e-05/0.009474, allocations: 17.45 kB / 0.8454 GB, free: 6.906 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.009476, allocations: 0 / 0.8454 GB, free: 6.906 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.009479, allocations: 3.938 kB / 0.8454 GB, free: 6.902 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.009481, allocations: 0 / 0.8454 GB, free: 6.902 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.009701, allocations: 274.9 kB / 0.8457 GB, free: 6.609 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.009703, allocations: 0 / 0.8457 GB, free: 6.609 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.825e-05/0.009721, allocations: 7.984 kB / 0.8457 GB, free: 6.602 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.009723, allocations: 4 kB / 0.8457 GB, free: 6.598 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.009728, allocations: 3.938 kB / 0.8457 GB, free: 6.594 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.009731, allocations: 7.938 kB / 0.8457 GB, free: 6.586 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.009732, allocations: 0 / 0.8457 GB, free: 6.586 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.73e-05/0.009829, allocations: 190 kB / 0.8459 GB, free: 6.387 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.208e-05/0.009841, allocations: 11.91 kB / 0.8459 GB, free: 6.375 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.009857, allocations: 4 kB / 0.8459 GB, free: 6.371 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.033e-05/0.009897, allocations: 7.938 kB / 0.8459 GB, free: 6.363 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.333e-05/0.009931, allocations: 15.97 kB / 0.8459 GB, free: 6.348 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.009935, allocations: 0 / 0.8459 GB, free: 6.348 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.122e-05/0.009966, allocations: 42.44 kB / 0.846 GB, free: 6.305 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.009966, allocations: 4 kB / 0.846 GB, free: 6.301 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001685/0.01013, allocations: 51.89 kB / 0.846 GB, free: 6.25 MB / 0.8073 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.0001153/0.01025, allocations: 103.6 kB / 0.8461 GB, free: 6.145 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002206/0.01047, allocations: 290.8 kB / 0.8464 GB, free: 5.82 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.01047, allocations: 4 kB / 0.8464 GB, free: 5.816 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.232e-05/0.01052, allocations: 37.14 kB / 0.8464 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.01069, allocations: 31.97 kB / 0.8465 GB, free: 5.746 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004646/0.01115, allocations: 285.3 kB / 0.8467 GB, free: 5.438 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.131e-05/0.0112, allocations: 71.83 kB / 0.8468 GB, free: 5.348 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.01123, allocations: 21.47 kB / 0.8468 GB, free: 5.324 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.01135, allocations: 87.34 kB / 0.8469 GB, free: 5.238 MB / 0.8073 GB Notification: Performance of SimCode: time 9.72e-07/0.01135, allocations: 4 kB / 0.8469 GB, free: 5.234 MB / 0.8073 GB Notification: Performance of Templates: time 0.005029/0.01638, allocations: 3.144 MB / 0.85 GB, free: 2.195 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.461176177021116]