Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.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.0009976/0.0009976, allocations: 81.95 kB / 20.68 MB, free: 3.816 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.00114/0.00114, allocations: 185.3 kB / 24.09 MB, free: 416 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.006/1.006, allocations: 177.1 MB / 204.5 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.967/1.967, allocations: 377.9 MB / 0.624 GB, free: 8.426 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.TuningMonitor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|tunSta.y|tunEnd.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor") translateModel(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|tunSta.y|tunEnd.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 3.938 kB / 0.812 GB, free: 1.434 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.437e-05/2.637e-05, allocations: 6.422 kB / 0.812 GB, free: 1.43 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.002778/0.002804, allocations: 2.264 MB / 0.8142 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.00426, allocations: 0.9246 MB / 0.8151 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.004472, allocations: 13.31 kB / 0.8151 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.004632, allocations: 51.41 kB / 0.8152 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.004763, allocations: 72.53 kB / 0.8153 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007737/0.005537, allocations: 435.1 kB / 0.8157 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000951/0.006488, allocations: 0.6377 MB / 0.8163 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.006743, allocations: 171.2 kB / 0.8165 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.007022, allocations: 344.8 kB / 0.8168 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.007211, allocations: 171.4 kB / 0.817 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.577e-05/0.007277, allocations: 64 kB / 0.817 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.007383, allocations: 76 kB / 0.8171 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.191e-05/0.007445, allocations: 92.25 kB / 0.8172 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.007583, allocations: 181 kB / 0.8174 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.008076, allocations: 434.6 kB / 0.8178 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.008079, allocations: 0 / 0.8178 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.112e-06/0.008081, allocations: 0 / 0.8178 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.008085, allocations: 0.5 kB / 0.8178 GB, free: 11.54 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0007428/0.008828, allocations: 0.7942 MB / 0.8185 GB, free: 10.69 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.008869, allocations: 9.969 kB / 0.8186 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.41e-05/0.008963, allocations: 84.66 kB / 0.8186 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.009279, allocations: 313.3 kB / 0.8189 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/0.00931, allocations: 29.03 kB / 0.819 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.444e-05/0.009354, allocations: 44.36 kB / 0.819 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.009576, allocations: 203.3 kB / 0.8192 GB, free: 9.988 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.009586, allocations: 192 / 0.8192 GB, free: 9.988 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.009607, allocations: 21.02 kB / 0.8192 GB, free: 9.969 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.009614, allocations: 8.375 kB / 0.8192 GB, free: 9.961 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.941e-05/0.009713, allocations: 88.98 kB / 0.8193 GB, free: 9.879 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008458/0.01056, allocations: 0.7876 MB / 0.8201 GB, free: 9.066 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/0.01081, allocations: 165.4 kB / 0.8202 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.01091, allocations: 68.52 kB / 0.8203 GB, free: 8.824 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.124e-05/0.01095, allocations: 4 kB / 0.8203 GB, free: 8.82 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000196/0.01114, allocations: 171.8 kB / 0.8205 GB, free: 8.637 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=33): time 2.205e-06/0.01114, allocations: 1.25 kB / 0.8205 GB, free: 8.637 MB / 0.7761 GB Notification: Performance of matching and sorting (n=33): time 0.000356/0.0115, allocations: 281 kB / 0.8207 GB, free: 8.359 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.01154, allocations: 55.41 kB / 0.8208 GB, free: 8.293 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.01171, allocations: 300.9 kB / 0.8211 GB, free: 7.988 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.01175, allocations: 41.7 kB / 0.8211 GB, free: 7.941 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.01187, allocations: 248.9 kB / 0.8214 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.9e-05/0.01192, allocations: 91.28 kB / 0.8214 GB, free: 7.605 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.01204, allocations: 107.6 kB / 0.8215 GB, free: 7.488 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.01219, allocations: 0.5156 MB / 0.822 GB, free: 6.961 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.01234, allocations: 178.9 kB / 0.8222 GB, free: 6.766 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.01253, allocations: 279.3 kB / 0.8225 GB, free: 6.438 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.01276, allocations: 312 kB / 0.8228 GB, free: 6.082 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.01277, allocations: 0 / 0.8228 GB, free: 6.082 MB / 0.7761 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000507/0.01327, allocations: 0.5505 MB / 0.8233 GB, free: 5.488 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 7.832e-05/0.01335, allocations: 105.1 kB / 0.8234 GB, free: 5.367 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.01336, allocations: 0 / 0.8234 GB, free: 5.367 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.01337, allocations: 5.125 kB / 0.8234 GB, free: 5.363 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.274e-05/0.01346, allocations: 35.92 kB / 0.8235 GB, free: 5.328 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.01346, allocations: 4 kB / 0.8235 GB, free: 5.324 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.01367, allocations: 78.69 kB / 0.8235 GB, free: 5.25 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.0137, allocations: 27.92 kB / 0.8236 GB, free: 5.223 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition8,$whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,tunEnd.y,tunSta.y,tOff.booPul.y,$PRE.tOff.booPul.y,tOnSig2.booPul.y,$PRE.tOnSig2.booPul.y,tOnSig1.booPul.y,$PRE.tOnSig1.booPul.y,tunMan.greThr1.y,tunMan.edgTunEnd.u,$PRE.tunMan.edgTunEnd.u,tunMan.edgTunSta.u,$PRE.tunMan.edgTunSta.u,tunMan.tDec.y,tunMan.tInc.y,tunMan.samAddtOntOff.y,$PRE.tunMan.samAddtOntOff.y,tunMan.triEnd,tunMan.triSta,$whenCondition1,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 3 * 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.0001451/0.01385, allocations: 191.8 kB / 0.8237 GB, free: 5.023 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.01388, allocations: 41.19 kB / 0.8238 GB, free: 4.984 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.01415, allocations: 236.7 kB / 0.824 GB, free: 4.746 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01415, allocations: 4 kB / 0.824 GB, free: 4.742 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.01415, allocations: 0 / 0.824 GB, free: 4.742 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.01416, allocations: 0.7812 kB / 0.824 GB, free: 4.742 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005322/0.01469, allocations: 0.5885 MB / 0.8246 GB, free: 4.121 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.01469, allocations: 0 / 0.8246 GB, free: 4.121 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.183e-05/0.01474, allocations: 24.58 kB / 0.8246 GB, free: 4.098 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.01475, allocations: 11.94 kB / 0.8246 GB, free: 4.086 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.01476, allocations: 7.156 kB / 0.8246 GB, free: 4.082 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.01476, allocations: 4 kB / 0.8246 GB, free: 4.078 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.01476, allocations: 3.938 kB / 0.8246 GB, free: 4.074 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.01502, allocations: 393 kB / 0.825 GB, free: 3.668 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.546e-05/0.01507, allocations: 47.72 kB / 0.8251 GB, free: 3.621 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.0151, allocations: 11.98 kB / 0.8251 GB, free: 3.609 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.807e-05/0.01516, allocations: 8 kB / 0.8251 GB, free: 3.602 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.0152, allocations: 31.89 kB / 0.8251 GB, free: 3.57 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.01522, allocations: 10.39 kB / 0.8251 GB, free: 3.562 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.704e-05/0.01529, allocations: 193.1 kB / 0.8253 GB, free: 3.375 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01529, allocations: 0 / 0.8253 GB, free: 3.375 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002459/0.01554, allocations: 99.78 kB / 0.8254 GB, free: 3.277 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (tunMan.triEnd,tunMan.greThr1.y,tunMan.triSta,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,$whenCondition1,tunMan.samAddtOntOff.y,tunMan.tInc.y,tunMan.tDec.y,tunMan.edgTunSta.u,tunMan.edgTunEnd.u,tOnSig1.booPul.y,tOnSig2.booPul.y,tOff.booPul.y,tunSta.y,tunEnd.y) * Number of discrete states: 2 (tunMan.edgTunSta.u,tunMan.edgTunEnd.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001831/0.01572, allocations: 128.2 kB / 0.8255 GB, free: 3.141 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003899/0.01611, allocations: 491.7 kB / 0.826 GB, free: 2.602 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01611, allocations: 1.875 kB / 0.826 GB, free: 2.602 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.262e-05/0.0162, allocations: 99.48 kB / 0.8261 GB, free: 2.5 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.0165, allocations: 70.75 kB / 0.8262 GB, free: 2.434 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006363/0.01713, allocations: 0.532 MB / 0.8267 GB, free: 1.871 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.032e-05/0.01719, allocations: 93.36 kB / 0.8268 GB, free: 1.758 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.574e-05/0.01727, allocations: 39.7 kB / 0.8268 GB, free: 1.723 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.01747, allocations: 166.1 kB / 0.827 GB, free: 1.559 MB / 0.7761 GB Notification: Performance of SimCode: time 1.153e-06/0.01747, allocations: 0 / 0.827 GB, free: 1.559 MB / 0.7761 GB Notification: Performance of Templates: time 0.008304/0.02578, allocations: 5.797 MB / 0.8326 GB, free: 11.93 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_TuningMonitor.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.263549484778196]