Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.y1|sta.y1_actual|sta.fil.y|sta.yLim",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 108.5 kB / 16.41 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241 MB, free: 14.94 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.579/2.579, allocations: 461.9 MB / 0.7354 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 67.88 kB / 1.055 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8287/0.8301, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003112/0.8332, allocations: 1.766 MB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001461/0.8347, allocations: 0.8376 MB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.8349, allocations: 4 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.835, allocations: 15.81 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.8353, allocations: 43.72 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005072/0.8359, allocations: 154.9 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003282/0.8362, allocations: 219.6 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.8364, allocations: 37.39 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.8366, allocations: 87.69 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.8368, allocations: 83.66 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.878e-05/0.8368, allocations: 16 kB / 1.212 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.824e-05/0.8369, allocations: 35.98 kB / 1.212 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.24e-05/0.837, allocations: 31.91 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.8371, allocations: 71.66 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.8374, allocations: 207.1 kB / 1.212 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.8374, allocations: 0 / 1.212 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8375, allocations: 0 / 1.212 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.215e-05/0.8375, allocations: 0 / 1.212 GB, free: 9.977 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009146/0.8384, allocations: 482.4 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.8384, allocations: 12.03 kB / 1.212 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.307e-05/0.8385, allocations: 16.75 kB / 1.212 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.8389, allocations: 240.7 kB / 1.213 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.8389, allocations: 8.359 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.597e-05/0.839, allocations: 16.31 kB / 1.213 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.8392, allocations: 81.98 kB / 1.213 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.8392, allocations: 7.984 kB / 1.213 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.8392, allocations: 0 / 1.213 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.91e-05/0.8392, allocations: 8 kB / 1.213 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.8394, allocations: 55.97 kB / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006783/0.8401, allocations: 440.4 kB / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.8403, allocations: 90.5 kB / 1.213 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.564e-05/0.8403, allocations: 36.89 kB / 1.213 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.8403, allocations: 0 / 1.213 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001511/0.8405, allocations: 83.36 kB / 1.213 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.8405, allocations: 0 / 1.213 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0003015/0.8408, allocations: 141.7 kB / 1.214 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.8409, allocations: 51.41 kB / 1.214 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.8411, allocations: 179.3 kB / 1.214 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.8411, allocations: 33.72 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.454e-05/0.8412, allocations: 116 kB / 1.214 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.142e-05/0.8412, allocations: 31.69 kB / 1.214 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.719e-05/0.8413, allocations: 37.7 kB / 1.214 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.8414, allocations: 322.8 kB / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.8415, allocations: 55.97 kB / 1.214 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.8417, allocations: 70.55 kB / 1.214 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.8419, allocations: 136.2 kB / 1.215 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.8419, allocations: 0 / 1.215 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003368/0.8422, allocations: 207.1 kB / 1.215 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.8423, allocations: 41.69 kB / 1.215 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.8423, allocations: 0 / 1.215 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.8423, allocations: 0 / 1.215 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.8425, allocations: 23.98 kB / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.8425, allocations: 8 kB / 1.215 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.8427, allocations: 39.8 kB / 1.215 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.8427, allocations: 16 kB / 1.215 GB, free: 6.68 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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.0001112/0.8429, allocations: 125.8 kB / 1.215 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.8429, allocations: 11.91 kB / 1.215 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.137e-05/0.8429, allocations: 17.39 kB / 1.215 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.8429, allocations: 8 kB / 1.215 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.843, allocations: 3.938 kB / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.843, allocations: 0 / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.8432, allocations: 229.6 kB / 1.215 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.8432, allocations: 0 / 1.215 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.879e-05/0.8432, allocations: 12 kB / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.8433, allocations: 0 / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.8433, allocations: 4 kB / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.8433, allocations: 0 / 1.215 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.8433, allocations: 3.938 kB / 1.215 GB, free: 6.207 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.8436, allocations: 164.9 kB / 1.215 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.988e-05/0.8436, allocations: 100.9 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.8437, allocations: 7.984 kB / 1.216 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.8438, allocations: 4.188 kB / 1.216 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.819e-05/0.8438, allocations: 15.86 kB / 1.216 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.8438, allocations: 3.938 kB / 1.216 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001383/0.844, allocations: 131.9 kB / 1.216 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.844, allocations: 0 / 1.216 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002459/0.8442, allocations: 40 kB / 1.216 GB, free: 5.711 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001502/0.8444, allocations: 107.2 kB / 1.216 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003082/0.8447, allocations: 171.3 kB / 1.216 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.8447, allocations: 0 / 1.216 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.229e-05/0.8448, allocations: 43.92 kB / 1.216 GB, free: 5.375 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.8451, allocations: 27.48 kB / 1.216 GB, free: 5.352 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00053/0.8456, allocations: 315.1 kB / 1.216 GB, free: 5.016 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.8459, allocations: 0.7158 MB / 1.217 GB, free: 4.273 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.846, allocations: 15.44 kB / 1.217 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.846, allocations: 0 / 1.217 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of Templates: time 0.003872/0.8498, allocations: 1.944 MB / 1.219 GB, free: 2.324 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches