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.001334/0.001334, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.001447/0.001447, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.496/1.496, allocations: 230.6 MB / 252.8 MB, free: 9.137 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.353/3.353, allocations: 0.505 GB / 0.8066 GB, free: 23.12 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: "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller",fmuType="me",version="2.0",platforms={"static"}) [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.002053/0.002053, allocations: 68.34 kB / 1.172 GB, free: 17.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3894, allocations: 180.2 MB / 1.348 GB, free: 9.984 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller): time 0.002472/0.3918, allocations: 1.042 MB / 1.349 GB, free: 8.938 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002043/0.3939, allocations: 1.3 MB / 1.35 GB, free: 7.625 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.394, allocations: 0 / 1.35 GB, free: 7.625 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.3942, allocations: 23.73 kB / 1.35 GB, free: 7.602 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.266e-05/0.3942, allocations: 23.78 kB / 1.35 GB, free: 7.578 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006373/0.3949, allocations: 174.6 kB / 1.35 GB, free: 7.41 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.3953, allocations: 236 kB / 1.35 GB, free: 7.176 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.3955, allocations: 64.5 kB / 1.351 GB, free: 7.113 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.3957, allocations: 95.69 kB / 1.351 GB, free: 7.02 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.3959, allocations: 91.58 kB / 1.351 GB, free: 6.93 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.3959, allocations: 20 kB / 1.351 GB, free: 6.91 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.396, allocations: 39.98 kB / 1.351 GB, free: 6.871 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.473e-05/0.3961, allocations: 43.84 kB / 1.351 GB, free: 6.828 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.3962, allocations: 87.58 kB / 1.351 GB, free: 6.742 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000354/0.3965, allocations: 259.2 kB / 1.351 GB, free: 6.488 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3966, allocations: 8 kB / 1.351 GB, free: 6.48 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.476e-06/0.3966, allocations: 4 kB / 1.351 GB, free: 6.477 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.962e-06/0.3966, allocations: 0 / 1.351 GB, free: 6.477 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008029/0.3974, allocations: 496.3 kB / 1.352 GB, free: 5.938 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3974, allocations: 15.98 kB / 1.352 GB, free: 5.922 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.422e-05/0.3975, allocations: 46.73 kB / 1.352 GB, free: 5.867 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.3976, allocations: 28.8 kB / 1.352 GB, free: 5.84 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.3979, allocations: 238.5 kB / 1.352 GB, free: 5.57 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.3979, allocations: 12.38 kB / 1.352 GB, free: 5.559 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/0.398, allocations: 20.12 kB / 1.352 GB, free: 5.539 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.3982, allocations: 129.6 kB / 1.352 GB, free: 5.406 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3983, allocations: 0 / 1.352 GB, free: 5.406 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.3983, allocations: 4 kB / 1.352 GB, free: 5.402 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3983, allocations: 4 kB / 1.352 GB, free: 5.398 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.3985, allocations: 91.94 kB / 1.352 GB, free: 5.309 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008297/0.3993, allocations: 0.5157 MB / 1.353 GB, free: 4.742 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.3996, allocations: 94.67 kB / 1.353 GB, free: 4.641 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.3997, allocations: 40.84 kB / 1.353 GB, free: 4.598 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.3998, allocations: 12.05 kB / 1.353 GB, free: 4.586 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002772/0.4001, allocations: 99.3 kB / 1.353 GB, free: 4.477 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.4001, allocations: 0 / 1.353 GB, free: 4.477 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0004123/0.4005, allocations: 153.5 kB / 1.353 GB, free: 4.32 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.4005, allocations: 51.41 kB / 1.353 GB, free: 4.258 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.4007, allocations: 186.6 kB / 1.353 GB, free: 4.059 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.4007, allocations: 25.7 kB / 1.353 GB, free: 4.027 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.535e-05/0.4008, allocations: 132.3 kB / 1.353 GB, free: 3.895 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.4009, allocations: 31.73 kB / 1.353 GB, free: 3.863 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.96e-05/0.401, allocations: 41.64 kB / 1.354 GB, free: 3.816 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4011, allocations: 334.8 kB / 1.354 GB, free: 3.48 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.4012, allocations: 51.97 kB / 1.354 GB, free: 3.43 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.4014, allocations: 79.41 kB / 1.354 GB, free: 3.34 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.4016, allocations: 136.2 kB / 1.354 GB, free: 3.191 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4016, allocations: 0 / 1.354 GB, free: 3.191 MB / 1.045 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004382/0.4021, allocations: 221.4 kB / 1.354 GB, free: 2.965 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.4021, allocations: 33.7 kB / 1.354 GB, free: 2.926 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.4021, allocations: 4 kB / 1.354 GB, free: 2.922 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.4022, allocations: 4.062 kB / 1.354 GB, free: 2.918 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.711e-05/0.4022, allocations: 19.98 kB / 1.354 GB, free: 2.898 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4023, allocations: 0 / 1.354 GB, free: 2.898 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.4025, allocations: 43.84 kB / 1.354 GB, free: 2.855 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.4025, allocations: 11.94 kB / 1.354 GB, free: 2.844 MB / 1.045 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.0001531/0.4027, allocations: 129.8 kB / 1.355 GB, free: 2.707 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.4027, allocations: 15.91 kB / 1.355 GB, free: 2.691 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.03e-05/0.4027, allocations: 21.39 kB / 1.355 GB, free: 2.664 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4027, allocations: 4 kB / 1.355 GB, free: 2.66 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4028, allocations: 3.984 kB / 1.355 GB, free: 2.656 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4028, allocations: 0 / 1.355 GB, free: 2.656 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.403, allocations: 241.5 kB / 1.355 GB, free: 2.371 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.403, allocations: 0 / 1.355 GB, free: 2.371 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.222e-05/0.4031, allocations: 15.98 kB / 1.355 GB, free: 2.355 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.4031, allocations: 0 / 1.355 GB, free: 2.355 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.4031, allocations: 4 kB / 1.355 GB, free: 2.352 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.4031, allocations: 3.984 kB / 1.355 GB, free: 2.348 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.217e-06/0.4031, allocations: 11.94 kB / 1.355 GB, free: 2.336 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002657/0.4034, allocations: 149.4 kB / 1.355 GB, free: 2.172 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.257e-05/0.4034, allocations: 96.95 kB / 1.355 GB, free: 2.059 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.4035, allocations: 0 / 1.355 GB, free: 2.059 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.375e-05/0.4035, allocations: 7.984 kB / 1.355 GB, free: 2.051 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.4036, allocations: 15.98 kB / 1.355 GB, free: 2.035 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.4036, allocations: 4 kB / 1.355 GB, free: 2.031 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000121/0.4037, allocations: 152.4 kB / 1.355 GB, free: 1.883 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4037, allocations: 0 / 1.355 GB, free: 1.883 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002549/0.404, allocations: 35.95 kB / 1.355 GB, free: 1.848 MB / 1.045 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.0006339/0.4046, allocations: 0.6904 MB / 1.356 GB, free: 1.129 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000366/0.405, allocations: 171.3 kB / 1.356 GB, free: 0.9492 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.405, allocations: 0 / 1.356 GB, free: 0.9492 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.4051, allocations: 43.92 kB / 1.356 GB, free: 0.9062 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.4054, allocations: 33.88 kB / 1.356 GB, free: 0.875 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.4079, allocations: 1.921 MB / 1.358 GB, free: 14.85 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.4082, allocations: 0.7162 MB / 1.359 GB, free: 14.11 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.409e-05/0.4083, allocations: 17.08 kB / 1.359 GB, free: 14.09 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.97e-05/0.4084, allocations: 47.42 kB / 1.359 GB, free: 14.05 MB / 1.061 GB Notification: Performance of SimCode: time 4.11e-07/0.4084, allocations: 0 / 1.359 GB, free: 14.05 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.4351, allocations: 3.763 MB / 1.363 GB, free: 10.46 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.556, allocations: 5.562 kB / 1.363 GB, free: 10.46 MB / 1.061 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.pipe 2>&1) [Timeout 840.0] 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/jenkins1/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: 15.587710438063368]