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.452/2.452, allocations: 390.3 MB / 402.8 MB, free: 6.746 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.001021/0.001021, allocations: 168.9 kB / 496.1 MB, free: 12.91 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 0.7915 GB, free: 5.457 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.0009178/0.0009179, allocations: 95.75 kB / 0.9318 GB, free: 5.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.243e-05/3.261e-05, allocations: 7.984 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2778, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.009/1.287, allocations: 155.5 MB / 1.371 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/1.287, allocations: 83.5 kB / 1.371 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.06172/1.349, allocations: 22.73 MB / 1.393 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.292e-06/1.349, allocations: 4 kB / 1.393 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.0001909/1.349, allocations: 39.98 kB / 1.393 GB, free: 11.28 MB / 0.8542 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.004555/1.354, allocations: 1.577 MB / 1.394 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/1.354, allocations: 16.03 kB / 1.395 GB, free: 9.734 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000946/1.355, allocations: 197.6 kB / 1.395 GB, free: 9.539 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/1.358, allocations: 1.134 MB / 1.396 GB, free: 8.586 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/1.358, allocations: 108.5 kB / 1.396 GB, free: 8.523 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/1.358, allocations: 151 kB / 1.396 GB, free: 8.422 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002955/1.361, allocations: 1.279 MB / 1.397 GB, free: 7.547 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/1.361, allocations: 7.984 kB / 1.397 GB, free: 7.539 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/1.362, allocations: 56.88 kB / 1.397 GB, free: 7.527 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.76e-05/1.362, allocations: 36 kB / 1.397 GB, free: 7.492 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001794/1.363, allocations: 0.8935 MB / 1.398 GB, free: 6.941 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009036/1.372, allocations: 4.518 MB / 1.403 GB, free: 3.57 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/1.374, allocations: 0.7463 MB / 1.403 GB, free: 3.043 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005536/1.374, allocations: 360.7 kB / 1.404 GB, free: 2.82 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 7.816e-05/1.375, allocations: 23.88 kB / 1.404 GB, free: 2.797 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008222/1.375, allocations: 455.3 kB / 1.404 GB, free: 2.457 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=87): time 4.809e-06/1.375, allocations: 0 / 1.404 GB, free: 2.457 MB / 0.8542 GB Notification: Performance of matching and sorting (n=87): time 0.001741/1.377, allocations: 0.6874 MB / 1.405 GB, free: 1.941 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002474/1.377, allocations: 255.2 kB / 1.405 GB, free: 1.637 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002488/1.38, allocations: 1.044 MB / 1.406 GB, free: 0.8555 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0002285/1.38, allocations: 63.08 kB / 1.406 GB, free: 0.8086 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009274/1.381, allocations: 0.7256 MB / 1.407 GB, free: 384 kB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.00042/1.382, allocations: 269.8 kB / 1.407 GB, free: 152 kB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/1.382, allocations: 27.69 kB / 1.407 GB, free: 144 kB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002491/1.382, allocations: 351.2 kB / 1.408 GB, free: 15.81 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000723/1.383, allocations: 316.7 kB / 1.408 GB, free: 15.62 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/1.384, allocations: 0.6527 MB / 1.408 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009366/1.385, allocations: 407 kB / 1.409 GB, free: 14.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.976e-05/1.385, allocations: 4 kB / 1.409 GB, free: 14.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002548/1.387, allocations: 1.087 MB / 1.41 GB, free: 13.87 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001645/1.389, allocations: 2.886 MB / 1.413 GB, free: 10.87 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/1.389, allocations: 8 kB / 1.413 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.495e-05/1.389, allocations: 16 kB / 1.413 GB, free: 10.85 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009649/1.39, allocations: 233.1 kB / 1.413 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.89e-05/1.39, allocations: 15.94 kB / 1.413 GB, free: 10.61 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/1.391, allocations: 227.7 kB / 1.413 GB, free: 10.41 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/1.392, allocations: 48.86 kB / 1.413 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/1.392, allocations: 8 kB / 1.413 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001736/1.393, allocations: 0.931 MB / 1.414 GB, free: 9.703 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/1.393, allocations: 11.98 kB / 1.414 GB, free: 9.691 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/1.393, allocations: 12 kB / 1.414 GB, free: 9.68 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007291/1.394, allocations: 198.5 kB / 1.414 GB, free: 9.492 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.877e-05/1.394, allocations: 19.94 kB / 1.414 GB, free: 9.473 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/1.395, allocations: 201.3 kB / 1.415 GB, free: 9.293 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/1.396, allocations: 48.62 kB / 1.415 GB, free: 9.258 MB / 0.8698 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 () * 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.0003997/1.396, allocations: 188.6 kB / 1.415 GB, free: 9.098 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004294/1.396, allocations: 142.2 kB / 1.415 GB, free: 8.957 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/1.398, allocations: 0.7643 MB / 1.416 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/1.398, allocations: 8 kB / 1.416 GB, free: 8.43 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/1.398, allocations: 7.938 kB / 1.416 GB, free: 8.422 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/1.398, allocations: 7.938 kB / 1.416 GB, free: 8.414 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004141/1.402, allocations: 2.355 MB / 1.418 GB, free: 5.984 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/1.403, allocations: 8.031 kB / 1.418 GB, free: 5.977 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000649/1.403, allocations: 159.8 kB / 1.418 GB, free: 5.82 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.571e-05/1.403, allocations: 11.94 kB / 1.418 GB, free: 5.809 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.305e-05/1.403, allocations: 23.98 kB / 1.418 GB, free: 5.785 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/1.403, allocations: 8 kB / 1.418 GB, free: 5.777 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.403, allocations: 4 kB / 1.418 GB, free: 5.773 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/1.405, allocations: 1.575 MB / 1.42 GB, free: 4.066 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003944/1.406, allocations: 227.2 kB / 1.42 GB, free: 3.824 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/1.406, allocations: 31.98 kB / 1.42 GB, free: 3.793 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000776/1.407, allocations: 87.92 kB / 1.42 GB, free: 3.707 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/1.407, allocations: 87.89 kB / 1.42 GB, free: 3.621 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-05/1.407, allocations: 39.97 kB / 1.42 GB, free: 3.582 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001297/1.408, allocations: 0.7837 MB / 1.421 GB, free: 2.797 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.41e-07/1.408, allocations: 0 / 1.421 GB, free: 2.797 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001853/1.41, allocations: 482.5 kB / 1.421 GB, free: 2.324 MB / 0.8698 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) * 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.0003342/1.411, allocations: 169.2 kB / 1.422 GB, free: 2.148 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002552/1.413, allocations: 1.441 MB / 1.423 GB, free: 0.6836 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/1.413, allocations: 0 / 1.423 GB, free: 0.6836 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005889/1.414, allocations: 344.2 kB / 1.423 GB, free: 360 kB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/1.415, allocations: 245.8 kB / 1.424 GB, free: 112 kB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/1.419, allocations: 1.767 MB / 1.425 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009274/1.42, allocations: 1.216 MB / 1.427 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001494/1.421, allocations: 275 kB / 1.427 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/1.422, allocations: 87.41 kB / 1.427 GB, free: 12.67 MB / 0.8855 GB Notification: Performance of SimCode: time 1.032e-06/1.422, allocations: 0 / 1.427 GB, free: 12.67 MB / 0.8855 GB Notification: Performance of Templates: time 0.033/1.455, allocations: 15.44 MB / 1.442 GB, free: 13.38 MB / 0.9011 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