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.00144/0.00144, allocations: 80.8 kB / 20.75 MB, free: 3.734 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.001728/0.001728, allocations: 165 kB / 24.16 MB, free: 328 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 1.085/1.085, allocations: 177.2 MB / 204.6 MB, free: 5.488 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 2.081/2.081, allocations: 377.9 MB / 0.624 GB, free: 8.379 MB / 0.5886 GB " [Timeout remaining time 177] 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 3.206e-06/3.206e-06, allocations: 0 / 0.7601 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.638e-05/2.959e-05, allocations: 5.266 kB / 0.7601 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold): time 0.002122/0.002152, allocations: 1.077 MB / 0.7611 GB, free: 5.527 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001809/0.00396, allocations: 1.373 MB / 0.7625 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.004089, allocations: 0 / 0.7625 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.004219, allocations: 24.62 kB / 0.7625 GB, free: 4.121 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.912e-05/0.004298, allocations: 32.95 kB / 0.7625 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.004887, allocations: 261.5 kB / 0.7628 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.005225, allocations: 312.1 kB / 0.7631 GB, free: 3.543 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.005367, allocations: 66.56 kB / 0.7631 GB, free: 3.48 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.005533, allocations: 168.7 kB / 0.7633 GB, free: 3.316 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.005661, allocations: 79.81 kB / 0.7634 GB, free: 3.238 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.005699, allocations: 35.94 kB / 0.7634 GB, free: 3.203 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 9.503e-05/0.005794, allocations: 45.02 kB / 0.7634 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 3.229e-05/0.005826, allocations: 31.91 kB / 0.7635 GB, free: 3.129 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 7.446e-05/0.0059, allocations: 92.36 kB / 0.7636 GB, free: 3.039 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.006166, allocations: 227.2 kB / 0.7638 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.006169, allocations: 1.781 kB / 0.7638 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.072e-06/0.00617, allocations: 0 / 0.7638 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.006174, allocations: 0 / 0.7638 GB, free: 2.816 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.0005059/0.00668, allocations: 435.5 kB / 0.7642 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.006714, allocations: 13.25 kB / 0.7642 GB, free: 2.34 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.85e-05/0.006773, allocations: 28.91 kB / 0.7642 GB, free: 2.312 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002221/0.006995, allocations: 162.2 kB / 0.7644 GB, free: 2.125 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.007017, allocations: 13.12 kB / 0.7644 GB, free: 2.113 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.957e-05/0.007047, allocations: 28.34 kB / 0.7644 GB, free: 2.086 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.00718, allocations: 99.52 kB / 0.7645 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.007188, allocations: 192 / 0.7645 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.007199, allocations: 9.125 kB / 0.7645 GB, free: 1.973 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.007207, allocations: 4.375 kB / 0.7645 GB, free: 1.969 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.373e-05/0.007251, allocations: 29.55 kB / 0.7646 GB, free: 1.941 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000458/0.007709, allocations: 315.7 kB / 0.7649 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.007816, allocations: 59.11 kB / 0.7649 GB, free: 1.551 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.342e-05/0.00784, allocations: 18.08 kB / 0.7649 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.007856, allocations: 3.938 kB / 0.7649 GB, free: 1.527 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001125/0.007969, allocations: 100.5 kB / 0.765 GB, free: 1.418 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 1.783e-06/0.007971, allocations: 0 / 0.765 GB, free: 1.418 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0001754/0.008146, allocations: 111.7 kB / 0.7651 GB, free: 1.305 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.008182, allocations: 60.91 kB / 0.7652 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.524e-05/0.008277, allocations: 168.2 kB / 0.7654 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.008301, allocations: 29.7 kB / 0.7654 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.008362, allocations: 132.3 kB / 0.7655 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.008387, allocations: 34.48 kB / 0.7656 GB, free: 0.8594 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.516e-05/0.008462, allocations: 65.64 kB / 0.7656 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.388e-05/0.008546, allocations: 326.8 kB / 0.7659 GB, free: 472 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.035e-05/0.008637, allocations: 107.4 kB / 0.766 GB, free: 352 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.008739, allocations: 145.9 kB / 0.7662 GB, free: 176 kB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.008884, allocations: 172.9 kB / 0.7663 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.008887, allocations: 4 kB / 0.7663 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002359/0.009123, allocations: 289.2 kB / 0.7666 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.5e-05/0.009168, allocations: 72.11 kB / 0.7667 GB, free: 15.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.009174, allocations: 4 kB / 0.7667 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.009189, allocations: 6.375 kB / 0.7667 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.792e-05/0.009247, allocations: 19.92 kB / 0.7667 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.009251, allocations: 3.938 kB / 0.7667 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.009393, allocations: 47.91 kB / 0.7668 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.009413, allocations: 8.875 kB / 0.7668 GB, free: 15.49 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 9.33e-05/0.009506, allocations: 137.2 kB / 0.7669 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.009524, allocations: 11.98 kB / 0.7669 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.009554, allocations: 17.47 kB / 0.7669 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.009556, allocations: 0 / 0.7669 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.009559, allocations: 7.938 kB / 0.7669 GB, free: 15.31 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.009563, allocations: 0 / 0.7669 GB, free: 15.31 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002619/0.009824, allocations: 274.9 kB / 0.7672 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.009826, allocations: 0 / 0.7672 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.009849, allocations: 10.44 kB / 0.7672 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.009852, allocations: 0 / 0.7672 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.009859, allocations: 4 kB / 0.7672 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.009862, allocations: 7.875 kB / 0.7672 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.009863, allocations: 0 / 0.7672 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.009976, allocations: 195 kB / 0.7674 GB, free: 14.8 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.232e-05/0.009989, allocations: 9.391 kB / 0.7674 GB, free: 14.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.01001, allocations: 4 kB / 0.7674 GB, free: 14.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.439e-05/0.01005, allocations: 11.92 kB / 0.7674 GB, free: 14.77 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/0.01009, allocations: 7.984 kB / 0.7674 GB, free: 14.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.01009, allocations: 4.719 kB / 0.7674 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.573e-05/0.01013, allocations: 43.86 kB / 0.7675 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.01013, allocations: 5.438 kB / 0.7675 GB, free: 14.71 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001862/0.01031, allocations: 51.89 kB / 0.7675 GB, free: 14.66 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.0001405/0.01046, allocations: 102.9 kB / 0.7676 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000241/0.0107, allocations: 291.9 kB / 0.7679 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.0107, allocations: 0 / 0.7679 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.782e-05/0.01075, allocations: 45.67 kB / 0.768 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001959/0.01095, allocations: 29.36 kB / 0.768 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/0.01152, allocations: 290.4 kB / 0.7683 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.367e-05/0.01156, allocations: 70.94 kB / 0.7683 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.977e-05/0.01161, allocations: 17.48 kB / 0.7683 GB, free: 13.74 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.01173, allocations: 95.33 kB / 0.7684 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of SimCode: time 6.51e-07/0.01173, allocations: 0 / 0.7684 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of Templates: time 0.005305/0.01704, allocations: 3.138 MB / 0.7715 GB, free: 10.74 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 -s gbode -gbm=radauIIA3 -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.2565528196282685]