Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001814/0.001814, 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.002173/0.002173, allocations: 224.7 kB / 22.29 MB, free: 5.285 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.624/1.624, allocations: 230.6 MB / 256.1 MB, free: 7.793 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.442/3.442, 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.BaseClasses.Validation.TuningMonitor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tOn.y|tOff.y|tunSta.y|tunEnd.y",fileNamePrefix="Buildings_latest_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_latest_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.002156/0.002156, allocations: 63.75 kB / 1.184 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5545/0.5566, 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.BaseClasses.Validation.TuningMonitor): time 0.007023/0.5637, allocations: 2.205 MB / 1.364 GB, free: 13.42 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003137/0.5668, allocations: 0.9 MB / 1.365 GB, free: 12.52 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.5671, allocations: 11.94 kB / 1.365 GB, free: 12.51 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.5674, allocations: 59.33 kB / 1.365 GB, free: 12.45 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000281/0.5677, allocations: 63.47 kB / 1.365 GB, free: 12.39 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.002258/0.57, allocations: 447.8 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001246/0.5712, allocations: 0.6249 MB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007451/0.572, allocations: 167.1 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.5724, allocations: 227.4 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.5728, allocations: 203 kB / 1.366 GB, free: 10.74 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.573, allocations: 68 kB / 1.366 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.5732, allocations: 87.97 kB / 1.366 GB, free: 10.59 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.5733, allocations: 87.77 kB / 1.366 GB, free: 10.5 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0003109/0.5736, allocations: 211.1 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.5749, allocations: 0.7317 MB / 1.367 GB, free: 9.562 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.5749, allocations: 0 / 1.367 GB, free: 9.562 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.094e-06/0.5749, allocations: 7.938 kB / 1.367 GB, free: 9.555 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.5749, allocations: 0 / 1.367 GB, free: 9.555 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001671/0.5766, allocations: 0.6939 MB / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.5766, allocations: 8.031 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.5768, allocations: 56.66 kB / 1.368 GB, free: 8.746 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009144/0.5777, allocations: 301.5 kB / 1.368 GB, free: 8.426 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.658e-05/0.5778, allocations: 37.02 kB / 1.368 GB, free: 8.391 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.5779, allocations: 40.38 kB / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/0.5786, allocations: 270.6 kB / 1.369 GB, free: 8.086 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.5786, allocations: 192 / 1.369 GB, free: 8.086 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.883e-05/0.5787, allocations: 19.94 kB / 1.369 GB, free: 8.066 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.5787, allocations: 8 kB / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005024/0.5792, allocations: 198.5 kB / 1.369 GB, free: 7.863 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.5812, allocations: 0.8047 MB / 1.37 GB, free: 7.027 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/0.5819, allocations: 221.7 kB / 1.37 GB, free: 6.805 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00033/0.5823, allocations: 108.8 kB / 1.37 GB, free: 6.695 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.523e-05/0.5823, allocations: 4 kB / 1.37 GB, free: 6.691 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004294/0.5827, allocations: 203.1 kB / 1.37 GB, free: 6.48 MB / 1.061 GB Notification: Performance of pre-optimization done (n=36): time 2.294e-06/0.5827, allocations: 0 / 1.37 GB, free: 6.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=36): time 0.0009566/0.5837, allocations: 387.3 kB / 1.371 GB, free: 6.098 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.5838, allocations: 63.34 kB / 1.371 GB, free: 6.023 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.5841, allocations: 261.8 kB / 1.371 GB, free: 5.762 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.789e-05/0.5842, allocations: 41.7 kB / 1.371 GB, free: 5.715 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.5844, allocations: 196.9 kB / 1.371 GB, free: 5.52 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.5846, allocations: 91.28 kB / 1.371 GB, free: 5.43 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.5848, allocations: 114 kB / 1.371 GB, free: 5.309 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.585, allocations: 338.8 kB / 1.372 GB, free: 4.969 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/0.5856, allocations: 261.8 kB / 1.372 GB, free: 4.695 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007775/0.5863, allocations: 331 kB / 1.372 GB, free: 4.328 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005584/0.5869, allocations: 380.5 kB / 1.373 GB, free: 3.914 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.5869, allocations: 0 / 1.373 GB, free: 3.914 MB / 1.061 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001065/0.588, allocations: 0.6787 MB / 1.373 GB, free: 3.191 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.136e-05/0.5881, allocations: 101.1 kB / 1.373 GB, free: 3.074 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.5881, allocations: 3.984 kB / 1.373 GB, free: 3.07 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.5881, allocations: 4 kB / 1.373 GB, free: 3.066 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.5882, allocations: 40.14 kB / 1.373 GB, free: 3.027 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.5882, allocations: 7.938 kB / 1.373 GB, free: 3.02 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.5887, allocations: 95.69 kB / 1.374 GB, free: 2.926 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.809e-05/0.5888, allocations: 23.98 kB / 1.374 GB, free: 2.902 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition2,$whenCondition3,tunEnd.y,$PRE.tunEnd.y,tunEnd.clr,tunEnd.u,tunSta.y,$PRE.tunSta.y,tunSta.clr,tunSta.u,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,$whenCondition1,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * 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.0002316/0.589, allocations: 184.4 kB / 1.374 GB, free: 2.711 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.478e-05/0.5891, allocations: 27.81 kB / 1.374 GB, free: 2.684 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005477/0.5896, allocations: 320.4 kB / 1.374 GB, free: 2.359 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.5896, allocations: 4 kB / 1.374 GB, free: 2.355 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.5896, allocations: 3.938 kB / 1.374 GB, free: 2.352 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5896, allocations: 0 / 1.374 GB, free: 2.352 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.5908, allocations: 0.6988 MB / 1.375 GB, free: 1.605 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5908, allocations: 4.062 kB / 1.375 GB, free: 1.602 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.939e-05/0.5909, allocations: 31.92 kB / 1.375 GB, free: 1.57 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.5909, allocations: 0 / 1.375 GB, free: 1.57 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.5909, allocations: 8 kB / 1.375 GB, free: 1.562 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5909, allocations: 0 / 1.375 GB, free: 1.562 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5909, allocations: 7.938 kB / 1.375 GB, free: 1.555 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005225/0.5914, allocations: 401.7 kB / 1.375 GB, free: 1.141 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.5915, allocations: 47.72 kB / 1.375 GB, free: 1.094 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.5916, allocations: 11.98 kB / 1.375 GB, free: 1.082 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.5917, allocations: 8 kB / 1.375 GB, free: 1.074 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.98e-05/0.5918, allocations: 43.88 kB / 1.375 GB, free: 1.031 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.5918, allocations: 8 kB / 1.375 GB, free: 1.023 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002934/0.5921, allocations: 177.2 kB / 1.375 GB, free: 0.8516 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.5921, allocations: 0 / 1.375 GB, free: 0.8516 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004302/0.5926, allocations: 103.8 kB / 1.376 GB, free: 0.75 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 26 (tunEnd.u,tunMan.greThr1.y,tunSta.u,$whenCondition11,$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,tunSta.clr,tunEnd.clr) * 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 (36): * Single equations (assignments): 30 * 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.0002441/0.5928, allocations: 132.8 kB / 1.376 GB, free: 0.6133 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001016/0.5938, allocations: 0.5925 MB / 1.376 GB, free: 15.96 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5938, allocations: 0 / 1.376 GB, free: 15.96 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.5941, allocations: 119.7 kB / 1.376 GB, free: 15.85 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005282/0.5946, allocations: 78.56 kB / 1.376 GB, free: 15.77 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.5958, allocations: 0.569 MB / 1.377 GB, free: 15.17 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.596, allocations: 187.1 kB / 1.377 GB, free: 14.97 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001266/0.5962, allocations: 42.91 kB / 1.377 GB, free: 14.93 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.963e-05/0.5962, allocations: 27.42 kB / 1.377 GB, free: 14.9 MB / 1.076 GB Notification: Performance of SimCode: time 4.01e-07/0.5962, allocations: 4 kB / 1.377 GB, free: 14.9 MB / 1.076 GB Notification: Performance of Templates: time 0.01245/0.6087, allocations: 5.695 MB / 1.383 GB, free: 9.336 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_BaseClasses_Validation_TuningMonitor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.186300165951252]