Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001558/0.001558, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.002761/0.002761, allocations: 220.8 kB / 22.26 MB, free: 5.125 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.584/1.584, allocations: 230.6 MB / 256 MB, free: 7.984 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.372/3.372, allocations: 0.49 GB / 0.7951 GB, free: 33.36 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.Validation.Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_12_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_12_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.002101/0.002101, allocations: 70.73 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4238, allocations: 176.1 MB / 1.326 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller): time 0.002648/0.4265, allocations: 1.039 MB / 1.327 GB, free: 412 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002131/0.4286, allocations: 1.311 MB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.4287, allocations: 8 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.4289, allocations: 19.8 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.523e-05/0.429, allocations: 27.72 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00065/0.4296, allocations: 174.8 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003589/0.43, allocations: 228.1 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.4302, allocations: 60.91 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/0.4304, allocations: 103.6 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.4306, allocations: 99.64 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.504e-05/0.4307, allocations: 20 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.937e-05/0.4308, allocations: 39.98 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/0.4308, allocations: 35.84 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.431, allocations: 91.58 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.4314, allocations: 259 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4314, allocations: 0 / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4314, allocations: 3.938 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.394e-05/0.4314, allocations: 0 / 1.33 GB, free: 13.93 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009668/0.4324, allocations: 427.2 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.4324, allocations: 12.03 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.4326, allocations: 32.78 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.433, allocations: 168.5 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.433, allocations: 12.38 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.433, allocations: 16.38 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/0.4334, allocations: 142.1 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.4334, allocations: 3.938 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.4334, allocations: 4 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.4334, allocations: 7.938 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.4336, allocations: 87.95 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009078/0.4345, allocations: 491.2 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/0.4349, allocations: 102.6 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.435, allocations: 44.83 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.4351, allocations: 3.984 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.4354, allocations: 91.31 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 2.285e-06/0.4354, allocations: 192 / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.000491/0.4359, allocations: 165.4 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.4359, allocations: 51.41 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.4362, allocations: 191 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.4362, allocations: 29.7 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.4363, allocations: 120.4 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.926e-05/0.4364, allocations: 31.73 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.877e-05/0.4365, allocations: 41.69 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002027/0.4367, allocations: 330.8 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.4368, allocations: 55.97 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.437, allocations: 85.23 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.4372, allocations: 128.2 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.4372, allocations: 0 / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004735/0.4377, allocations: 223.2 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.078e-05/0.4378, allocations: 39.27 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.4378, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.4378, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.4379, allocations: 19.92 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.4379, allocations: 4 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.4382, allocations: 43.84 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.4382, allocations: 12.06 kB / 1.333 GB, free: 10.55 MB / 1.029 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.0001619/0.4383, allocations: 129.8 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.017e-05/0.4384, allocations: 19.84 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.321e-05/0.4384, allocations: 17.41 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.4384, allocations: 0 / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.4384, allocations: 3.938 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4384, allocations: 0 / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.4387, allocations: 212.6 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4387, allocations: 4 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.826e-05/0.4388, allocations: 23.94 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.4388, allocations: 0 / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.4388, allocations: 7.984 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4388, allocations: 0 / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4388, allocations: 0 / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003047/0.4391, allocations: 144.9 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.4392, allocations: 23.84 kB / 1.333 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.844e-05/0.4392, allocations: 4 kB / 1.333 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.072e-05/0.4393, allocations: 11.98 kB / 1.333 GB, free: 9.875 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.4393, allocations: 11.92 kB / 1.333 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.4394, allocations: 7.984 kB / 1.333 GB, free: 9.855 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001524/0.4395, allocations: 136.3 kB / 1.334 GB, free: 9.723 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4395, allocations: 3.938 kB / 1.334 GB, free: 9.719 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002645/0.4398, allocations: 39.89 kB / 1.334 GB, free: 9.68 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: 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.0002135/0.44, allocations: 115.2 kB / 1.334 GB, free: 9.559 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004053/0.4404, allocations: 167.3 kB / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4404, allocations: 0 / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.4405, allocations: 35.98 kB / 1.334 GB, free: 9.348 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.4408, allocations: 25.08 kB / 1.334 GB, free: 9.324 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006726/0.4415, allocations: 280.8 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.4419, allocations: 0.7123 MB / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.103e-05/0.442, allocations: 13.08 kB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.06e-05/0.442, allocations: 23.38 kB / 1.335 GB, free: 8.254 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.442, allocations: 0 / 1.335 GB, free: 8.254 MB / 1.029 GB Notification: Performance of Templates: time 0.00644/0.4484, allocations: 2.2 MB / 1.337 GB, free: 6.082 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.770829941611737]