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.001003/0.001003, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001216/0.001216, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9708/0.9708, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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 2.422/2.422, allocations: 438.8 MB / 0.6826 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 0 / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.373e-05/2.612e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor): time 0.002836/0.002862, allocations: 2.268 MB / 0.8408 GB, free: 11.92 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001425/0.004287, allocations: 0.9418 MB / 0.8417 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.004487, allocations: 11.94 kB / 0.8417 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.004658, allocations: 55.39 kB / 0.8418 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.004787, allocations: 75.38 kB / 0.8419 GB, free: 10.83 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007536/0.00554, allocations: 431 kB / 0.8423 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0005473/0.006087, allocations: 0.6324 MB / 0.8429 GB, free: 9.777 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.006357, allocations: 185.1 kB / 0.8431 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003092/0.006666, allocations: 339.4 kB / 0.8434 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.006853, allocations: 171.4 kB / 0.8436 GB, free: 9.09 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 5.909e-05/0.006912, allocations: 68 kB / 0.8436 GB, free: 9.023 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.007023, allocations: 79.98 kB / 0.8437 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.932e-05/0.007093, allocations: 91.66 kB / 0.8438 GB, free: 8.855 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.007224, allocations: 171.6 kB / 0.844 GB, free: 8.688 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0004614/0.007686, allocations: 442.6 kB / 0.8444 GB, free: 8.254 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.007689, allocations: 0 / 0.8444 GB, free: 8.254 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.864e-06/0.007691, allocations: 0 / 0.8444 GB, free: 8.254 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.007698, allocations: 0 / 0.8444 GB, free: 8.254 MB / 0.8073 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.0008389/0.008537, allocations: 0.657 MB / 0.845 GB, free: 7.551 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.008581, allocations: 8.625 kB / 0.845 GB, free: 7.543 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.951e-05/0.00867, allocations: 68.88 kB / 0.8451 GB, free: 7.477 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.009006, allocations: 244.5 kB / 0.8453 GB, free: 7.211 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.009043, allocations: 33.03 kB / 0.8454 GB, free: 7.18 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.877e-05/0.009091, allocations: 44.38 kB / 0.8454 GB, free: 7.137 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.009301, allocations: 203.2 kB / 0.8456 GB, free: 6.93 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.009312, allocations: 192 / 0.8456 GB, free: 6.93 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.009329, allocations: 16.36 kB / 0.8456 GB, free: 6.914 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.009339, allocations: 8.375 kB / 0.8456 GB, free: 6.906 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.565e-05/0.009425, allocations: 72.5 kB / 0.8457 GB, free: 6.836 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000725/0.01015, allocations: 0.5554 MB / 0.8462 GB, free: 6.266 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.01046, allocations: 146.4 kB / 0.8464 GB, free: 6.113 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.253e-05/0.01054, allocations: 64.81 kB / 0.8464 GB, free: 6.047 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.01056, allocations: 7.938 kB / 0.8464 GB, free: 6.039 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.01072, allocations: 168.6 kB / 0.8466 GB, free: 5.863 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=36): time 1.713e-06/0.01072, allocations: 0 / 0.8466 GB, free: 5.863 MB / 0.8073 GB Notification: Performance of matching and sorting (n=36): time 0.0002505/0.01097, allocations: 201.9 kB / 0.8468 GB, free: 5.66 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.01101, allocations: 63.34 kB / 0.8468 GB, free: 5.586 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.01114, allocations: 244.8 kB / 0.8471 GB, free: 5.332 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.01118, allocations: 37.7 kB / 0.8471 GB, free: 5.289 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.431e-05/0.01126, allocations: 181.3 kB / 0.8473 GB, free: 5.109 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.561e-05/0.01131, allocations: 91.3 kB / 0.8474 GB, free: 5.02 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.01142, allocations: 110 kB / 0.8475 GB, free: 4.902 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.0115, allocations: 350.7 kB / 0.8478 GB, free: 4.551 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.01163, allocations: 169.9 kB / 0.848 GB, free: 4.367 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.01178, allocations: 239.6 kB / 0.8482 GB, free: 4.094 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.01199, allocations: 292 kB / 0.8485 GB, free: 3.766 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01199, allocations: 0 / 0.8485 GB, free: 3.766 MB / 0.8073 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003533/0.01234, allocations: 479.4 kB / 0.8489 GB, free: 3.254 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.566e-05/0.0124, allocations: 105.1 kB / 0.849 GB, free: 3.133 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.0124, allocations: 4 kB / 0.849 GB, free: 3.129 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.01242, allocations: 4 kB / 0.8491 GB, free: 3.125 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.77e-05/0.01249, allocations: 27.92 kB / 0.8491 GB, free: 3.098 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.0125, allocations: 4 kB / 0.8491 GB, free: 3.094 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.01269, allocations: 87.94 kB / 0.8492 GB, free: 3.008 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/0.01271, allocations: 19.98 kB / 0.8492 GB, free: 2.988 MB / 0.8073 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.0001082/0.01282, allocations: 148.3 kB / 0.8493 GB, free: 2.832 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.01285, allocations: 31.97 kB / 0.8494 GB, free: 2.801 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.01304, allocations: 164.5 kB / 0.8495 GB, free: 2.633 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.01305, allocations: 4 kB / 0.8495 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-06/0.01305, allocations: 4 kB / 0.8495 GB, free: 2.625 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.01305, allocations: 0 / 0.8495 GB, free: 2.625 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004541/0.01351, allocations: 476.6 kB / 0.85 GB, free: 2.129 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.01351, allocations: 4 kB / 0.85 GB, free: 2.125 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-05/0.01356, allocations: 27.92 kB / 0.85 GB, free: 2.098 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.01357, allocations: 0 / 0.85 GB, free: 2.098 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.01358, allocations: 8 kB / 0.85 GB, free: 2.09 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.01358, allocations: 3.984 kB / 0.85 GB, free: 2.086 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.01358, allocations: 7.938 kB / 0.85 GB, free: 2.078 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001751/0.01376, allocations: 275.8 kB / 0.8503 GB, free: 1.785 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.01381, allocations: 31.75 kB / 0.8503 GB, free: 1.754 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.01383, allocations: 11.98 kB / 0.8503 GB, free: 1.742 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.011e-05/0.01389, allocations: 8 kB / 0.8503 GB, free: 1.734 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.01394, allocations: 32.17 kB / 0.8504 GB, free: 1.703 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.01396, allocations: 7.984 kB / 0.8504 GB, free: 1.695 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.944e-05/0.01402, allocations: 82.77 kB / 0.8505 GB, free: 1.613 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.01402, allocations: 0 / 0.8505 GB, free: 1.613 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002464/0.01427, allocations: 107.8 kB / 0.8506 GB, free: 1.508 MB / 0.8073 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.0001607/0.01443, allocations: 106.3 kB / 0.8507 GB, free: 1.398 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003564/0.01478, allocations: 496.9 kB / 0.8511 GB, free: 0.8516 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.01479, allocations: 0 / 0.8511 GB, free: 0.8516 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.373e-05/0.01487, allocations: 88.69 kB / 0.8512 GB, free: 0.7617 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.01514, allocations: 81.48 kB / 0.8513 GB, free: 0.6836 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007001/0.01584, allocations: 0.5377 MB / 0.8518 GB, free: 112 kB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.553e-05/0.01591, allocations: 101.4 kB / 0.8519 GB, free: 15.99 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 8.394e-05/0.016, allocations: 34.97 kB / 0.8519 GB, free: 15.96 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.01619, allocations: 135.3 kB / 0.8521 GB, free: 15.83 MB / 0.823 GB Notification: Performance of SimCode: time 8.81e-07/0.01619, allocations: 0 / 0.8521 GB, free: 15.83 MB / 0.823 GB Notification: Performance of Templates: time 0.008345/0.02454, allocations: 5.845 MB / 0.8578 GB, free: 10.15 MB / 0.823 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.512024869211018]