Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.266/2.266, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001203/0.001203, allocations: 176 kB / 0.4902 GB, free: 2.25 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.588/1.588, allocations: 223.2 MB / 0.7992 GB, free: 14.61 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.001139/0.001139, allocations: 98.06 kB / 0.9396 GB, free: 1.824 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 10.22 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3437, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.362/1.706, allocations: 421.9 MB / 1.641 GB, free: 8.016 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003616/1.706, allocations: 102.7 kB / 1.641 GB, free: 7.957 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.814/3.52, allocations: 424.1 MB / 2.055 GB, free: 274.6 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.174e-06/3.52, allocations: 0 / 2.055 GB, free: 274.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003391/3.521, allocations: 51.92 kB / 2.055 GB, free: 274.5 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.008004/3.529, allocations: 2.243 MB / 2.058 GB, free: 272.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/3.529, allocations: 12.83 kB / 2.058 GB, free: 272.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/3.53, allocations: 221.5 kB / 2.058 GB, free: 272 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005649/3.536, allocations: 2.131 MB / 2.06 GB, free: 269.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/3.536, allocations: 114.7 kB / 2.06 GB, free: 269.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006002/3.537, allocations: 152.7 kB / 2.06 GB, free: 269.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004052/3.541, allocations: 1.882 MB / 2.062 GB, free: 267.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.415e-05/3.541, allocations: 7.891 kB / 2.062 GB, free: 267.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/3.541, allocations: 60 kB / 2.062 GB, free: 267.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.656e-05/3.541, allocations: 39.98 kB / 2.062 GB, free: 267.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/3.544, allocations: 1.696 MB / 2.064 GB, free: 265.8 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/3.554, allocations: 7.538 MB / 2.071 GB, free: 257.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/3.556, allocations: 1.33 MB / 2.073 GB, free: 256.6 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005573/3.561, allocations: 3.757 MB / 2.076 GB, free: 252.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/3.561, allocations: 43.56 kB / 2.076 GB, free: 252.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=86): time 2.705e-06/3.561, allocations: 0 / 2.076 GB, free: 252.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=86): time 0.002065/3.563, allocations: 1.459 MB / 2.078 GB, free: 251 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/3.563, allocations: 64.41 kB / 2.078 GB, free: 250.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/3.565, allocations: 1.521 MB / 2.079 GB, free: 249.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.419e-05/3.566, allocations: 53.7 kB / 2.079 GB, free: 249.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004975/3.566, allocations: 0.7691 MB / 2.08 GB, free: 248.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/3.566, allocations: 307.6 kB / 2.08 GB, free: 248.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.724e-05/3.566, allocations: 31.94 kB / 2.08 GB, free: 248.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001096/3.566, allocations: 365.9 kB / 2.081 GB, free: 247.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007916/3.567, allocations: 0.6675 MB / 2.081 GB, free: 247.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009603/3.568, allocations: 1.022 MB / 2.082 GB, free: 246.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009907/3.569, allocations: 0.8611 MB / 2.083 GB, free: 245.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/3.569, allocations: 4 kB / 2.083 GB, free: 245.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002491/3.572, allocations: 1.92 MB / 2.085 GB, free: 243.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007487/3.573, allocations: 3.525 MB / 2.088 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/3.573, allocations: 8 kB / 2.088 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.426e-05/3.573, allocations: 24 kB / 2.089 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/3.574, allocations: 343.5 kB / 2.089 GB, free: 239.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/3.574, allocations: 27.88 kB / 2.089 GB, free: 239.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/3.575, allocations: 229.9 kB / 2.089 GB, free: 238.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/3.575, allocations: 63.98 kB / 2.089 GB, free: 238.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/3.575, allocations: 4.625 kB / 2.089 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002065/3.578, allocations: 1.776 MB / 2.091 GB, free: 237 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/3.578, allocations: 8 kB / 2.091 GB, free: 237 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/3.578, allocations: 16 kB / 2.091 GB, free: 237 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/3.579, allocations: 347.5 kB / 2.091 GB, free: 236.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.248e-05/3.579, allocations: 23.98 kB / 2.091 GB, free: 236.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/3.58, allocations: 186.8 kB / 2.091 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/3.581, allocations: 63.98 kB / 2.091 GB, free: 236.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * 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.001857/3.582, allocations: 0.758 MB / 2.092 GB, free: 235.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004863/3.583, allocations: 154.1 kB / 2.092 GB, free: 235.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/3.585, allocations: 1.212 MB / 2.094 GB, free: 234.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/3.585, allocations: 11.98 kB / 2.094 GB, free: 234.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/3.585, allocations: 4 kB / 2.094 GB, free: 234.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001288/3.586, allocations: 1.253 MB / 2.095 GB, free: 232.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004935/3.591, allocations: 2.888 MB / 2.098 GB, free: 229.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/3.591, allocations: 0 / 2.098 GB, free: 229.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008405/3.592, allocations: 179.8 kB / 2.098 GB, free: 229.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.286e-05/3.592, allocations: 4 kB / 2.098 GB, free: 229.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.804e-05/3.592, allocations: 28.08 kB / 2.098 GB, free: 229.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/3.592, allocations: 4 kB / 2.098 GB, free: 229.7 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/3.592, allocations: 3.938 kB / 2.098 GB, free: 229.7 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/3.595, allocations: 1.917 MB / 2.1 GB, free: 227.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/3.596, allocations: 422.8 kB / 2.1 GB, free: 227.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002234/3.596, allocations: 31.88 kB / 2.1 GB, free: 227.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008737/3.597, allocations: 71.78 kB / 2.1 GB, free: 227.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.091e-05/3.597, allocations: 52.86 kB / 2.1 GB, free: 227.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.392e-05/3.597, allocations: 35.98 kB / 2.1 GB, free: 227.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001945/3.599, allocations: 1.261 MB / 2.102 GB, free: 225.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 8.52e-07/3.599, allocations: 0 / 2.102 GB, free: 225.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00319/3.602, allocations: 0.9553 MB / 2.102 GB, free: 224.9 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.001099/3.603, allocations: 0.5015 MB / 2.103 GB, free: 224.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003078/3.607, allocations: 2.294 MB / 2.105 GB, free: 222.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/3.607, allocations: 4 kB / 2.105 GB, free: 222.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005511/3.607, allocations: 0.5052 MB / 2.106 GB, free: 221.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00343/3.611, allocations: 0.8549 MB / 2.107 GB, free: 220.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00528/3.616, allocations: 4.292 MB / 2.111 GB, free: 216.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009458/3.617, allocations: 1.709 MB / 2.112 GB, free: 214.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002618/3.619, allocations: 0.918 MB / 2.113 GB, free: 213.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/3.62, allocations: 139.4 kB / 2.113 GB, free: 213.6 MB / 1.167 GB Notification: Performance of SimCode: time 1.693e-06/3.62, allocations: 0 / 2.113 GB, free: 213.6 MB / 1.167 GB Notification: Performance of Templates: time 0.05203/3.672, allocations: 34.63 MB / 2.147 GB, free: 179.3 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches