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.001345/0.001345, allocations: 104.3 kB / 19.7 MB, free: 2.008 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.00152/0.00152, allocations: 210.6 kB / 22.99 MB, free: 4.41 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.168/3.168, allocations: 0.49 GB / 0.7959 GB, free: 35.54 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.002001/0.002001, allocations: 70.7 kB / 1.155 GB, free: 25.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3136, allocations: 176.1 MB / 1.327 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller): time 0.002367/0.316, allocations: 0.9615 MB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.3178, allocations: 1.276 MB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.926e-05/0.3179, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.318, allocations: 23.73 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.385e-05/0.3181, allocations: 23.78 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005576/0.3187, allocations: 178.3 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002964/0.319, allocations: 236 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.3191, allocations: 60.91 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.3193, allocations: 99.69 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.3195, allocations: 91.59 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.879e-05/0.3195, allocations: 23.98 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.255e-05/0.3196, allocations: 39.94 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.153e-05/0.3197, allocations: 35.91 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.785e-05/0.3198, allocations: 83.59 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.3201, allocations: 263 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3201, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3201, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.3201, allocations: 0 / 1.33 GB, free: 13.48 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.0007606/0.3209, allocations: 423.2 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.3209, allocations: 11.97 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.3211, allocations: 32.78 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.3214, allocations: 164.3 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3214, allocations: 16.38 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.385e-05/0.3214, allocations: 24.36 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.3217, allocations: 142 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3217, allocations: 0 / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.3217, allocations: 7.984 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.3217, allocations: 4 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.3219, allocations: 79.97 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007029/0.3226, allocations: 411.9 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.3229, allocations: 98.55 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.323, allocations: 40.97 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.323, allocations: 4 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.3233, allocations: 95.48 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.3233, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.000402/0.3237, allocations: 153.5 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.3238, allocations: 55.41 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.3239, allocations: 160.7 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.3239, allocations: 29.7 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.324, allocations: 132.3 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.3241, allocations: 31.8 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.525e-05/0.3242, allocations: 37.7 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3243, allocations: 326.8 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.3245, allocations: 89.66 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.3247, allocations: 142.7 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/0.3249, allocations: 135.8 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3249, allocations: 0 / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004444/0.3254, allocations: 248.9 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.3254, allocations: 37.69 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3254, allocations: 7.938 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3254, allocations: 3.938 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.497e-05/0.3255, allocations: 12 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3255, allocations: 3.984 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.3258, allocations: 43.97 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.071e-05/0.3258, allocations: 7.984 kB / 1.333 GB, free: 10.09 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.0001319/0.3259, allocations: 129.8 kB / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.326, allocations: 11.91 kB / 1.334 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.425e-05/0.326, allocations: 20.66 kB / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.326, allocations: 0 / 1.334 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.326, allocations: 3.984 kB / 1.334 GB, free: 9.91 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.326, allocations: 4 kB / 1.334 GB, free: 9.906 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.3262, allocations: 161.2 kB / 1.334 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3262, allocations: 0 / 1.334 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.55e-05/0.3263, allocations: 19.98 kB / 1.334 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3263, allocations: 0 / 1.334 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.3263, allocations: 4 kB / 1.334 GB, free: 9.695 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3263, allocations: 0 / 1.334 GB, free: 9.695 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3263, allocations: 0 / 1.334 GB, free: 9.695 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002872/0.3266, allocations: 152.9 kB / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.392e-05/0.3266, allocations: 15.83 kB / 1.334 GB, free: 9.512 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.3266, allocations: 7.984 kB / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.135e-05/0.3267, allocations: 8 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.3268, allocations: 15.97 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.3268, allocations: 7.984 kB / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.085e-05/0.3269, allocations: 116.7 kB / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3269, allocations: 0 / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002546/0.3271, allocations: 35.89 kB / 1.334 GB, free: 9.324 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.0001634/0.3273, allocations: 107.2 kB / 1.334 GB, free: 9.211 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000407/0.3277, allocations: 205 kB / 1.334 GB, free: 8.992 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3277, allocations: 0 / 1.334 GB, free: 8.992 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3278, allocations: 39.92 kB / 1.334 GB, free: 8.953 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.3281, allocations: 31.91 kB / 1.334 GB, free: 8.922 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005741/0.3287, allocations: 302.6 kB / 1.335 GB, free: 8.594 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.865e-05/0.3288, allocations: 102.9 kB / 1.335 GB, free: 8.473 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.39e-05/0.3288, allocations: 27.36 kB / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3288, allocations: 0 / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of Templates: time 0.004254/0.3331, allocations: 2.001 MB / 1.337 GB, free: 6.457 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/jenkins1/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: 11.006387464993168]