Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooVal.TOut|cooVal.TSupSet|cooVal.TSup|cooVal.uFanSta|cooVal.yCooVal|cooVal1.TOut|cooVal1.TSupSet|cooVal1.TSup|cooVal1.uFanSta|cooVal1.yCooVal|cooVal2.TOut|cooVal2.TSupSet|cooVal2.TSup|cooVal2.uFanSta|cooVal2.yCooVal|cooVal3.TOut|cooVal3.TSupSet|cooVal3.TSup|cooVal3.uFanSta|cooVal3.yCooVal|cooVal3.higLim.y|cooVal3.limPI.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve") translateModel(Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cooVal.TOut|cooVal.TSupSet|cooVal.TSup|cooVal.uFanSta|cooVal.yCooVal|cooVal1.TOut|cooVal1.TSupSet|cooVal1.TSup|cooVal1.uFanSta|cooVal1.yCooVal|cooVal2.TOut|cooVal2.TSupSet|cooVal2.TSup|cooVal2.uFanSta|cooVal2.yCooVal|cooVal3.TOut|cooVal3.TSupSet|cooVal3.TSup|cooVal3.uFanSta|cooVal3.yCooVal|cooVal3.higLim.y|cooVal3.limPI.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.234/2.234, allocations: 393.5 MB / 408.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 187.9 kB / 0.4902 GB, free: 2.258 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.663/1.663, allocations: 223.2 MB / 0.7992 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000865/0.0008653, allocations: 102 kB / 0.9396 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005563/0.0005563, allocations: 8.531 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3678, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2038/0.5717, allocations: 155.6 MB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.572, allocations: 83.94 kB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.06255/0.6346, allocations: 22.78 MB / 1.403 GB, free: 7.098 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.945e-06/0.6346, allocations: 0 / 1.403 GB, free: 7.098 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.000224/0.6349, allocations: 39.98 kB / 1.404 GB, free: 7.059 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 352 * Number of variables: 352 Notification: Performance of Generate backend data structure: time 0.005867/0.6408, allocations: 1.823 MB / 1.405 GB, free: 5.172 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.6408, allocations: 12.03 kB / 1.405 GB, free: 5.16 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009068/0.6418, allocations: 201.6 kB / 1.405 GB, free: 4.961 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003319/0.6451, allocations: 1.129 MB / 1.407 GB, free: 3.773 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.6453, allocations: 118.8 kB / 1.407 GB, free: 3.656 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004346/0.6457, allocations: 148 kB / 1.407 GB, free: 3.512 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003486/0.6492, allocations: 1.394 MB / 1.408 GB, free: 2.07 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.6493, allocations: 0 / 1.408 GB, free: 2.07 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.6494, allocations: 56 kB / 1.408 GB, free: 2.016 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.158e-05/0.6494, allocations: 36 kB / 1.408 GB, free: 1.98 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002324/0.6518, allocations: 1.089 MB / 1.409 GB, free: 0.8906 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007868/0.6596, allocations: 4.53 MB / 1.414 GB, free: 12.28 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.6617, allocations: 0.9371 MB / 1.415 GB, free: 11.31 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-05/0.6618, allocations: 12 kB / 1.415 GB, free: 11.3 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.6629, allocations: 0.5366 MB / 1.415 GB, free: 10.73 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=87): time 3.086e-06/0.6629, allocations: 0 / 1.415 GB, free: 10.73 MB / 0.9167 GB Notification: Performance of matching and sorting (n=87): time 0.002604/0.6655, allocations: 1.174 MB / 1.416 GB, free: 9.559 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/0.6657, allocations: 247.3 kB / 1.417 GB, free: 9.262 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.6672, allocations: 1.05 MB / 1.418 GB, free: 8.203 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001315/0.6673, allocations: 61.69 kB / 1.418 GB, free: 8.137 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006751/0.668, allocations: 0.7351 MB / 1.418 GB, free: 7.395 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/0.6682, allocations: 276.2 kB / 1.419 GB, free: 7.121 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.6683, allocations: 24 kB / 1.419 GB, free: 7.098 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001754/0.6685, allocations: 349.9 kB / 1.419 GB, free: 6.75 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008934/0.6694, allocations: 410.4 kB / 1.419 GB, free: 6.348 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.6705, allocations: 0.75 MB / 1.42 GB, free: 5.449 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009488/0.6715, allocations: 484.9 kB / 1.421 GB, free: 4.973 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.6715, allocations: 4 kB / 1.421 GB, free: 4.969 MB / 0.9167 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002398/0.6739, allocations: 1.28 MB / 1.422 GB, free: 3.68 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001294/0.6752, allocations: 2.893 MB / 1.425 GB, free: 0.6211 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.6752, allocations: 8 kB / 1.425 GB, free: 0.6133 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.12e-05/0.6753, allocations: 12 kB / 1.425 GB, free: 0.6016 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008424/0.6761, allocations: 239.6 kB / 1.425 GB, free: 376 kB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.108e-05/0.6762, allocations: 15.94 kB / 1.425 GB, free: 360 kB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.6772, allocations: 230.5 kB / 1.425 GB, free: 128 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.093e-05/0.6773, allocations: 51.98 kB / 1.425 GB, free: 76 kB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.6773, allocations: 4 kB / 1.425 GB, free: 72 kB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6535/1.331, allocations: 1.007 MB / 1.426 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.625e-05/1.331, allocations: 6.344 kB / 1.426 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.802e-05/1.331, allocations: 15.25 kB / 1.426 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008914/1.332, allocations: 209.3 kB / 1.426 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.759e-05/1.332, allocations: 18.3 kB / 1.426 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/1.333, allocations: 182.3 kB / 1.427 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/1.333, allocations: 52.8 kB / 1.427 GB, free: 175.5 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition4,$whenCondition5,$whenCondition6,cooVal.limPI.trigger,$PRE.cooVal.TOutThr.y,cooVal.TOutThr.y,$PRE.cooVal.uFanFeeThr.y,cooVal.uFanFeeThr.y,$PRE.cooVal.cha.u,cooVal.cha.u,$PRE.uSupFan.y,uSupFan.y,$whenCondition3,cooVal3.limPI.trigger,$PRE.cooVal3.TOutThr.y,cooVal3.TOutThr.y,$PRE.cooVal3.uFanFeeThr.y,cooVal3.uFanFeeThr.y,$PRE.cooVal3.cha.u,cooVal3.cha.u,$whenCondition2,cooVal1.limPI.trigger,$PRE.cooVal1.TOutThr.y,cooVal1.TOutThr.y,$PRE.cooVal1.uFanFeeThr.y,cooVal1.uFanFeeThr.y,$PRE.cooVal1.cha.u,cooVal1.cha.u,$whenCondition1,cooVal2.limPI.trigger,$PRE.cooVal2.TOutThr.y,cooVal2.TOutThr.y,$PRE.cooVal2.uFanFeeThr.y,cooVal2.uFanFeeThr.y,$PRE.cooVal2.cha.u,cooVal2.cha.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001063/1.334, allocations: 415.4 kB / 1.427 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004213/1.335, allocations: 145.2 kB / 1.427 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/1.337, allocations: 0.9367 MB / 1.428 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/1.337, allocations: 7.75 kB / 1.428 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/1.337, allocations: 6.938 kB / 1.428 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/1.337, allocations: 3.188 kB / 1.428 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004653/1.342, allocations: 2.528 MB / 1.431 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/1.342, allocations: 5.891 kB / 1.431 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000687/1.343, allocations: 162.3 kB / 1.431 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.344e-05/1.343, allocations: 7.453 kB / 1.431 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.034e-05/1.343, allocations: 22.45 kB / 1.431 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/1.343, allocations: 9.109 kB / 1.431 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.343, allocations: 4.516 kB / 1.431 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002839/1.346, allocations: 1.849 MB / 1.433 GB, free: 174 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003203/1.346, allocations: 232.1 kB / 1.433 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/1.346, allocations: 29.19 kB / 1.433 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007239/1.347, allocations: 87.75 kB / 1.433 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/1.347, allocations: 93.83 kB / 1.433 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-05/1.347, allocations: 39.64 kB / 1.433 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.001291/1.348, allocations: 0.7935 MB / 1.434 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.6e-07/1.348, allocations: 3.828 kB / 1.434 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001742/1.35, allocations: 477.8 kB / 1.434 GB, free: 173.7 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (cooVal2.limPI.I.y,cooVal1.limPI.I.y,cooVal3.limPI.I.y,cooVal.limPI.I.y) * Number of discrete variables: 23 (cooVal2.limPI.trigger,$whenCondition1,cooVal2.TOutThr.y,cooVal2.uFanFeeThr.y,cooVal2.cha.u,cooVal1.limPI.trigger,$whenCondition2,cooVal1.TOutThr.y,cooVal1.uFanFeeThr.y,cooVal1.cha.u,cooVal3.limPI.trigger,$whenCondition3,cooVal3.TOutThr.y,cooVal3.uFanFeeThr.y,cooVal3.cha.u,cooVal.limPI.trigger,$whenCondition6,$whenCondition4,$whenCondition5,cooVal.TOutThr.y,cooVal.uFanFeeThr.y,cooVal.cha.u,uSupFan.y) * Number of discrete states: 12 (cooVal.uFanFeeThr.y,cooVal.TOutThr.y,cooVal.cha.u,cooVal3.uFanFeeThr.y,cooVal3.TOutThr.y,cooVal3.cha.u,cooVal1.uFanFeeThr.y,cooVal1.TOutThr.y,cooVal1.cha.u,cooVal2.uFanFeeThr.y,cooVal2.TOutThr.y,cooVal2.cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003252/1.351, allocations: 168.8 kB / 1.434 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00373/1.354, allocations: 1.615 MB / 1.436 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 9.948e-06/1.354, allocations: 1.219 kB / 1.436 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001025/1.355, allocations: 428.9 kB / 1.436 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/1.357, allocations: 245.3 kB / 1.437 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005148/1.362, allocations: 2.777 MB / 1.439 GB, free: 172 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/1.363, allocations: 1.214 MB / 1.441 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001309/1.365, allocations: 212.8 kB / 1.441 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003394/1.365, allocations: 112.5 kB / 1.441 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of SimCode: time 8.42e-07/1.365, allocations: 1.891 kB / 1.441 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of Templates: time 0.03691/1.402, allocations: 13.1 MB / 1.454 GB, free: 170.5 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.makefile (rm -f Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe >> ../files/Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.sim & ./Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Plotters_Examples_BaseClasses_Validation_CoolingCoilValve.csv","../files/Buildings_latest_Buildings.Utilities.Plotters.Examples.BaseClasses.Validation.CoolingCoilValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches