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.001672/0.001672, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.001931/0.001931, allocations: 215.6 kB / 22.25 MB, free: 5.074 MB / 14.72 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.548/1.548, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.511/3.511, allocations: 0.49 GB / 0.7951 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 62.66 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4723/0.4745, allocations: 176.1 MB / 1.326 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.005504/0.48, allocations: 2.356 MB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002536/0.4825, allocations: 0.9389 MB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/0.4828, allocations: 11.94 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.4831, allocations: 51.34 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.4833, allocations: 63.44 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.485, allocations: 457.4 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001065/0.486, allocations: 0.6249 MB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000515/0.4865, allocations: 183.1 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003743/0.4869, allocations: 235.3 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004515/0.4874, allocations: 231 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.4875, allocations: 68 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002101/0.4877, allocations: 79.98 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.4878, allocations: 87.7 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003774/0.4882, allocations: 246.9 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.4895, allocations: 0.7317 MB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.4895, allocations: 4 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.565e-06/0.4895, allocations: 3.938 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.212e-05/0.4895, allocations: 0 / 1.333 GB, free: 11.09 MB / 1.029 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.001811/0.4913, allocations: 0.7094 MB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.4914, allocations: 8.031 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.4915, allocations: 52.66 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000766/0.4923, allocations: 301.5 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.319e-05/0.4924, allocations: 33.03 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.4925, allocations: 44.38 kB / 1.334 GB, free: 9.871 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007569/0.4933, allocations: 282.6 kB / 1.334 GB, free: 9.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4933, allocations: 192 / 1.334 GB, free: 9.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.238e-05/0.4933, allocations: 19.94 kB / 1.334 GB, free: 9.57 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.4933, allocations: 8 kB / 1.334 GB, free: 9.562 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005919/0.4939, allocations: 194.5 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002547/0.4965, allocations: 0.9796 MB / 1.335 GB, free: 8.348 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006784/0.4972, allocations: 208.9 kB / 1.335 GB, free: 8.137 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.4975, allocations: 96.8 kB / 1.335 GB, free: 8.039 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-05/0.4975, allocations: 4 kB / 1.335 GB, free: 8.035 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004892/0.498, allocations: 201.4 kB / 1.336 GB, free: 7.824 MB / 1.029 GB Notification: Performance of pre-optimization done (n=33): time 2.425e-06/0.498, allocations: 0 / 1.336 GB, free: 7.824 MB / 1.029 GB Notification: Performance of matching and sorting (n=33): time 0.001077/0.4991, allocations: 374.8 kB / 1.336 GB, free: 7.453 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/0.4992, allocations: 63.39 kB / 1.336 GB, free: 7.379 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005257/0.4997, allocations: 265.8 kB / 1.336 GB, free: 7.113 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.611e-05/0.4998, allocations: 45.64 kB / 1.336 GB, free: 7.062 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.5001, allocations: 200.9 kB / 1.336 GB, free: 6.863 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.5003, allocations: 83.33 kB / 1.337 GB, free: 6.781 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.5005, allocations: 106 kB / 1.337 GB, free: 6.668 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002286/0.5008, allocations: 346.8 kB / 1.337 GB, free: 6.32 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005239/0.5013, allocations: 152.6 kB / 1.337 GB, free: 6.168 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006086/0.5019, allocations: 224.8 kB / 1.337 GB, free: 5.922 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008058/0.5027, allocations: 377 kB / 1.338 GB, free: 5.508 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.5027, allocations: 4 kB / 1.338 GB, free: 5.504 MB / 1.029 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001415/0.5041, allocations: 0.5533 MB / 1.338 GB, free: 4.926 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.5043, allocations: 105.1 kB / 1.338 GB, free: 4.805 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.5043, allocations: 7.938 kB / 1.338 GB, free: 4.797 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-05/0.5043, allocations: 7.938 kB / 1.338 GB, free: 4.789 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.5045, allocations: 31.86 kB / 1.338 GB, free: 4.758 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.5045, allocations: 4 kB / 1.338 GB, free: 4.754 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007642/0.5053, allocations: 111.9 kB / 1.339 GB, free: 4.645 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.5054, allocations: 27.98 kB / 1.339 GB, free: 4.617 MB / 1.029 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.0003746/0.5058, allocations: 172.4 kB / 1.339 GB, free: 4.438 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.545e-05/0.5059, allocations: 27.81 kB / 1.339 GB, free: 4.41 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007582/0.5066, allocations: 300.4 kB / 1.339 GB, free: 4.109 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5066, allocations: 0 / 1.339 GB, free: 4.109 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5066, allocations: 4 kB / 1.339 GB, free: 4.105 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.5066, allocations: 3.984 kB / 1.339 GB, free: 4.102 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.5082, allocations: 0.7449 MB / 1.34 GB, free: 3.309 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.5082, allocations: 0 / 1.34 GB, free: 3.309 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.5083, allocations: 27.94 kB / 1.34 GB, free: 3.281 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.908e-06/0.5083, allocations: 4 kB / 1.34 GB, free: 3.277 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.5084, allocations: 7.984 kB / 1.34 GB, free: 3.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.5084, allocations: 4 kB / 1.34 GB, free: 3.266 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.5084, allocations: 3.984 kB / 1.34 GB, free: 3.262 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008948/0.5093, allocations: 388 kB / 1.34 GB, free: 2.867 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.5094, allocations: 51.72 kB / 1.34 GB, free: 2.816 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.038e-05/0.5095, allocations: 12 kB / 1.34 GB, free: 2.805 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.5097, allocations: 15.98 kB / 1.34 GB, free: 2.789 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.5099, allocations: 23.95 kB / 1.34 GB, free: 2.766 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.712e-05/0.5099, allocations: 15.98 kB / 1.34 GB, free: 2.75 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002873/0.5102, allocations: 177.2 kB / 1.34 GB, free: 2.578 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5102, allocations: 0 / 1.34 GB, free: 2.578 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0008142/0.511, allocations: 107.7 kB / 1.341 GB, free: 2.473 MB / 1.029 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.000268/0.5113, allocations: 123.4 kB / 1.341 GB, free: 2.344 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001376/0.5127, allocations: 493.9 kB / 1.341 GB, free: 1.824 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.5127, allocations: 0 / 1.341 GB, free: 1.824 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.513, allocations: 116.4 kB / 1.341 GB, free: 1.711 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008774/0.5138, allocations: 76.81 kB / 1.341 GB, free: 1.637 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.5154, allocations: 0.5481 MB / 1.342 GB, free: 1.062 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006855/0.5161, allocations: 0.7918 MB / 1.343 GB, free: 240 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001785/0.5163, allocations: 38.91 kB / 1.343 GB, free: 196 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.611e-05/0.5164, allocations: 23.44 kB / 1.343 GB, free: 176 kB / 1.029 GB Notification: Performance of SimCode: time 1.132e-06/0.5164, allocations: 0 / 1.343 GB, free: 176 kB / 1.029 GB Notification: Performance of Templates: time 0.01837/0.5347, allocations: 5.138 MB / 1.348 GB, free: 11.12 MB / 1.045 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.90599966282025]