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.0009949/0.0009949, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.001118/0.001118, allocations: 169 kB / 23.82 MB, free: 0.7422 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.9817/0.9817, allocations: 177.1 MB / 204.2 MB, free: 5.633 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.886/1.886, allocations: 377.9 MB / 0.6236 GB, free: 8.555 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 3.878e-06/3.878e-06, allocations: 0 / 0.8115 GB, free: 1.691 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.756e-05/4.144e-05, allocations: 5.125 kB / 0.8116 GB, free: 1.688 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.004602/0.004644, allocations: 2.329 MB / 0.8138 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001894/0.006537, allocations: 0.9208 MB / 0.8147 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002669/0.006804, allocations: 12.59 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.007033, allocations: 59.33 kB / 0.8148 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.007226, allocations: 77.44 kB / 0.8149 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.008318, allocations: 423.1 kB / 0.8153 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0007267/0.009045, allocations: 0.634 MB / 0.8159 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003574/0.009402, allocations: 167.2 kB / 0.8161 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004094/0.009812, allocations: 347.3 kB / 0.8164 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.0101, allocations: 176.9 kB / 0.8166 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 9.552e-05/0.0102, allocations: 67.94 kB / 0.8166 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.01034, allocations: 75.98 kB / 0.8167 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 8.538e-05/0.01042, allocations: 91.67 kB / 0.8168 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.01061, allocations: 177 kB / 0.8169 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006068/0.01122, allocations: 438.6 kB / 0.8174 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.01123, allocations: 0 / 0.8174 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.563e-06/0.01123, allocations: 0 / 0.8174 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.01124, allocations: 0.625 kB / 0.8174 GB, free: 11.74 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.001134/0.01237, allocations: 0.7948 MB / 0.8181 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.01242, allocations: 8.031 kB / 0.8181 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.01259, allocations: 84.64 kB / 0.8182 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005241/0.01312, allocations: 310 kB / 0.8185 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.316e-05/0.01317, allocations: 37.02 kB / 0.8186 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-05/0.01324, allocations: 40.38 kB / 0.8186 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.01368, allocations: 223.3 kB / 0.8188 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.01369, allocations: 0.8125 kB / 0.8188 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.01373, allocations: 17.5 kB / 0.8188 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.01375, allocations: 8.375 kB / 0.8188 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.01401, allocations: 119.7 kB / 0.8189 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.01549, allocations: 0.838 MB / 0.8198 GB, free: 9.156 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005015/0.01599, allocations: 173.9 kB / 0.8199 GB, free: 8.977 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001902/0.01618, allocations: 77.48 kB / 0.82 GB, free: 8.898 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.01621, allocations: 4 kB / 0.82 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003167/0.01653, allocations: 176.2 kB / 0.8202 GB, free: 8.707 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=33): time 3.346e-06/0.01653, allocations: 0 / 0.8202 GB, free: 8.707 MB / 0.7761 GB Notification: Performance of matching and sorting (n=33): time 0.0007785/0.01731, allocations: 317.2 kB / 0.8205 GB, free: 8.395 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.01736, allocations: 55.41 kB / 0.8205 GB, free: 8.328 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.01765, allocations: 308.2 kB / 0.8208 GB, free: 8.012 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.648e-05/0.0177, allocations: 37.7 kB / 0.8209 GB, free: 7.969 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.01787, allocations: 239.6 kB / 0.8211 GB, free: 7.73 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/0.01794, allocations: 87.31 kB / 0.8212 GB, free: 7.645 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.01814, allocations: 123.1 kB / 0.8213 GB, free: 7.516 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001843/0.01832, allocations: 0.5117 MB / 0.8218 GB, free: 6.992 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003075/0.01863, allocations: 193.7 kB / 0.822 GB, free: 6.781 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.01899, allocations: 303.3 kB / 0.8223 GB, free: 6.43 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000427/0.01941, allocations: 314.8 kB / 0.8226 GB, free: 6.066 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.01942, allocations: 4.5 kB / 0.8226 GB, free: 6.062 MB / 0.7761 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009203/0.02034, allocations: 0.5887 MB / 0.8231 GB, free: 5.434 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 8.581e-05/0.02043, allocations: 109 kB / 0.8233 GB, free: 5.309 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.02044, allocations: 4.594 kB / 0.8233 GB, free: 5.305 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.02046, allocations: 4 kB / 0.8233 GB, free: 5.301 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.02059, allocations: 28.55 kB / 0.8233 GB, free: 5.273 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.0206, allocations: 5.969 kB / 0.8233 GB, free: 5.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.02093, allocations: 87.66 kB / 0.8234 GB, free: 5.184 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.356e-05/0.02099, allocations: 24.8 kB / 0.8234 GB, free: 5.16 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.0001835/0.02117, allocations: 192.1 kB / 0.8236 GB, free: 4.961 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.404e-05/0.02123, allocations: 45.19 kB / 0.8236 GB, free: 4.918 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004726/0.02171, allocations: 253.5 kB / 0.8239 GB, free: 4.664 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.02171, allocations: 0 / 0.8239 GB, free: 4.664 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.02172, allocations: 4 kB / 0.8239 GB, free: 4.66 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.02173, allocations: 0.9688 kB / 0.8239 GB, free: 4.66 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009301/0.02266, allocations: 0.65 MB / 0.8245 GB, free: 3.969 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.02266, allocations: 1.312 kB / 0.8245 GB, free: 3.969 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.604e-05/0.02276, allocations: 27.92 kB / 0.8245 GB, free: 3.941 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.02276, allocations: 4 kB / 0.8245 GB, free: 3.938 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.417e-05/0.02279, allocations: 19.78 kB / 0.8246 GB, free: 3.922 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.02279, allocations: 0 / 0.8246 GB, free: 3.922 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.02279, allocations: 0 / 0.8246 GB, free: 3.922 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004601/0.02325, allocations: 404.5 kB / 0.8249 GB, free: 3.504 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.413e-05/0.02335, allocations: 43.73 kB / 0.825 GB, free: 3.461 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.394e-05/0.02339, allocations: 11.92 kB / 0.825 GB, free: 3.449 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.02349, allocations: 8 kB / 0.825 GB, free: 3.441 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.02358, allocations: 27.95 kB / 0.825 GB, free: 3.414 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.02361, allocations: 15.98 kB / 0.825 GB, free: 3.398 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001614/0.02377, allocations: 197.1 kB / 0.8252 GB, free: 3.211 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9e-08/0.02377, allocations: 0.9375 kB / 0.8252 GB, free: 3.211 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004601/0.02423, allocations: 103.8 kB / 0.8253 GB, free: 3.109 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.0002431/0.02448, allocations: 121.3 kB / 0.8254 GB, free: 2.98 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0006851/0.02516, allocations: 0.5153 MB / 0.826 GB, free: 2.406 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.02516, allocations: 0 / 0.826 GB, free: 2.406 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.02532, allocations: 105.1 kB / 0.8261 GB, free: 2.301 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/0.02581, allocations: 70.08 kB / 0.8261 GB, free: 2.238 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.02684, allocations: 0.5506 MB / 0.8267 GB, free: 1.656 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.471e-05/0.02692, allocations: 101.3 kB / 0.8268 GB, free: 1.535 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.000117/0.02704, allocations: 36.19 kB / 0.8268 GB, free: 1.508 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.411e-05/0.0271, allocations: 28.44 kB / 0.8268 GB, free: 1.48 MB / 0.7761 GB Notification: Performance of SimCode: time 1.923e-06/0.02711, allocations: 0 / 0.8268 GB, free: 1.48 MB / 0.7761 GB Notification: Performance of Templates: time 0.01163/0.03873, allocations: 5.727 MB / 0.8324 GB, free: 11.92 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.35923563176766]