Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.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.001036/0.001036, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.0009859/0.0009859, allocations: 173 kB / 23.49 MB, free: 1.055 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.042/1.042, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.124/2.124, allocations: 429.5 MB / 0.6736 GB, free: 4.051 MB / 0.6355 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.Validation.Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0.875 kB / 0.8782 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.11e-05/2.289e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller): time 0.001576/0.001599, allocations: 1.009 MB / 0.8792 GB, free: 5.66 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.002858, allocations: 1.308 MB / 0.8804 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.061e-05/0.002939, allocations: 4.812 kB / 0.8804 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.003053, allocations: 19.69 kB / 0.8805 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.889e-05/0.003121, allocations: 24.5 kB / 0.8805 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000399/0.00352, allocations: 177 kB / 0.8807 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.003727, allocations: 232 kB / 0.8809 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.003873, allocations: 53.77 kB / 0.8809 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.004067, allocations: 140.2 kB / 0.8811 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.004173, allocations: 63.84 kB / 0.8811 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.989e-05/0.004203, allocations: 24.72 kB / 0.8811 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.993e-05/0.004263, allocations: 35.92 kB / 0.8812 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.406e-05/0.004297, allocations: 47.77 kB / 0.8812 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.374e-05/0.004361, allocations: 63.83 kB / 0.8813 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.004564, allocations: 175.4 kB / 0.8815 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.004566, allocations: 0 / 0.8815 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.12e-07/0.004567, allocations: 0 / 0.8815 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.004571, allocations: 0 / 0.8815 GB, free: 3.301 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005591/0.00513, allocations: 0.521 MB / 0.882 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.005169, allocations: 8.031 kB / 0.882 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.005306, allocations: 40.8 kB / 0.882 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.005494, allocations: 173.9 kB / 0.8822 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.005509, allocations: 12.36 kB / 0.8822 GB, free: 2.484 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.005534, allocations: 20.36 kB / 0.8822 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.0057, allocations: 115.9 kB / 0.8823 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.00571, allocations: 4.172 kB / 0.8823 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.005724, allocations: 7.938 kB / 0.8823 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.005733, allocations: 5.094 kB / 0.8823 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.174e-05/0.005815, allocations: 39.97 kB / 0.8824 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004882/0.006303, allocations: 456.4 kB / 0.8828 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.006497, allocations: 80.19 kB / 0.8829 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.948e-05/0.006547, allocations: 31.61 kB / 0.8829 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.006566, allocations: 4 kB / 0.8829 GB, free: 1.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001075/0.006674, allocations: 77.83 kB / 0.883 GB, free: 1.59 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.773e-06/0.006675, allocations: 4 kB / 0.883 GB, free: 1.586 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002344/0.00691, allocations: 119.3 kB / 0.8831 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.006948, allocations: 55.41 kB / 0.8832 GB, free: 1.398 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.007057, allocations: 207.7 kB / 0.8834 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.007076, allocations: 25.7 kB / 0.8834 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.386e-05/0.00715, allocations: 179.6 kB / 0.8836 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.007173, allocations: 33.42 kB / 0.8836 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.892e-05/0.007232, allocations: 47.34 kB / 0.8836 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.007347, allocations: 0.4962 MB / 0.8841 GB, free: 384 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.177e-05/0.007429, allocations: 61.69 kB / 0.8842 GB, free: 316 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.802e-05/0.007527, allocations: 141.3 kB / 0.8843 GB, free: 148 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.007634, allocations: 105.9 kB / 0.8844 GB, free: 24 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.007637, allocations: 1.094 kB / 0.8844 GB, free: 24 kB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002439/0.00788, allocations: 216.8 kB / 0.8846 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.007909, allocations: 38.34 kB / 0.8847 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.007914, allocations: 0 / 0.8847 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.007927, allocations: 9.531 kB / 0.8847 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.907e-05/0.007986, allocations: 16 kB / 0.8847 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.007992, allocations: 7.922 kB / 0.8847 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.964e-05/0.008082, allocations: 22.86 kB / 0.8847 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.008098, allocations: 11.98 kB / 0.8847 GB, free: 15.69 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,enaSig.y,$PRE.enaSig.y,relCon.hys.y,$PRE.relCon.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 1 * 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.865e-05/0.008176, allocations: 164.6 kB / 0.8849 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.008195, allocations: 19.84 kB / 0.8849 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/0.008226, allocations: 16.78 kB / 0.8849 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.008227, allocations: 0 / 0.8849 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.00823, allocations: 1.656 kB / 0.8849 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.008235, allocations: 3.984 kB / 0.8849 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.00835, allocations: 172.5 kB / 0.8851 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.008352, allocations: 0 / 0.8851 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.808e-05/0.00839, allocations: 24.48 kB / 0.8851 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.008391, allocations: 0 / 0.8851 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.0084, allocations: 4.812 kB / 0.8851 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.008401, allocations: 0 / 0.8851 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.008402, allocations: 0.7188 kB / 0.8851 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.008539, allocations: 132.8 kB / 0.8852 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.461e-05/0.008554, allocations: 19.97 kB / 0.8853 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.008575, allocations: 8 kB / 0.8853 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.7e-05/0.008602, allocations: 4 kB / 0.8853 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.008653, allocations: 15.95 kB / 0.8853 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.754e-06/0.008661, allocations: 4 kB / 0.8853 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.109e-05/0.008722, allocations: 157.5 kB / 0.8854 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.008722, allocations: 0 / 0.8854 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001594/0.008882, allocations: 39.89 kB / 0.8855 GB, free: 14.85 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: 4 ($whenCondition1,$whenCondition2,relCon.hys.y,enaSig.y) * Number of discrete states: 1 (relCon.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001096/0.008991, allocations: 115.2 kB / 0.8856 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002027/0.009194, allocations: 176.7 kB / 0.8858 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.009196, allocations: 4 kB / 0.8858 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.042e-05/0.009246, allocations: 35.66 kB / 0.8858 GB, free: 14.49 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.009429, allocations: 29.8 kB / 0.8858 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006115/0.01004, allocations: 286.6 kB / 0.8861 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.662e-05/0.01008, allocations: 71.33 kB / 0.8862 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.963e-05/0.01012, allocations: 8.984 kB / 0.8862 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.01015, allocations: 16.48 kB / 0.8862 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of SimCode: time 9.42e-07/0.01015, allocations: 4 kB / 0.8862 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of Templates: time 0.00387/0.01402, allocations: 2.185 MB / 0.8883 GB, free: 11.92 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.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.429701609071344]