Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001758/0.001758, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.002187/0.002187, allocations: 217.9 kB / 23.01 MB, free: 4.609 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.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 8.055 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.257/3.257, allocations: 0.49 GB / 0.7958 GB, free: 33.46 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.BaseClasses.Validation.TuningMonitor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|tunSta.y|tunEnd.y",fileNamePrefix="Buildings_12_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_12_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.002706/0.002706, allocations: 68.36 kB / 1.155 GB, free: 25.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3416, allocations: 176.1 MB / 1.327 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.003688/0.3453, allocations: 2.355 MB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.3469, allocations: 0.9428 MB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.3471, allocations: 15.88 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.3473, allocations: 47.41 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.3475, allocations: 63.44 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.3486, allocations: 465.5 kB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006834/0.3493, allocations: 0.6249 MB / 1.332 GB, free: 13 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003414/0.3496, allocations: 183.1 kB / 1.332 GB, free: 12.81 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.3499, allocations: 231.3 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002983/0.3502, allocations: 223.1 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.592e-05/0.3503, allocations: 68 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.3504, allocations: 79.98 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.435e-05/0.3505, allocations: 95.62 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.3507, allocations: 243 kB / 1.333 GB, free: 11.89 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0008136/0.3515, allocations: 0.7356 MB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3515, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3515, allocations: 3.938 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.3516, allocations: 0 / 1.333 GB, free: 11.15 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001179/0.3527, allocations: 0.7113 MB / 1.334 GB, free: 10.38 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3528, allocations: 8.031 kB / 1.334 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.3529, allocations: 52.66 kB / 1.334 GB, free: 10.32 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/0.3534, allocations: 301.5 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.3534, allocations: 33.02 kB / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.77e-05/0.3535, allocations: 44.38 kB / 1.334 GB, free: 9.926 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.354, allocations: 282.6 kB / 1.335 GB, free: 9.645 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.354, allocations: 192 / 1.335 GB, free: 9.645 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.354, allocations: 19.94 kB / 1.335 GB, free: 9.625 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.3541, allocations: 8 kB / 1.335 GB, free: 9.617 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003555/0.3544, allocations: 194.5 kB / 1.335 GB, free: 9.426 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.356, allocations: 0.9796 MB / 1.336 GB, free: 8.402 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004249/0.3564, allocations: 207.1 kB / 1.336 GB, free: 8.191 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.3566, allocations: 92.81 kB / 1.336 GB, free: 8.098 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.3566, allocations: 7.984 kB / 1.336 GB, free: 8.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/0.357, allocations: 201.4 kB / 1.336 GB, free: 7.879 MB / 1.029 GB Notification: Performance of pre-optimization done (n=33): time 1.433e-06/0.357, allocations: 4 kB / 1.336 GB, free: 7.875 MB / 1.029 GB Notification: Performance of matching and sorting (n=33): time 0.0006706/0.3576, allocations: 378.8 kB / 1.337 GB, free: 7.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.3577, allocations: 55.41 kB / 1.337 GB, free: 7.434 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.358, allocations: 273.7 kB / 1.337 GB, free: 7.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/0.358, allocations: 37.7 kB / 1.337 GB, free: 7.117 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.3582, allocations: 200.9 kB / 1.337 GB, free: 6.918 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.223e-05/0.3583, allocations: 83.33 kB / 1.337 GB, free: 6.836 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.3584, allocations: 102 kB / 1.337 GB, free: 6.727 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.3586, allocations: 350.8 kB / 1.338 GB, free: 6.375 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.3589, allocations: 148.6 kB / 1.338 GB, free: 6.227 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003563/0.3593, allocations: 232.7 kB / 1.338 GB, free: 5.973 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005189/0.3598, allocations: 377 kB / 1.339 GB, free: 5.559 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3598, allocations: 0 / 1.339 GB, free: 5.559 MB / 1.029 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009128/0.3607, allocations: 0.5611 MB / 1.339 GB, free: 4.973 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.092e-05/0.3608, allocations: 110.9 kB / 1.339 GB, free: 4.848 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3608, allocations: 0 / 1.339 GB, free: 4.848 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.3608, allocations: 7.938 kB / 1.339 GB, free: 4.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.3609, allocations: 35.86 kB / 1.339 GB, free: 4.805 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.3609, allocations: 7.984 kB / 1.339 GB, free: 4.797 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/0.3615, allocations: 99.94 kB / 1.339 GB, free: 4.699 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.656e-05/0.3615, allocations: 27.98 kB / 1.339 GB, free: 4.672 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition8,$whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,tunEnd.y,tunSta.y,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,tunMan.triEnd,tunMan.triSta,$whenCondition1,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 37 * 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.0002081/0.3617, allocations: 176.4 kB / 1.34 GB, free: 4.488 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.11e-05/0.3618, allocations: 27.81 kB / 1.34 GB, free: 4.461 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004923/0.3623, allocations: 304.4 kB / 1.34 GB, free: 4.156 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3623, allocations: 4 kB / 1.34 GB, free: 4.152 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3623, allocations: 0 / 1.34 GB, free: 4.152 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3623, allocations: 0 / 1.34 GB, free: 4.152 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.3634, allocations: 0.7449 MB / 1.341 GB, free: 3.359 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.3634, allocations: 4 kB / 1.341 GB, free: 3.355 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.756e-05/0.3635, allocations: 31.92 kB / 1.341 GB, free: 3.324 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3635, allocations: 0 / 1.341 GB, free: 3.324 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.3635, allocations: 11.98 kB / 1.341 GB, free: 3.312 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3635, allocations: 0 / 1.341 GB, free: 3.312 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3635, allocations: 0 / 1.341 GB, free: 3.312 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.364, allocations: 384.1 kB / 1.341 GB, free: 2.922 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.75e-05/0.3641, allocations: 51.72 kB / 1.341 GB, free: 2.871 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.3641, allocations: 8 kB / 1.341 GB, free: 2.863 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.3642, allocations: 15.98 kB / 1.341 GB, free: 2.848 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.688e-05/0.3643, allocations: 23.95 kB / 1.341 GB, free: 2.824 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.3643, allocations: 16 kB / 1.341 GB, free: 2.809 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001892/0.3645, allocations: 189.1 kB / 1.341 GB, free: 2.625 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3645, allocations: 0 / 1.341 GB, free: 2.625 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003968/0.3649, allocations: 103.7 kB / 1.341 GB, free: 2.523 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: 23 (tunMan.triEnd,tunMan.greThr1.y,tunMan.triSta,$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) * 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 (33): * Single equations (assignments): 27 * 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.0001717/0.3651, allocations: 123.5 kB / 1.341 GB, free: 2.395 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007243/0.3658, allocations: 497.8 kB / 1.342 GB, free: 1.871 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3658, allocations: 0 / 1.342 GB, free: 1.871 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.366, allocations: 112.5 kB / 1.342 GB, free: 1.762 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.3665, allocations: 69.44 kB / 1.342 GB, free: 1.695 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.3675, allocations: 0.5888 MB / 1.343 GB, free: 1.074 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.368, allocations: 0.7918 MB / 1.343 GB, free: 252 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.368, allocations: 27.44 kB / 1.343 GB, free: 228 kB / 1.029 GB Notification: Performance of SimCode: time 3.3e-07/0.368, allocations: 0 / 1.343 GB, free: 228 kB / 1.029 GB Notification: Performance of Templates: time 0.00765/0.3757, allocations: 4.684 MB / 1.348 GB, free: 11.58 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.sim & ./Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_TuningMonitor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.25622994598234]