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.002119/0.002119, allocations: 105.1 kB / 18.99 MB, free: 2.617 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.002431/0.002431, allocations: 223.5 kB / 22.29 MB, free: 5.281 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.575/1.575, allocations: 230.6 MB / 256.1 MB, free: 7.812 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.505/3.505, allocations: 0.5096 GB / 0.8148 GB, free: 18.45 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.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: 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.002129/0.002129, allocations: 71.25 kB / 1.184 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4495/0.4517, allocations: 181.4 MB / 1.361 GB, free: 15.65 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller): time 0.002878/0.4546, allocations: 0.9611 MB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002232/0.4568, allocations: 1.292 MB / 1.364 GB, free: 13.38 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.457, allocations: 3.938 kB / 1.364 GB, free: 13.37 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.4571, allocations: 19.8 kB / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.4573, allocations: 23.73 kB / 1.364 GB, free: 13.33 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006848/0.458, allocations: 174.8 kB / 1.364 GB, free: 13.16 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003564/0.4583, allocations: 228.1 kB / 1.364 GB, free: 12.94 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.4585, allocations: 62.27 kB / 1.364 GB, free: 12.88 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.4588, allocations: 91.7 kB / 1.364 GB, free: 12.79 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.459, allocations: 91.52 kB / 1.364 GB, free: 12.7 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.4591, allocations: 20 kB / 1.364 GB, free: 12.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.4592, allocations: 35.98 kB / 1.364 GB, free: 12.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.381e-05/0.4592, allocations: 35.91 kB / 1.364 GB, free: 12.61 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.4593, allocations: 79.64 kB / 1.365 GB, free: 12.53 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004452/0.4598, allocations: 255 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.4598, allocations: 4 kB / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.395e-06/0.4598, allocations: 4 kB / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.446e-05/0.4598, allocations: 3.938 kB / 1.365 GB, free: 12.27 MB / 1.061 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.0009856/0.4608, allocations: 427.2 kB / 1.365 GB, free: 11.81 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.4608, allocations: 8.031 kB / 1.365 GB, free: 11.8 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.4611, allocations: 32.78 kB / 1.365 GB, free: 11.77 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003349/0.4614, allocations: 174.4 kB / 1.365 GB, free: 11.58 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.4615, allocations: 12.38 kB / 1.365 GB, free: 11.57 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.4615, allocations: 20.38 kB / 1.365 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.4618, allocations: 137.5 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.4618, allocations: 0 / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.4619, allocations: 8 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.4619, allocations: 4 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.4621, allocations: 87.89 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008371/0.4629, allocations: 404 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.4633, allocations: 98.61 kB / 1.366 GB, free: 10.78 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.4634, allocations: 44.83 kB / 1.366 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.4634, allocations: 7.938 kB / 1.366 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002817/0.4637, allocations: 91.3 kB / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 2.054e-06/0.4637, allocations: 0 / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0004785/0.4642, allocations: 157.6 kB / 1.366 GB, free: 10.46 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.4642, allocations: 55.41 kB / 1.366 GB, free: 10.39 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.4644, allocations: 151.5 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.4645, allocations: 29.7 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.4646, allocations: 136.3 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.4647, allocations: 27.81 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/0.4647, allocations: 41.69 kB / 1.367 GB, free: 9.988 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000173/0.4649, allocations: 326.8 kB / 1.367 GB, free: 9.66 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.4651, allocations: 81.67 kB / 1.367 GB, free: 9.574 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.4653, allocations: 148.9 kB / 1.367 GB, free: 9.406 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.4656, allocations: 132.2 kB / 1.367 GB, free: 9.262 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4656, allocations: 0 / 1.367 GB, free: 9.262 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004861/0.4661, allocations: 264.8 kB / 1.368 GB, free: 8.984 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.4661, allocations: 29.7 kB / 1.368 GB, free: 8.949 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4661, allocations: 4 kB / 1.368 GB, free: 8.945 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.4661, allocations: 0 / 1.368 GB, free: 8.945 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.746e-05/0.4662, allocations: 15.98 kB / 1.368 GB, free: 8.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.4662, allocations: 3.938 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.4665, allocations: 43.91 kB / 1.368 GB, free: 8.883 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.4665, allocations: 8.062 kB / 1.368 GB, free: 8.875 MB / 1.061 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 0.0001486/0.4666, allocations: 134.9 kB / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.4667, allocations: 11.94 kB / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.4667, allocations: 12.72 kB / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4667, allocations: 0 / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.4667, allocations: 0 / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4667, allocations: 0 / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.4669, allocations: 165.2 kB / 1.368 GB, free: 8.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.4669, allocations: 0 / 1.368 GB, free: 8.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.142e-05/0.467, allocations: 12 kB / 1.368 GB, free: 8.508 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.467, allocations: 4 kB / 1.368 GB, free: 8.504 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.467, allocations: 11.92 kB / 1.368 GB, free: 8.492 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.467, allocations: 4 kB / 1.368 GB, free: 8.488 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.467, allocations: 0 / 1.368 GB, free: 8.488 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002771/0.4673, allocations: 152.9 kB / 1.368 GB, free: 8.32 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.131e-05/0.4673, allocations: 11.89 kB / 1.368 GB, free: 8.309 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.844e-05/0.4674, allocations: 4 kB / 1.368 GB, free: 8.305 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.759e-05/0.4674, allocations: 11.98 kB / 1.368 GB, free: 8.293 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.509e-05/0.4675, allocations: 7.984 kB / 1.368 GB, free: 8.285 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.4675, allocations: 11.98 kB / 1.368 GB, free: 8.273 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001034/0.4676, allocations: 118.2 kB / 1.368 GB, free: 8.16 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4676, allocations: 0 / 1.368 GB, free: 8.16 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002607/0.4679, allocations: 39.89 kB / 1.369 GB, free: 8.121 MB / 1.061 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.0001764/0.468, allocations: 107.2 kB / 1.369 GB, free: 8.008 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004165/0.4684, allocations: 193 kB / 1.369 GB, free: 7.801 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4684, allocations: 0 / 1.369 GB, free: 7.801 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.4686, allocations: 51.98 kB / 1.369 GB, free: 7.75 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4689, allocations: 34.31 kB / 1.369 GB, free: 7.719 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006319/0.4695, allocations: 272.9 kB / 1.369 GB, free: 7.426 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.4696, allocations: 106.7 kB / 1.369 GB, free: 7.297 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.329e-05/0.4697, allocations: 8.984 kB / 1.369 GB, free: 7.285 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.082e-05/0.4697, allocations: 23.42 kB / 1.369 GB, free: 7.266 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.4697, allocations: 0 / 1.369 GB, free: 7.266 MB / 1.061 GB Notification: Performance of Templates: time 0.006497/0.4762, allocations: 2.301 MB / 1.372 GB, free: 5.023 MB / 1.061 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.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.96226904913783]