Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001979/0.001979, allocations: 106.2 kB / 16.45 MB, free: 6.488 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.002396/0.002396, allocations: 216.2 kB / 19.43 MB, free: 3.656 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.633/1.633, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] 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 3.439/3.439, allocations: 0.5049 GB / 0.8065 GB, free: 23.06 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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.BaseClasses.Validation.TuningMonitor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|tunSta.y|tunEnd.y",fileNamePrefix="Buildings_latest_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_latest_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.00222/0.00222, allocations: 70.02 kB / 1.172 GB, free: 17.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4202/0.4224, allocations: 180.2 MB / 1.348 GB, free: 9.461 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.004521/0.4269, allocations: 2.36 MB / 1.351 GB, free: 7.086 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001846/0.4288, allocations: 0.9233 MB / 1.351 GB, free: 6.16 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.429, allocations: 11.94 kB / 1.351 GB, free: 6.148 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0002088/0.4292, allocations: 51.34 kB / 1.351 GB, free: 6.098 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001661/0.4293, allocations: 63.45 kB / 1.352 GB, free: 6.035 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.4305, allocations: 439.3 kB / 1.352 GB, free: 5.617 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0007292/0.4312, allocations: 0.6287 MB / 1.353 GB, free: 4.984 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003684/0.4315, allocations: 190.7 kB / 1.353 GB, free: 4.793 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.4318, allocations: 231.3 kB / 1.353 GB, free: 4.566 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002991/0.4321, allocations: 227.1 kB / 1.353 GB, free: 4.344 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.931e-05/0.4322, allocations: 64 kB / 1.353 GB, free: 4.281 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.4323, allocations: 87.92 kB / 1.353 GB, free: 4.195 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.664e-05/0.4324, allocations: 87.7 kB / 1.353 GB, free: 4.109 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002658/0.4327, allocations: 242.9 kB / 1.354 GB, free: 3.871 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0008843/0.4336, allocations: 0.7317 MB / 1.354 GB, free: 3.137 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.4336, allocations: 4 kB / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4336, allocations: 0 / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.4336, allocations: 4 kB / 1.354 GB, free: 3.129 MB / 1.045 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.001273/0.4349, allocations: 0.7731 MB / 1.355 GB, free: 2.285 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.4349, allocations: 8.031 kB / 1.355 GB, free: 2.277 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.435, allocations: 56.59 kB / 1.355 GB, free: 2.223 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005958/0.4356, allocations: 355.3 kB / 1.356 GB, free: 1.84 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.4357, allocations: 37.03 kB / 1.356 GB, free: 1.805 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.39e-05/0.4358, allocations: 48.36 kB / 1.356 GB, free: 1.758 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005/0.4363, allocations: 274.6 kB / 1.356 GB, free: 1.48 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.4363, allocations: 4.188 kB / 1.356 GB, free: 1.477 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.4363, allocations: 15.88 kB / 1.356 GB, free: 1.461 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.4363, allocations: 8 kB / 1.356 GB, free: 1.453 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003573/0.4367, allocations: 190.5 kB / 1.356 GB, free: 1.27 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.4383, allocations: 1.053 MB / 1.357 GB, free: 168 kB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005421/0.4388, allocations: 207 kB / 1.357 GB, free: 15.95 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.4391, allocations: 100.8 kB / 1.357 GB, free: 15.85 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.4391, allocations: 3.938 kB / 1.357 GB, free: 15.84 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003305/0.4394, allocations: 203.1 kB / 1.358 GB, free: 15.63 MB / 1.061 GB Notification: Performance of pre-optimization done (n=36): time 1.733e-06/0.4394, allocations: 0 / 1.358 GB, free: 15.63 MB / 1.061 GB Notification: Performance of matching and sorting (n=36): time 0.000758/0.4402, allocations: 387.1 kB / 1.358 GB, free: 15.25 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.516e-05/0.4402, allocations: 63.34 kB / 1.358 GB, free: 15.18 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.4405, allocations: 258.5 kB / 1.358 GB, free: 14.91 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.432e-05/0.4406, allocations: 41.7 kB / 1.358 GB, free: 14.87 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.4408, allocations: 200.8 kB / 1.359 GB, free: 14.67 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.699e-05/0.4409, allocations: 91.28 kB / 1.359 GB, free: 14.58 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.4411, allocations: 110 kB / 1.359 GB, free: 14.46 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001826/0.4413, allocations: 342.8 kB / 1.359 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003419/0.4416, allocations: 168.7 kB / 1.359 GB, free: 13.96 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.442, allocations: 226.2 kB / 1.359 GB, free: 13.71 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005424/0.4426, allocations: 379.8 kB / 1.36 GB, free: 13.29 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.4426, allocations: 0 / 1.36 GB, free: 13.29 MB / 1.061 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001016/0.4436, allocations: 0.5843 MB / 1.36 GB, free: 12.68 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.4437, allocations: 107.1 kB / 1.36 GB, free: 12.56 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.4437, allocations: 4 kB / 1.36 GB, free: 12.56 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.4437, allocations: 7.938 kB / 1.36 GB, free: 12.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.4438, allocations: 27.92 kB / 1.36 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.4439, allocations: 7.984 kB / 1.36 GB, free: 12.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005596/0.4444, allocations: 111.7 kB / 1.361 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.4445, allocations: 27.98 kB / 1.361 GB, free: 12.38 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,tunEnd.y,$PRE.tunEnd.y,tunEnd.clr,tunEnd.u,tunSta.y,$PRE.tunSta.y,tunSta.clr,tunSta.u,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,$whenCondition1,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * 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.0002137/0.4447, allocations: 168.1 kB / 1.361 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.913e-05/0.4447, allocations: 31.8 kB / 1.361 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005342/0.4453, allocations: 312.2 kB / 1.361 GB, free: 11.86 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.4453, allocations: 11.94 kB / 1.361 GB, free: 11.85 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4453, allocations: 4 kB / 1.361 GB, free: 11.85 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.4453, allocations: 3.984 kB / 1.361 GB, free: 11.84 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.4465, allocations: 0.8047 MB / 1.362 GB, free: 10.98 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.4465, allocations: 4 kB / 1.362 GB, free: 10.97 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.851e-05/0.4466, allocations: 27.92 kB / 1.362 GB, free: 10.95 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4466, allocations: 4.062 kB / 1.362 GB, free: 10.94 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.4466, allocations: 11.94 kB / 1.362 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.4466, allocations: 4 kB / 1.362 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4466, allocations: 0 / 1.362 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/0.4471, allocations: 401.9 kB / 1.362 GB, free: 10.51 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.4473, allocations: 124.8 kB / 1.362 GB, free: 10.37 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.719e-05/0.4473, allocations: 15.98 kB / 1.362 GB, free: 10.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.4475, allocations: 8 kB / 1.362 GB, free: 10.35 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.4475, allocations: 31.95 kB / 1.363 GB, free: 10.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.4476, allocations: 8 kB / 1.363 GB, free: 10.31 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001922/0.4478, allocations: 182 kB / 1.363 GB, free: 10.12 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4478, allocations: 0 / 1.363 GB, free: 10.12 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004201/0.4482, allocations: 103.8 kB / 1.363 GB, free: 10.02 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 26 (tunEnd.u,tunMan.greThr1.y,tunSta.u,$whenCondition11,$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,tunSta.clr,tunEnd.clr) * 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 (36): * Single equations (assignments): 30 * 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.0002238/0.4484, allocations: 132.9 kB / 1.363 GB, free: 9.887 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007976/0.4492, allocations: 0.4986 MB / 1.363 GB, free: 9.352 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4492, allocations: 0 / 1.363 GB, free: 9.352 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.4494, allocations: 120 kB / 1.364 GB, free: 9.234 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000551/0.45, allocations: 80.94 kB / 1.364 GB, free: 9.156 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.451, allocations: 0.5726 MB / 1.364 GB, free: 8.551 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.4514, allocations: 0.7956 MB / 1.365 GB, free: 7.73 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001074/0.4516, allocations: 34.95 kB / 1.365 GB, free: 7.691 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.4516, allocations: 27.44 kB / 1.365 GB, free: 7.664 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.4516, allocations: 4 kB / 1.365 GB, free: 7.66 MB / 1.061 GB Notification: Performance of Templates: time 0.01057/0.4622, allocations: 5.064 MB / 1.37 GB, free: 2.676 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_TuningMonitor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.934011930134147]