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.001104/0.001104, allocations: 80.88 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.001023/0.001023, 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 0.9954/0.9954, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.492/2.492, allocations: 438.8 MB / 0.6827 GB, free: 13.61 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.783e-06/1.783e-06, allocations: 0 / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.582e-05/1.76e-05, allocations: 6.312 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.001675/0.001693, allocations: 1.075 MB / 0.8397 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.0031, allocations: 1.376 MB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.293e-05/0.003193, allocations: 7.938 kB / 0.841 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.0033, allocations: 19.73 kB / 0.8411 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.003486, allocations: 35.69 kB / 0.8411 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.003909, allocations: 259.3 kB / 0.8413 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.004148, allocations: 307.4 kB / 0.8416 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.004269, allocations: 62.05 kB / 0.8417 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.004409, allocations: 159.8 kB / 0.8418 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.004521, allocations: 83.75 kB / 0.8419 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.004555, allocations: 32 kB / 0.842 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.478e-05/0.00463, allocations: 47.97 kB / 0.842 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.853e-05/0.004659, allocations: 39.84 kB / 0.842 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.617e-05/0.004725, allocations: 83.81 kB / 0.8421 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.004931, allocations: 223.3 kB / 0.8423 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.004933, allocations: 0 / 0.8423 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.82e-07/0.004933, allocations: 0 / 0.8423 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.376e-06/0.004937, allocations: 0 / 0.8423 GB, free: 10.39 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.0004191/0.005356, allocations: 439.5 kB / 0.8427 GB, free: 9.926 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.881e-05/0.005385, allocations: 8.625 kB / 0.8428 GB, free: 9.918 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.005434, allocations: 32.91 kB / 0.8428 GB, free: 9.887 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.005616, allocations: 170.1 kB / 0.843 GB, free: 9.691 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.005636, allocations: 16.36 kB / 0.843 GB, free: 9.676 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.005662, allocations: 20.38 kB / 0.843 GB, free: 9.656 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.005775, allocations: 106.9 kB / 0.8431 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.005787, allocations: 192 / 0.8431 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.005797, allocations: 4.375 kB / 0.8431 GB, free: 9.539 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.005806, allocations: 4.375 kB / 0.8431 GB, free: 9.535 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.339e-05/0.00585, allocations: 27.92 kB / 0.8431 GB, free: 9.508 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004046/0.006254, allocations: 315.8 kB / 0.8434 GB, free: 9.184 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.363e-05/0.006348, allocations: 66.47 kB / 0.8435 GB, free: 9.109 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.281e-05/0.006371, allocations: 20.86 kB / 0.8435 GB, free: 9.086 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.006383, allocations: 0 / 0.8435 GB, free: 9.086 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/0.006487, allocations: 103.3 kB / 0.8436 GB, free: 8.973 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 8.92e-07/0.006488, allocations: 0 / 0.8436 GB, free: 8.973 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.0001448/0.006633, allocations: 105.7 kB / 0.8437 GB, free: 8.863 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.006662, allocations: 63.34 kB / 0.8438 GB, free: 8.789 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.191e-05/0.006754, allocations: 161.8 kB / 0.8439 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.006778, allocations: 33.7 kB / 0.844 GB, free: 8.582 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.00683, allocations: 128.3 kB / 0.8441 GB, free: 8.453 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.898e-05/0.006859, allocations: 43.66 kB / 0.8441 GB, free: 8.41 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.999e-05/0.006929, allocations: 61.67 kB / 0.8442 GB, free: 8.344 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.522e-05/0.007004, allocations: 326.8 kB / 0.8445 GB, free: 8.016 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.415e-05/0.007088, allocations: 103.4 kB / 0.8446 GB, free: 7.902 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.384e-05/0.007182, allocations: 152 kB / 0.8447 GB, free: 7.727 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.007307, allocations: 174.4 kB / 0.8449 GB, free: 7.527 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.007309, allocations: 4 kB / 0.8449 GB, free: 7.523 MB / 0.8073 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002249/0.007534, allocations: 294.5 kB / 0.8452 GB, free: 7.207 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.007572, allocations: 71.39 kB / 0.8453 GB, free: 7.125 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.007576, allocations: 0 / 0.8453 GB, free: 7.125 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.007589, allocations: 4 kB / 0.8453 GB, free: 7.121 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.206e-05/0.007642, allocations: 19.86 kB / 0.8453 GB, free: 7.102 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.007647, allocations: 4 kB / 0.8453 GB, free: 7.098 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.007792, allocations: 52.06 kB / 0.8453 GB, free: 7.047 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.007813, allocations: 12 kB / 0.8453 GB, free: 7.035 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.702e-05/0.00789, allocations: 130.9 kB / 0.8455 GB, free: 6.898 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.007906, allocations: 19.92 kB / 0.8455 GB, free: 6.879 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.181e-05/0.007928, allocations: 13.47 kB / 0.8455 GB, free: 6.871 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.007931, allocations: 4 kB / 0.8455 GB, free: 6.867 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.007933, allocations: 7.938 kB / 0.8455 GB, free: 6.859 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.007936, allocations: 3.938 kB / 0.8455 GB, free: 6.855 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.00815, allocations: 269.2 kB / 0.8458 GB, free: 6.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.008151, allocations: 0 / 0.8458 GB, free: 6.57 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.167e-05/0.008173, allocations: 11.94 kB / 0.8458 GB, free: 6.559 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.008175, allocations: 4 kB / 0.8458 GB, free: 6.555 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.008182, allocations: 4 kB / 0.8458 GB, free: 6.551 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.008186, allocations: 7.938 kB / 0.8458 GB, free: 6.543 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.008188, allocations: 3.984 kB / 0.8458 GB, free: 6.539 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.807e-05/0.008286, allocations: 175.9 kB / 0.846 GB, free: 6.352 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.254e-05/0.008298, allocations: 15.91 kB / 0.846 GB, free: 6.336 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.008313, allocations: 8 kB / 0.846 GB, free: 6.328 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.19e-05/0.008355, allocations: 7.922 kB / 0.846 GB, free: 6.32 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.008384, allocations: 11.98 kB / 0.846 GB, free: 6.309 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.00839, allocations: 4 kB / 0.846 GB, free: 6.305 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.185e-05/0.008422, allocations: 39.16 kB / 0.846 GB, free: 6.266 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.008422, allocations: 0 / 0.846 GB, free: 6.266 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001667/0.008588, allocations: 55.89 kB / 0.8461 GB, free: 6.211 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 9.972e-05/0.008688, allocations: 96.34 kB / 0.8462 GB, free: 6.109 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002151/0.008903, allocations: 298.9 kB / 0.8465 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.008906, allocations: 0 / 0.8465 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.229e-05/0.008949, allocations: 43.17 kB / 0.8465 GB, free: 5.734 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/0.009119, allocations: 31.95 kB / 0.8465 GB, free: 5.703 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003343/0.009453, allocations: 281.7 kB / 0.8468 GB, free: 5.398 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.783e-05/0.009491, allocations: 71.84 kB / 0.8469 GB, free: 5.309 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.519e-05/0.009526, allocations: 17.48 kB / 0.8469 GB, free: 5.289 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.009647, allocations: 91.33 kB / 0.847 GB, free: 5.199 MB / 0.8073 GB Notification: Performance of SimCode: time 7.92e-07/0.009647, allocations: 0 / 0.847 GB, free: 5.199 MB / 0.8073 GB Notification: Performance of Templates: time 0.004472/0.01412, allocations: 3.14 MB / 0.8501 GB, free: 2.164 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 -s gbode -gbm=radauIIA3 -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.300938367843628]