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.001699/0.001699, allocations: 111.7 kB / 17.13 MB, free: 5.926 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.00204/0.00204, allocations: 204 kB / 20.09 MB, free: 2.977 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.48/1.48, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.97/2.97, allocations: 0.49 GB / 0.7923 GB, free: 1.289 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.002069/0.002069, allocations: 63.91 kB / 1.15 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9463/0.9483, allocations: 176.1 MB / 1.322 GB, free: 25.19 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.003337/0.9517, allocations: 2.366 MB / 1.324 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001435/0.9531, allocations: 0.9302 MB / 1.325 GB, free: 22.84 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001848/0.9533, allocations: 12.47 kB / 1.325 GB, free: 22.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.9535, allocations: 56.31 kB / 1.325 GB, free: 22.79 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.9536, allocations: 59.86 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009631/0.9546, allocations: 447.9 kB / 1.326 GB, free: 22.5 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005185/0.9551, allocations: 0.6278 MB / 1.326 GB, free: 22.19 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.9554, allocations: 178.2 kB / 1.327 GB, free: 22.08 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.9556, allocations: 226.4 kB / 1.327 GB, free: 21.96 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.9559, allocations: 238.1 kB / 1.327 GB, free: 21.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001345/0.956, allocations: 66.03 kB / 1.327 GB, free: 21.84 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.9562, allocations: 80.92 kB / 1.327 GB, free: 21.83 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/0.9563, allocations: 87.81 kB / 1.327 GB, free: 21.77 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002309/0.9565, allocations: 248.7 kB / 1.327 GB, free: 21.61 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007965/0.9573, allocations: 0.7328 MB / 1.328 GB, free: 21.34 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.9573, allocations: 5.062 kB / 1.328 GB, free: 21.34 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.052e-06/0.9573, allocations: 0 / 1.328 GB, free: 21.34 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.194e-06/0.9573, allocations: 4 kB / 1.328 GB, free: 21.33 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.001047/0.9584, allocations: 0.7754 MB / 1.329 GB, free: 20.68 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.9584, allocations: 9.828 kB / 1.329 GB, free: 20.68 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.9585, allocations: 53.12 kB / 1.329 GB, free: 20.65 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.959, allocations: 361 kB / 1.329 GB, free: 20.36 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.415e-05/0.9591, allocations: 37.03 kB / 1.329 GB, free: 20.34 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-05/0.9592, allocations: 43.03 kB / 1.329 GB, free: 20.33 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005222/0.9597, allocations: 279.9 kB / 1.33 GB, free: 20.21 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.9597, allocations: 192 / 1.33 GB, free: 20.21 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.9597, allocations: 17.28 kB / 1.33 GB, free: 20.2 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.9597, allocations: 7.344 kB / 1.33 GB, free: 20.2 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003804/0.9601, allocations: 201.7 kB / 1.33 GB, free: 20.12 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.9617, allocations: 1.017 MB / 1.331 GB, free: 19.52 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004241/0.9621, allocations: 211.2 kB / 1.331 GB, free: 19.41 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.9623, allocations: 98.72 kB / 1.331 GB, free: 19.37 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.9623, allocations: 3.438 kB / 1.331 GB, free: 19.37 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.9627, allocations: 198.9 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of pre-optimization done (n=33): time 1.383e-06/0.9627, allocations: 0 / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=33): time 0.0006998/0.9634, allocations: 379.3 kB / 1.332 GB, free: 19.11 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.9634, allocations: 65.86 kB / 1.332 GB, free: 19.04 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.9637, allocations: 269.8 kB / 1.332 GB, free: 18.88 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/0.9637, allocations: 42.28 kB / 1.332 GB, free: 18.84 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.9639, allocations: 198.1 kB / 1.332 GB, free: 18.68 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.593e-05/0.9639, allocations: 84.14 kB / 1.332 GB, free: 18.62 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.9641, allocations: 105.2 kB / 1.332 GB, free: 18.57 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 8.454e-05/0.9642, allocations: 339.8 kB / 1.333 GB, free: 18.25 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.9645, allocations: 165.5 kB / 1.333 GB, free: 18.18 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003538/0.9649, allocations: 220.4 kB / 1.333 GB, free: 18.04 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/0.9653, allocations: 362.9 kB / 1.333 GB, free: 17.77 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.9653, allocations: 0 / 1.333 GB, free: 17.77 MB / 1.061 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009601/0.9663, allocations: 0.5667 MB / 1.334 GB, free: 17.47 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.476e-05/0.9663, allocations: 107.3 kB / 1.334 GB, free: 17.36 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.9663, allocations: 2.812 kB / 1.334 GB, free: 17.36 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.9664, allocations: 7.281 kB / 1.334 GB, free: 17.36 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.9665, allocations: 32.89 kB / 1.334 GB, free: 17.35 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.9665, allocations: 4.938 kB / 1.334 GB, free: 17.35 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005897/0.9671, allocations: 106.1 kB / 1.334 GB, free: 17.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.857e-05/0.9671, allocations: 22.62 kB / 1.334 GB, free: 17.32 MB / 1.061 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.0002001/0.9673, allocations: 170.4 kB / 1.334 GB, free: 17.18 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.439e-05/0.9674, allocations: 34.58 kB / 1.334 GB, free: 17.16 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006047/0.968, allocations: 308.6 kB / 1.335 GB, free: 17.01 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.968, allocations: 3.688 kB / 1.335 GB, free: 17.01 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.968, allocations: 0.5 kB / 1.335 GB, free: 17.01 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.968, allocations: 2.234 kB / 1.335 GB, free: 17.01 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/0.9693, allocations: 0.771 MB / 1.336 GB, free: 16.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.9693, allocations: 0.5 kB / 1.336 GB, free: 16.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.9694, allocations: 18.78 kB / 1.336 GB, free: 16.52 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.9694, allocations: 2.25 kB / 1.336 GB, free: 16.52 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.9695, allocations: 12.94 kB / 1.336 GB, free: 16.51 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.9695, allocations: 5.031 kB / 1.336 GB, free: 16.51 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.9695, allocations: 5.125 kB / 1.336 GB, free: 16.5 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004542/0.9699, allocations: 394.3 kB / 1.336 GB, free: 16.27 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.563e-05/0.97, allocations: 123.1 kB / 1.336 GB, free: 16.15 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.207e-05/0.9701, allocations: 8.547 kB / 1.336 GB, free: 16.14 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.9702, allocations: 11.34 kB / 1.336 GB, free: 16.14 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.233e-05/0.9703, allocations: 32.22 kB / 1.336 GB, free: 16.13 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.9703, allocations: 10.23 kB / 1.336 GB, free: 16.13 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001701/0.9705, allocations: 184.3 kB / 1.336 GB, free: 16.01 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9705, allocations: 0 / 1.336 GB, free: 16.01 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004629/0.9709, allocations: 104.9 kB / 1.336 GB, free: 15.98 MB / 1.061 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.0001709/0.9711, allocations: 129.7 kB / 1.337 GB, free: 15.88 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006976/0.9718, allocations: 494.3 kB / 1.337 GB, free: 15.57 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.9718, allocations: 1.375 kB / 1.337 GB, free: 15.57 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.972, allocations: 116 kB / 1.337 GB, free: 15.53 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.9725, allocations: 73.7 kB / 1.337 GB, free: 15.5 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000978/0.9735, allocations: 0.5844 MB / 1.338 GB, free: 15.12 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.9737, allocations: 0.7866 MB / 1.339 GB, free: 14.41 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.231e-05/0.9738, allocations: 33.77 kB / 1.339 GB, free: 14.41 MB / 1.061 GB Notification: Performance of SimCode: time 4.11e-07/0.9738, allocations: 0 / 1.339 GB, free: 14.41 MB / 1.061 GB Notification: Performance of Templates: time 0.009973/0.9838, allocations: 4.68 MB / 1.343 GB, free: 13.9 MB / 1.061 GB " [Timeout remaining time 299] 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.819273435001378]