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.327/2.327, allocations: 390.5 MB / 398 MB, free: 10.97 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.001277/0.001276, allocations: 171.6 kB / 491.2 MB, free: 1.605 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.599/1.599, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.00105/0.00105, allocations: 91.91 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.549e-05/1.551e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3028, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.287/1.59, allocations: 421.2 MB / 1.624 GB, free: 9.902 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/1.59, allocations: 92.86 kB / 1.624 GB, free: 9.855 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.668/3.259, allocations: 420.7 MB / 2.035 GB, free: 169.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.603e-06/3.259, allocations: 0 / 2.035 GB, free: 169.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003766/3.259, allocations: 51.92 kB / 2.035 GB, free: 169.6 MB / 1.151 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.00643/3.266, allocations: 1.931 MB / 2.037 GB, free: 167.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/3.266, allocations: 12.03 kB / 2.037 GB, free: 167.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/3.267, allocations: 221.5 kB / 2.037 GB, free: 167.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005205/3.272, allocations: 2.13 MB / 2.039 GB, free: 165.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.451e-05/3.273, allocations: 44 kB / 2.039 GB, free: 165.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005312/3.273, allocations: 88 kB / 2.039 GB, free: 165.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003229/3.276, allocations: 1.575 MB / 2.04 GB, free: 163.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/3.279, allocations: 1.645 MB / 2.042 GB, free: 161.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.989e-05/3.279, allocations: 15.84 kB / 2.042 GB, free: 161.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/3.279, allocations: 7.938 kB / 2.042 GB, free: 161.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-05/3.279, allocations: 39.98 kB / 2.042 GB, free: 161.7 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.009978/3.289, allocations: 7.225 MB / 2.049 GB, free: 154.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/3.29, allocations: 1.257 MB / 2.05 GB, free: 152.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007097/3.291, allocations: 0.595 MB / 2.051 GB, free: 152.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005903/3.297, allocations: 3.753 MB / 2.055 GB, free: 148.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/3.297, allocations: 51.28 kB / 2.055 GB, free: 148.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=86): time 3.076e-06/3.297, allocations: 3.984 kB / 2.055 GB, free: 148.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=86): time 0.002426/3.3, allocations: 1.107 MB / 2.056 GB, free: 147.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/3.3, allocations: 60.19 kB / 2.056 GB, free: 147 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/3.301, allocations: 1.239 MB / 2.057 GB, free: 145.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001059/3.302, allocations: 25.7 kB / 2.057 GB, free: 145.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000572/3.302, allocations: 0.7717 MB / 2.058 GB, free: 145 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/3.302, allocations: 303.5 kB / 2.058 GB, free: 144.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/3.303, allocations: 0 / 2.058 GB, free: 144.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001002/3.303, allocations: 365.9 kB / 2.058 GB, free: 144.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008153/3.303, allocations: 0.6324 MB / 2.059 GB, free: 143.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009057/3.304, allocations: 0.9674 MB / 2.06 GB, free: 142.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002626/3.307, allocations: 1.185 MB / 2.061 GB, free: 141.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/3.307, allocations: 4 kB / 2.061 GB, free: 141.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004413/3.311, allocations: 2.12 MB / 2.063 GB, free: 139.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001234/3.313, allocations: 3.485 MB / 2.067 GB, free: 135.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.846e-05/3.313, allocations: 11.95 kB / 2.067 GB, free: 135.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.917e-05/3.313, allocations: 16 kB / 2.067 GB, free: 135.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/3.314, allocations: 351.5 kB / 2.067 GB, free: 135.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.582e-05/3.314, allocations: 23.92 kB / 2.067 GB, free: 135.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/3.316, allocations: 170.2 kB / 2.067 GB, free: 134.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002189/3.316, allocations: 63.98 kB / 2.067 GB, free: 134.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/3.316, allocations: 8 kB / 2.067 GB, free: 134.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003822/3.32, allocations: 1.959 MB / 2.069 GB, free: 132.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/3.32, allocations: 12 kB / 2.069 GB, free: 132.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/3.32, allocations: 19.94 kB / 2.069 GB, free: 132.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/3.321, allocations: 351.5 kB / 2.07 GB, free: 132.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.393e-05/3.321, allocations: 15.94 kB / 2.07 GB, free: 132.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/3.323, allocations: 143 kB / 2.07 GB, free: 132.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/3.323, allocations: 63.98 kB / 2.07 GB, free: 132.3 MB / 1.151 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 () * 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.000359/3.324, allocations: 132.6 kB / 2.07 GB, free: 132.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004915/3.324, allocations: 134.3 kB / 2.07 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002477/3.327, allocations: 1.237 MB / 2.071 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/3.327, allocations: 11.98 kB / 2.071 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/3.327, allocations: 8 kB / 2.071 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00164/3.328, allocations: 1.307 MB / 2.073 GB, free: 129.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004826/3.333, allocations: 2.733 MB / 2.075 GB, free: 126.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/3.333, allocations: 0 / 2.075 GB, free: 126.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007191/3.334, allocations: 183.8 kB / 2.075 GB, free: 126.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.816e-05/3.334, allocations: 8 kB / 2.075 GB, free: 126.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.836e-05/3.334, allocations: 11.98 kB / 2.075 GB, free: 126.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/3.334, allocations: 4 kB / 2.075 GB, free: 126.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/3.334, allocations: 0 / 2.075 GB, free: 126.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/3.337, allocations: 1.916 MB / 2.077 GB, free: 124.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008302/3.337, allocations: 391.2 kB / 2.078 GB, free: 124 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003412/3.338, allocations: 7.953 kB / 2.078 GB, free: 124 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009489/3.339, allocations: 51.84 kB / 2.078 GB, free: 124 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.557e-05/3.339, allocations: 48.7 kB / 2.078 GB, free: 123.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.807e-05/3.339, allocations: 35.98 kB / 2.078 GB, free: 123.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00133/3.34, allocations: 0.9458 MB / 2.079 GB, free: 122.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/3.34, allocations: 0 / 2.079 GB, free: 122.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003667/3.344, allocations: 0.9505 MB / 2.08 GB, free: 122 MB / 1.151 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 () * 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.001198/3.345, allocations: 0.4902 MB / 2.08 GB, free: 121.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003195/3.348, allocations: 2.204 MB / 2.082 GB, free: 119.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/3.348, allocations: 4.062 kB / 2.082 GB, free: 119.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000555/3.349, allocations: 490.6 kB / 2.083 GB, free: 118.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/3.352, allocations: 0.6303 MB / 2.083 GB, free: 118.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005398/3.357, allocations: 2.969 MB / 2.086 GB, free: 115.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001596/3.359, allocations: 1.71 MB / 2.088 GB, free: 113.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003548/3.362, allocations: 1.167 MB / 2.089 GB, free: 112.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/3.363, allocations: 99.41 kB / 2.089 GB, free: 112.2 MB / 1.151 GB Notification: Performance of SimCode: time 8.31e-07/3.363, allocations: 0 / 2.089 GB, free: 112.2 MB / 1.151 GB Notification: Performance of Templates: time 0.0457/3.409, allocations: 28.04 MB / 2.117 GB, free: 84.36 MB / 1.151 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