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.0015/0.0015, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001718/0.001718, allocations: 213 kB / 22.25 MB, free: 5.117 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.637/1.637, allocations: 230.6 MB / 256 MB, free: 8.047 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.658/3.658, allocations: 0.5049 GB / 0.81 GB, free: 22 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.002029/0.002029, allocations: 63.78 kB / 1.177 GB, free: 16.94 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4585/0.4605, allocations: 180.2 MB / 1.353 GB, free: 7.93 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.004093/0.4646, allocations: 2.364 MB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001904/0.4665, allocations: 0.9234 MB / 1.357 GB, free: 4.629 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/0.4667, allocations: 11.88 kB / 1.357 GB, free: 4.617 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.4669, allocations: 55.41 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.467, allocations: 63.44 kB / 1.357 GB, free: 4.5 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.4681, allocations: 452.6 kB / 1.357 GB, free: 4.066 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0007238/0.4688, allocations: 0.6326 MB / 1.358 GB, free: 3.434 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003491/0.4692, allocations: 179.1 kB / 1.358 GB, free: 3.254 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002619/0.4695, allocations: 235.3 kB / 1.358 GB, free: 3.023 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002969/0.4697, allocations: 223.1 kB / 1.358 GB, free: 2.805 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.843e-05/0.4698, allocations: 68 kB / 1.358 GB, free: 2.738 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.47, allocations: 76 kB / 1.358 GB, free: 2.664 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.4701, allocations: 103.6 kB / 1.359 GB, free: 2.562 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.4703, allocations: 243 kB / 1.359 GB, free: 2.324 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0007831/0.4711, allocations: 0.7278 MB / 1.359 GB, free: 1.594 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.4711, allocations: 4 kB / 1.359 GB, free: 1.59 MB / 1.045 GB Notification: Performance of FrontEnd: time 8.82e-07/0.4711, allocations: 0 / 1.359 GB, free: 1.59 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.137e-05/0.4711, allocations: 4 kB / 1.359 GB, free: 1.586 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001037/0.4722, allocations: 0.6978 MB / 1.36 GB, free: 0.832 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.4722, allocations: 8.031 kB / 1.36 GB, free: 0.8242 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.4723, allocations: 52.66 kB / 1.36 GB, free: 0.7734 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005253/0.4728, allocations: 301.5 kB / 1.361 GB, free: 464 kB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.4729, allocations: 37.03 kB / 1.361 GB, free: 428 kB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.38e-05/0.4729, allocations: 40.38 kB / 1.361 GB, free: 388 kB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004383/0.4734, allocations: 274.6 kB / 1.361 GB, free: 104 kB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.4734, allocations: 8.062 kB / 1.361 GB, free: 96 kB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.4734, allocations: 19.92 kB / 1.361 GB, free: 76 kB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.4734, allocations: 8 kB / 1.361 GB, free: 68 kB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003496/0.4738, allocations: 190.5 kB / 1.361 GB, free: 15.88 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.4753, allocations: 0.9952 MB / 1.362 GB, free: 14.84 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005275/0.4758, allocations: 218.8 kB / 1.362 GB, free: 14.62 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.4761, allocations: 100.8 kB / 1.362 GB, free: 14.52 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.4761, allocations: 4 kB / 1.362 GB, free: 14.52 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.4764, allocations: 207 kB / 1.363 GB, free: 14.3 MB / 1.061 GB Notification: Performance of pre-optimization done (n=36): time 1.563e-06/0.4764, allocations: 4 kB / 1.363 GB, free: 14.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=36): time 0.000704/0.4771, allocations: 378.7 kB / 1.363 GB, free: 13.92 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.4772, allocations: 55.41 kB / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002975/0.4775, allocations: 269.7 kB / 1.363 GB, free: 13.58 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.4775, allocations: 41.7 kB / 1.363 GB, free: 13.54 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.4777, allocations: 192.9 kB / 1.363 GB, free: 13.34 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.325e-05/0.4778, allocations: 91.27 kB / 1.364 GB, free: 13.25 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.478, allocations: 110 kB / 1.364 GB, free: 13.14 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001969/0.4782, allocations: 346.8 kB / 1.364 GB, free: 12.79 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.4785, allocations: 160.7 kB / 1.364 GB, free: 12.63 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.4789, allocations: 237.8 kB / 1.364 GB, free: 12.38 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006176/0.4795, allocations: 376.5 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4795, allocations: 0 / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00102/0.4806, allocations: 0.5803 MB / 1.365 GB, free: 11.36 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.4807, allocations: 106.6 kB / 1.365 GB, free: 11.24 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.4807, allocations: 0 / 1.365 GB, free: 11.24 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.4807, allocations: 7.938 kB / 1.365 GB, free: 11.23 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.4808, allocations: 35.92 kB / 1.365 GB, free: 11.2 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.4809, allocations: 7.938 kB / 1.365 GB, free: 11.19 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005085/0.4814, allocations: 103.9 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-05/0.4814, allocations: 27.92 kB / 1.366 GB, free: 11.06 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.0002437/0.4817, allocations: 180.3 kB / 1.366 GB, free: 10.87 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.4817, allocations: 27.81 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005346/0.4822, allocations: 308.4 kB / 1.366 GB, free: 10.54 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.4822, allocations: 11.94 kB / 1.366 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4823, allocations: 3.938 kB / 1.366 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.4823, allocations: 7.984 kB / 1.366 GB, free: 10.51 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.4834, allocations: 0.7802 MB / 1.367 GB, free: 9.676 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4834, allocations: 0 / 1.367 GB, free: 9.676 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.45e-05/0.4835, allocations: 20.05 kB / 1.367 GB, free: 9.656 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.4835, allocations: 8 kB / 1.367 GB, free: 9.648 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.4836, allocations: 11.98 kB / 1.367 GB, free: 9.637 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.4836, allocations: 3.938 kB / 1.367 GB, free: 9.633 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.4836, allocations: 11.97 kB / 1.367 GB, free: 9.621 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005358/0.4841, allocations: 402 kB / 1.367 GB, free: 9.207 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.862e-05/0.4842, allocations: 55.78 kB / 1.367 GB, free: 9.152 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.4843, allocations: 11.94 kB / 1.367 GB, free: 9.141 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.4844, allocations: 11.98 kB / 1.367 GB, free: 9.129 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.673e-05/0.4845, allocations: 23.95 kB / 1.367 GB, free: 9.105 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.4845, allocations: 16 kB / 1.367 GB, free: 9.09 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001979/0.4847, allocations: 177.2 kB / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4847, allocations: 0 / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004286/0.4851, allocations: 103.8 kB / 1.368 GB, free: 8.812 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.0002362/0.4854, allocations: 136.8 kB / 1.368 GB, free: 8.672 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008349/0.4862, allocations: 0.4976 MB / 1.368 GB, free: 8.137 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4862, allocations: 0 / 1.368 GB, free: 8.137 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.4864, allocations: 115.8 kB / 1.368 GB, free: 8.023 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.4869, allocations: 73 kB / 1.368 GB, free: 7.953 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.4881, allocations: 0.5735 MB / 1.369 GB, free: 7.344 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004949/0.4886, allocations: 0.7878 MB / 1.37 GB, free: 6.527 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001207/0.4887, allocations: 38.95 kB / 1.37 GB, free: 6.488 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.884e-05/0.4888, allocations: 27.44 kB / 1.37 GB, free: 6.461 MB / 1.061 GB Notification: Performance of SimCode: time 4e-07/0.4888, allocations: 4 kB / 1.37 GB, free: 6.457 MB / 1.061 GB Notification: Performance of Templates: time 0.01132/0.5001, allocations: 5.192 MB / 1.375 GB, free: 1.348 MB / 1.061 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.446166743058711]