Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.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_9_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_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001655/0.001655, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.538/2.538, allocations: 390.3 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003739/0.0003739, allocations: 16 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8441/0.8445, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02417/0.8687, allocations: 24.01 MB / 0.977 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0123/0.8811, allocations: 6.862 MB / 0.9837 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001704/0.8828, allocations: 28.09 kB / 0.9837 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001409/0.8842, allocations: 391.8 kB / 0.9841 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.003694/0.888, allocations: 1.034 MB / 0.9851 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003828/0.8918, allocations: 1.086 MB / 0.9861 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.005114/0.8969, allocations: 2.736 MB / 0.9888 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/0.8994, allocations: 1.613 MB / 0.9904 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002562/0.902, allocations: 1.176 MB / 0.9915 GB, free: 9.125 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.9034, allocations: 0.9294 MB / 0.9924 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001603/0.9036, allocations: 80 kB / 0.9925 GB, free: 8.113 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002155/0.9057, allocations: 0.8427 MB / 0.9933 GB, free: 7.27 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003765/0.9061, allocations: 354.5 kB / 0.9937 GB, free: 6.922 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000538/0.9067, allocations: 428.7 kB / 0.9941 GB, free: 6.496 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.003058/0.9097, allocations: 2.761 MB / 0.9968 GB, free: 3.73 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.9097, allocations: 0 / 0.9968 GB, free: 3.73 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.963e-06/0.9098, allocations: 0 / 0.9968 GB, free: 3.73 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.094e-05/0.9098, allocations: 0 / 0.9968 GB, free: 3.73 MB / 0.7481 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.004551/0.9144, allocations: 2.14 MB / 0.9989 GB, free: 1.535 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.9144, allocations: 12.03 kB / 0.9989 GB, free: 1.523 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007775/0.9152, allocations: 237.5 kB / 0.9991 GB, free: 1.289 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003166/0.9184, allocations: 1.632 MB / 1.001 GB, free: 15.6 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.654e-05/0.9185, allocations: 110.7 kB / 1.001 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000237/0.9187, allocations: 152 kB / 1.001 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003239/0.922, allocations: 1.966 MB / 1.003 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.077e-05/0.922, allocations: 15.83 kB / 1.003 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.9222, allocations: 63.95 kB / 1.003 GB, free: 13.23 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.478e-05/0.9222, allocations: 40 kB / 1.003 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002725/0.925, allocations: 1.79 MB / 1.005 GB, free: 11.39 MB / 0.7637 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.0126/0.9376, allocations: 7.688 MB / 1.012 GB, free: 3.398 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.9395, allocations: 1.457 MB / 1.014 GB, free: 1.926 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006726/0.9463, allocations: 3.885 MB / 1.017 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/0.9464, allocations: 43.56 kB / 1.017 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=88): time 3.256e-06/0.9464, allocations: 0 / 1.017 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=88): time 0.002495/0.9489, allocations: 1.506 MB / 1.019 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.9489, allocations: 64.41 kB / 1.019 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002537/0.9515, allocations: 1.68 MB / 1.021 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001373/0.9516, allocations: 49.7 kB / 1.021 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007177/0.9524, allocations: 0.7537 MB / 1.021 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/0.9527, allocations: 315.4 kB / 1.022 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.111e-05/0.9528, allocations: 31.94 kB / 1.022 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.953, allocations: 369.9 kB / 1.022 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.9541, allocations: 0.6792 MB / 1.023 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.9555, allocations: 1.009 MB / 1.024 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.9567, allocations: 0.865 MB / 1.025 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.9567, allocations: 4 kB / 1.025 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002959/0.9597, allocations: 1.932 MB / 1.027 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.001572/0.9613, allocations: 3.524 MB / 1.03 GB, free: 492 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.9613, allocations: 12 kB / 1.03 GB, free: 480 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.275e-05/0.9614, allocations: 16 kB / 1.03 GB, free: 464 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.9626, allocations: 347.5 kB / 1.03 GB, free: 116 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.216e-05/0.9627, allocations: 23.88 kB / 1.03 GB, free: 92 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.9642, allocations: 226 kB / 1.031 GB, free: 15.87 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.9643, allocations: 55.98 kB / 1.031 GB, free: 15.81 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.9643, allocations: 4 kB / 1.031 GB, free: 15.81 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002514/0.9668, allocations: 1.799 MB / 1.032 GB, free: 14.01 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.9669, allocations: 8 kB / 1.032 GB, free: 14 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.9669, allocations: 16 kB / 1.032 GB, free: 13.98 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.9681, allocations: 347.5 kB / 1.033 GB, free: 13.64 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/0.9681, allocations: 20 kB / 1.033 GB, free: 13.62 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.9694, allocations: 198.8 kB / 1.033 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.9695, allocations: 59.98 kB / 1.033 GB, free: 13.37 MB / 0.795 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 (175): * Single equations (assignments): 175 * 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.001187/0.9707, allocations: 0.754 MB / 1.034 GB, free: 12.61 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/0.971, allocations: 162.1 kB / 1.034 GB, free: 12.45 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.9729, allocations: 1.281 MB / 1.035 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.973, allocations: 16 kB / 1.035 GB, free: 11.13 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.973, allocations: 3.938 kB / 1.035 GB, free: 11.13 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001445/0.9744, allocations: 1.273 MB / 1.036 GB, free: 9.773 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006492/0.9809, allocations: 2.963 MB / 1.039 GB, free: 6.734 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.335e-06/0.981, allocations: 0 / 1.039 GB, free: 6.734 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008547/0.9819, allocations: 187.9 kB / 1.039 GB, free: 6.551 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.278e-05/0.9819, allocations: 7.938 kB / 1.039 GB, free: 6.543 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.652e-05/0.982, allocations: 23.98 kB / 1.039 GB, free: 6.52 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.818e-05/0.9821, allocations: 4 kB / 1.039 GB, free: 6.516 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.9821, allocations: 0 / 1.039 GB, free: 6.516 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003508/0.9856, allocations: 1.975 MB / 1.041 GB, free: 4.469 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/0.9872, allocations: 442.7 kB / 1.042 GB, free: 4.016 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006739/0.9879, allocations: 27.94 kB / 1.042 GB, free: 3.988 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.9893, allocations: 71.83 kB / 1.042 GB, free: 3.918 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.9894, allocations: 52.92 kB / 1.042 GB, free: 3.863 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.9895, allocations: 31.98 kB / 1.042 GB, free: 3.832 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.002654/0.9922, allocations: 1.269 MB / 1.043 GB, free: 2.566 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9922, allocations: 0 / 1.043 GB, free: 2.566 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.003429/0.9956, allocations: 0.9162 MB / 1.044 GB, free: 1.648 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (89): * Single equations (assignments): 87 * 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.0009022/0.9966, allocations: 351.5 kB / 1.044 GB, free: 1.309 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003947/1.001, allocations: 2.317 MB / 1.047 GB, free: 15 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/1.001, allocations: 0 / 1.047 GB, free: 15 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006876/1.001, allocations: 0.517 MB / 1.047 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004108/1.005, allocations: 0.8495 MB / 1.048 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006728/1.012, allocations: 4.353 MB / 1.052 GB, free: 9.242 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/1.014, allocations: 1.713 MB / 1.054 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.003171/1.017, allocations: 0.9341 MB / 1.055 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000588/1.017, allocations: 131.4 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of SimCode: time 1.293e-06/1.017, allocations: 0 / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of Templates: time 0.05983/1.077, allocations: 33.58 MB / 1.088 GB, free: 5.277 MB / 0.8419 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches