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.0009262/0.0009262, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.0009284/0.0009284, allocations: 169 kB / 23.27 MB, free: 1.219 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.9251/0.9251, allocations: 177.1 MB / 203.7 MB, free: 5.492 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.344/2.344, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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 3.757e-06/3.757e-06, allocations: 0 / 0.8897 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.068e-05/3.444e-05, allocations: 2.312 kB / 0.8898 GB, free: 9.746 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.00264/0.002675, allocations: 1.039 MB / 0.8908 GB, free: 8.711 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.002168/0.004843, allocations: 1.361 MB / 0.8921 GB, free: 7.336 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.005068, allocations: 4 kB / 0.8921 GB, free: 7.332 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.005242, allocations: 19.73 kB / 0.8921 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.005345, allocations: 31.72 kB / 0.8921 GB, free: 7.281 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008337/0.006179, allocations: 267.3 kB / 0.8924 GB, free: 7.02 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0004348/0.006613, allocations: 311.3 kB / 0.8927 GB, free: 6.715 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.006806, allocations: 64.73 kB / 0.8928 GB, free: 6.648 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.007064, allocations: 163.8 kB / 0.8929 GB, free: 6.488 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.007242, allocations: 79.73 kB / 0.893 GB, free: 6.41 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.007301, allocations: 32 kB / 0.893 GB, free: 6.379 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.007409, allocations: 43.98 kB / 0.8931 GB, free: 6.336 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 4.343e-05/0.007452, allocations: 43.84 kB / 0.8931 GB, free: 6.293 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.007558, allocations: 87.8 kB / 0.8932 GB, free: 6.207 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.007924, allocations: 215.4 kB / 0.8934 GB, free: 5.996 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.007929, allocations: 0 / 0.8934 GB, free: 5.996 MB / 0.8542 GB Notification: Performance of FrontEnd: time 9.22e-07/0.00793, allocations: 0 / 0.8934 GB, free: 5.996 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.007937, allocations: 0 / 0.8934 GB, free: 5.996 MB / 0.8542 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.0007216/0.008659, allocations: 0.5577 MB / 0.8939 GB, free: 5.387 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.008709, allocations: 12.56 kB / 0.894 GB, free: 5.375 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.184e-05/0.008801, allocations: 36.8 kB / 0.894 GB, free: 5.34 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.009084, allocations: 197.7 kB / 0.8942 GB, free: 5.117 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.067e-05/0.009125, allocations: 16.38 kB / 0.8942 GB, free: 5.102 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.009163, allocations: 20.38 kB / 0.8942 GB, free: 5.082 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.009526, allocations: 102.8 kB / 0.8943 GB, free: 4.973 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.009538, allocations: 4.188 kB / 0.8943 GB, free: 4.969 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.009554, allocations: 4.375 kB / 0.8943 GB, free: 4.965 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.009563, allocations: 8.312 kB / 0.8943 GB, free: 4.957 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.48e-05/0.009637, allocations: 32.91 kB / 0.8944 GB, free: 4.926 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006693/0.01031, allocations: 483.7 kB / 0.8948 GB, free: 4.426 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.01046, allocations: 67.08 kB / 0.8949 GB, free: 4.348 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.01049, allocations: 27.81 kB / 0.8949 GB, free: 4.316 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.01051, allocations: 192 / 0.8949 GB, free: 4.316 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.01067, allocations: 100.9 kB / 0.895 GB, free: 4.203 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 2.274e-06/0.01067, allocations: 4 kB / 0.895 GB, free: 4.199 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.0003536/0.01102, allocations: 145.4 kB / 0.8951 GB, free: 4.051 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.01107, allocations: 59.34 kB / 0.8952 GB, free: 3.98 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.01124, allocations: 225 kB / 0.8954 GB, free: 3.746 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.01128, allocations: 33.7 kB / 0.8955 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.0114, allocations: 175.1 kB / 0.8956 GB, free: 3.531 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.912e-05/0.01145, allocations: 39.72 kB / 0.8957 GB, free: 3.492 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.01157, allocations: 75.3 kB / 0.8957 GB, free: 3.41 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.01176, allocations: 0.4962 MB / 0.8962 GB, free: 2.902 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.01191, allocations: 111.4 kB / 0.8963 GB, free: 2.781 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.01208, allocations: 170.8 kB / 0.8965 GB, free: 2.578 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/0.0123, allocations: 181.4 kB / 0.8967 GB, free: 2.363 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.0123, allocations: 4 kB / 0.8967 GB, free: 2.359 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005435/0.01285, allocations: 358.1 kB / 0.897 GB, free: 1.98 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 7.83e-05/0.01293, allocations: 67.39 kB / 0.8971 GB, free: 1.902 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.01294, allocations: 7.984 kB / 0.8971 GB, free: 1.895 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.01296, allocations: 3.938 kB / 0.8971 GB, free: 1.891 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.782e-05/0.01305, allocations: 8 kB / 0.8971 GB, free: 1.883 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.01305, allocations: 4 kB / 0.8971 GB, free: 1.879 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.01328, allocations: 56 kB / 0.8971 GB, free: 1.824 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.01331, allocations: 8 kB / 0.8971 GB, free: 1.816 MB / 0.8542 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.0001736/0.01349, allocations: 185.6 kB / 0.8973 GB, free: 1.625 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.01352, allocations: 19.91 kB / 0.8973 GB, free: 1.605 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.264e-05/0.01358, allocations: 17.47 kB / 0.8974 GB, free: 1.586 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.01358, allocations: 3.938 kB / 0.8974 GB, free: 1.582 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.01359, allocations: 0 / 0.8974 GB, free: 1.582 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.01359, allocations: 7.984 kB / 0.8974 GB, free: 1.574 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004882/0.01408, allocations: 396.8 kB / 0.8978 GB, free: 1.156 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.01408, allocations: 3.938 kB / 0.8978 GB, free: 1.152 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.657e-05/0.01412, allocations: 4 kB / 0.8978 GB, free: 1.148 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.01413, allocations: 3.984 kB / 0.8978 GB, free: 1.145 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.01414, allocations: 7.938 kB / 0.8978 GB, free: 1.137 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.01414, allocations: 0 / 0.8978 GB, free: 1.137 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.01414, allocations: 3.938 kB / 0.8978 GB, free: 1.133 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.01437, allocations: 264.3 kB / 0.898 GB, free: 0.8555 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.783e-05/0.0144, allocations: 23.83 kB / 0.898 GB, free: 0.832 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.01442, allocations: 11.94 kB / 0.8981 GB, free: 0.8203 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.438e-05/0.01451, allocations: 0 / 0.8981 GB, free: 0.8203 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.257e-05/0.01456, allocations: 19.97 kB / 0.8981 GB, free: 0.8008 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.01457, allocations: 0 / 0.8981 GB, free: 0.8008 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.384e-05/0.01466, allocations: 160.1 kB / 0.8982 GB, free: 0.6445 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9e-08/0.01466, allocations: 0 / 0.8982 GB, free: 0.6445 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003525/0.01501, allocations: 51.89 kB / 0.8983 GB, free: 0.5938 MB / 0.8542 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.0002181/0.01523, allocations: 117.6 kB / 0.8984 GB, free: 484 kB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003655/0.0156, allocations: 305.1 kB / 0.8987 GB, free: 140 kB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.0156, allocations: 4 kB / 0.8987 GB, free: 136 kB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.653e-05/0.01567, allocations: 45.98 kB / 0.8987 GB, free: 88 kB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.01606, allocations: 31.73 kB / 0.8988 GB, free: 60 kB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006489/0.01671, allocations: 295.2 kB / 0.899 GB, free: 15.74 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.929e-05/0.01677, allocations: 75.83 kB / 0.8991 GB, free: 15.64 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.464e-05/0.01683, allocations: 17.48 kB / 0.8991 GB, free: 15.63 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.01703, allocations: 114.2 kB / 0.8992 GB, free: 15.52 MB / 0.8698 GB Notification: Performance of SimCode: time 1.553e-06/0.01703, allocations: 4 kB / 0.8992 GB, free: 15.51 MB / 0.8698 GB Notification: Performance of Templates: time 0.008521/0.02555, allocations: 3.143 MB / 0.9023 GB, free: 12.47 MB / 0.8698 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.251765332184732]