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.00103/0.00103, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.000953/0.000953, allocations: 161 kB / 24.16 MB, free: 336 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 0.9622/0.9622, allocations: 177.1 MB / 204.6 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.932/1.932, allocations: 377.9 MB / 0.624 GB, free: 8.336 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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 2.625e-06/2.625e-06, allocations: 0 / 0.76 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.805e-05, allocations: 2.938 kB / 0.76 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002562/0.00259, allocations: 1.036 MB / 0.761 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002031/0.004621, allocations: 1.373 MB / 0.7624 GB, free: 4.215 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.004775, allocations: 7.938 kB / 0.7624 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.004936, allocations: 16.78 kB / 0.7624 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.00504, allocations: 37.02 kB / 0.7624 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007126/0.005752, allocations: 256.3 kB / 0.7627 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.006164, allocations: 314.7 kB / 0.763 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.006353, allocations: 66.56 kB / 0.763 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.006581, allocations: 163.8 kB / 0.7632 GB, free: 3.391 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.006742, allocations: 92.2 kB / 0.7633 GB, free: 3.301 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.006791, allocations: 29.5 kB / 0.7633 GB, free: 3.273 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.667e-05/0.006888, allocations: 43.98 kB / 0.7634 GB, free: 3.23 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 4.692e-05/0.006934, allocations: 35.84 kB / 0.7634 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.007041, allocations: 83.81 kB / 0.7635 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.007369, allocations: 224.4 kB / 0.7637 GB, free: 2.895 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.007373, allocations: 4 kB / 0.7637 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.293e-06/0.007375, allocations: 0 / 0.7637 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.00738, allocations: 1.938 kB / 0.7637 GB, free: 2.891 MB / 0.7136 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.0006217/0.008002, allocations: 435.5 kB / 0.7641 GB, free: 2.426 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.008042, allocations: 8.031 kB / 0.7641 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.362e-05/0.008115, allocations: 32.91 kB / 0.7641 GB, free: 2.387 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.008365, allocations: 164.1 kB / 0.7643 GB, free: 2.199 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.008393, allocations: 16.36 kB / 0.7643 GB, free: 2.184 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.00843, allocations: 25.06 kB / 0.7643 GB, free: 2.16 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.008581, allocations: 102.9 kB / 0.7644 GB, free: 2.051 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.008591, allocations: 0.9375 kB / 0.7644 GB, free: 2.051 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.008603, allocations: 4.375 kB / 0.7644 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.008612, allocations: 6.562 kB / 0.7644 GB, free: 2.043 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.965e-05/0.008672, allocations: 35.86 kB / 0.7645 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.009244, allocations: 311.8 kB / 0.7648 GB, free: 1.688 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.009381, allocations: 66.47 kB / 0.7648 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.2e-05/0.009413, allocations: 18.27 kB / 0.7649 GB, free: 1.594 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.009432, allocations: 4 kB / 0.7649 GB, free: 1.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001446/0.009576, allocations: 100.6 kB / 0.765 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/0.009578, allocations: 0 / 0.765 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0002103/0.009789, allocations: 105.7 kB / 0.7651 GB, free: 1.371 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.009832, allocations: 63.34 kB / 0.7651 GB, free: 1.297 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.009962, allocations: 162.6 kB / 0.7653 GB, free: 1.129 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.01, allocations: 37.69 kB / 0.7653 GB, free: 1.086 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.01007, allocations: 120.4 kB / 0.7654 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.01011, allocations: 46.89 kB / 0.7655 GB, free: 0.9219 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.01021, allocations: 57.66 kB / 0.7655 GB, free: 0.8594 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.01031, allocations: 326.8 kB / 0.7658 GB, free: 0.5312 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.01044, allocations: 103.4 kB / 0.7659 GB, free: 428 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.01058, allocations: 155.6 kB / 0.7661 GB, free: 244 kB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.01076, allocations: 171.1 kB / 0.7662 GB, free: 44 kB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.01076, allocations: 0 / 0.7662 GB, free: 44 kB / 0.7136 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003753/0.01114, allocations: 293.8 kB / 0.7665 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.917e-05/0.01119, allocations: 67.39 kB / 0.7666 GB, free: 15.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.0112, allocations: 1.344 kB / 0.7666 GB, free: 15.65 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.01122, allocations: 7.984 kB / 0.7666 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.255e-05/0.01129, allocations: 19.88 kB / 0.7666 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.0113, allocations: 4 kB / 0.7666 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.01151, allocations: 41.19 kB / 0.7667 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.01154, allocations: 14.94 kB / 0.7667 GB, free: 15.57 MB / 0.7292 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.0001178/0.01165, allocations: 129.8 kB / 0.7668 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.01168, allocations: 15.98 kB / 0.7668 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.312e-05/0.01172, allocations: 17.47 kB / 0.7668 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.01173, allocations: 19.86 kB / 0.7669 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.01173, allocations: 7.062 kB / 0.7669 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.01174, allocations: 0 / 0.7669 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005144/0.01225, allocations: 269.8 kB / 0.7671 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.01226, allocations: 0 / 0.7671 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.01229, allocations: 7.938 kB / 0.7671 GB, free: 15.08 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.0123, allocations: 4 kB / 0.7671 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.01231, allocations: 4 kB / 0.7671 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.01231, allocations: 3.938 kB / 0.7671 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01231, allocations: 1.812 kB / 0.7671 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.01247, allocations: 187.9 kB / 0.7673 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.863e-05/0.01249, allocations: 7.953 kB / 0.7673 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.01251, allocations: 8 kB / 0.7673 GB, free: 14.85 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.635e-05/0.01259, allocations: 7.922 kB / 0.7673 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.01264, allocations: 12.92 kB / 0.7674 GB, free: 14.83 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.669e-06/0.01265, allocations: 4 kB / 0.7674 GB, free: 14.83 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.65e-05/0.0127, allocations: 48.17 kB / 0.7674 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.1e-08/0.0127, allocations: 0 / 0.7674 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003043/0.01301, allocations: 51.89 kB / 0.7675 GB, free: 14.73 MB / 0.7292 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.0001782/0.01319, allocations: 93.77 kB / 0.7675 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003307/0.01352, allocations: 301.5 kB / 0.7678 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.01352, allocations: 0 / 0.7678 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 5.89e-05/0.01358, allocations: 36.78 kB / 0.7679 GB, free: 14.26 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.01386, allocations: 29.8 kB / 0.7679 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005685/0.01443, allocations: 291.6 kB / 0.7682 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.23e-05/0.0145, allocations: 69.12 kB / 0.7682 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.892e-05/0.01455, allocations: 13.48 kB / 0.7682 GB, free: 13.82 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.01473, allocations: 99.83 kB / 0.7683 GB, free: 13.72 MB / 0.7292 GB Notification: Performance of SimCode: time 1.002e-06/0.01473, allocations: 0.7812 kB / 0.7683 GB, free: 13.72 MB / 0.7292 GB Notification: Performance of Templates: time 0.006512/0.02125, allocations: 3.135 MB / 0.7714 GB, free: 10.81 MB / 0.7292 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.122396111954004]