Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001672/0.001673, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002155/0.002155, allocations: 189.5 kB / 16.62 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.513/1.513, allocations: 205.1 MB / 222.5 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.782/1.782, allocations: 292.3 MB / 0.5489 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 73.06 kB / 0.6723 GB, free: 25.81 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.308, allocations: 114.5 MB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.0319/0.34, allocations: 28.58 MB / 0.812 GB, free: 44 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01241/0.3525, allocations: 7.858 MB / 0.8197 GB, free: 8.164 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.3542, allocations: 35.81 kB / 0.8197 GB, free: 8.129 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.3556, allocations: 409.2 kB / 0.8201 GB, free: 7.727 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003161/0.3588, allocations: 0.9948 MB / 0.8211 GB, free: 6.727 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003344/0.3622, allocations: 1.073 MB / 0.8221 GB, free: 5.66 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.005612/0.3678, allocations: 4.898 MB / 0.8269 GB, free: 0.75 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002933/0.3708, allocations: 2.277 MB / 0.8291 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004312/0.3751, allocations: 1.79 MB / 0.8309 GB, free: 12.65 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002561/0.3777, allocations: 1.459 MB / 0.8323 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003993/0.3781, allocations: 228 kB / 0.8325 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003086/0.3812, allocations: 1.315 MB / 0.8338 GB, free: 9.648 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0006595/0.3818, allocations: 0.5491 MB / 0.8344 GB, free: 9.098 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001987/0.3838, allocations: 1.151 MB / 0.8355 GB, free: 7.941 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005318/0.3892, allocations: 3.67 MB / 0.8391 GB, free: 4.262 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3892, allocations: 0 / 0.8391 GB, free: 4.262 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3892, allocations: 0 / 0.8391 GB, free: 4.262 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.231e-05/0.3893, allocations: 4 kB / 0.8391 GB, free: 4.258 MB / 0.6544 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.005516/0.3948, allocations: 2.542 MB / 0.8416 GB, free: 1.66 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.3949, allocations: 12.03 kB / 0.8416 GB, free: 1.648 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008886/0.3958, allocations: 234.5 kB / 0.8418 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003126/0.3989, allocations: 1.768 MB / 0.8435 GB, free: 15.59 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.747e-05/0.399, allocations: 114.7 kB / 0.8436 GB, free: 15.48 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000238/0.3992, allocations: 152 kB / 0.8438 GB, free: 15.33 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/0.4026, allocations: 2.001 MB / 0.8457 GB, free: 13.27 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.4027, allocations: 3.984 kB / 0.8457 GB, free: 13.26 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.4028, allocations: 60 kB / 0.8458 GB, free: 13.2 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.823e-05/0.4028, allocations: 36 kB / 0.8458 GB, free: 13.17 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002693/0.4055, allocations: 1.802 MB / 0.8476 GB, free: 11.36 MB / 0.67 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.01251/0.4181, allocations: 7.589 MB / 0.855 GB, free: 3.457 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002006/0.4201, allocations: 1.445 MB / 0.8564 GB, free: 1.992 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009241/0.421, allocations: 0.667 MB / 0.8571 GB, free: 1.324 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006717/0.4278, allocations: 3.85 MB / 0.8608 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.4278, allocations: 43.56 kB / 0.8609 GB, free: 13.11 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=88): time 3.086e-06/0.4278, allocations: 4 kB / 0.8609 GB, free: 13.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=88): time 0.002712/0.4306, allocations: 1.514 MB / 0.8623 GB, free: 11.58 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.4306, allocations: 60.41 kB / 0.8624 GB, free: 11.51 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002379/0.433, allocations: 1.625 MB / 0.864 GB, free: 9.871 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001571/0.4332, allocations: 49.7 kB / 0.864 GB, free: 9.816 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006667/0.4338, allocations: 0.7495 MB / 0.8648 GB, free: 9.059 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003081/0.4342, allocations: 311.6 kB / 0.8651 GB, free: 8.75 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004155/0.4346, allocations: 295.3 kB / 0.8653 GB, free: 8.457 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.4348, allocations: 369.9 kB / 0.8657 GB, free: 8.09 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.4358, allocations: 0.6917 MB / 0.8664 GB, free: 7.395 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.4372, allocations: 1.016 MB / 0.8674 GB, free: 6.246 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002181/0.4394, allocations: 1.624 MB / 0.8689 GB, free: 4.5 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.405e-05/0.4394, allocations: 4 kB / 0.8689 GB, free: 4.496 MB / 0.6856 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003408/0.4428, allocations: 1.952 MB / 0.8709 GB, free: 2.535 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.4429, allocations: 8 kB / 0.8709 GB, free: 2.527 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/0.4429, allocations: 8 kB / 0.8709 GB, free: 2.52 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-05/0.4429, allocations: 16 kB / 0.8709 GB, free: 2.504 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.4442, allocations: 335.5 kB / 0.8712 GB, free: 2.176 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.837e-05/0.4442, allocations: 19.94 kB / 0.8712 GB, free: 2.156 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.4455, allocations: 194.1 kB / 0.8714 GB, free: 1.965 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.4457, allocations: 67.92 kB / 0.8715 GB, free: 1.898 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001994/0.4477, allocations: 1.277 MB / 0.8727 GB, free: 0.6172 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001347/0.449, allocations: 1.02 MB / 0.8737 GB, free: 15.47 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002175/0.4512, allocations: 1.624 MB / 0.8753 GB, free: 13.73 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.45e-06/0.4512, allocations: 4 kB / 0.8753 GB, free: 13.72 MB / 0.7012 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.00342/0.4547, allocations: 1.947 MB / 0.8772 GB, free: 11.77 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.4547, allocations: 8.969 kB / 0.8772 GB, free: 11.76 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.4547, allocations: 8 kB / 0.8772 GB, free: 11.75 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.4548, allocations: 20 kB / 0.8772 GB, free: 11.73 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.456, allocations: 331.5 kB / 0.8776 GB, free: 11.41 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.271e-05/0.456, allocations: 23.92 kB / 0.8776 GB, free: 11.38 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.4574, allocations: 150.9 kB / 0.8777 GB, free: 11.23 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.4575, allocations: 63.98 kB / 0.8778 GB, free: 11.17 MB / 0.7012 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004769/0.458, allocations: 259.8 kB / 0.878 GB, free: 10.91 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004167/0.4584, allocations: 150.1 kB / 0.8782 GB, free: 10.76 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002215/0.4606, allocations: 1.282 MB / 0.8794 GB, free: 9.469 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/0.4607, allocations: 12 kB / 0.8794 GB, free: 9.457 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4607, allocations: 0 / 0.8794 GB, free: 9.457 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00171/0.4624, allocations: 1.28 MB / 0.8807 GB, free: 8.09 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004974/0.4674, allocations: 2.955 MB / 0.8836 GB, free: 5.055 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4674, allocations: 0 / 0.8836 GB, free: 5.055 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007965/0.4682, allocations: 187.8 kB / 0.8838 GB, free: 4.871 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.249e-05/0.4682, allocations: 7.984 kB / 0.8838 GB, free: 4.863 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.668e-05/0.4683, allocations: 23.98 kB / 0.8838 GB, free: 4.84 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.839e-06/0.4684, allocations: 16 kB / 0.8838 GB, free: 4.824 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4684, allocations: 4 kB / 0.8838 GB, free: 4.82 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002939/0.4713, allocations: 1.909 MB / 0.8857 GB, free: 2.879 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.4724, allocations: 402.8 kB / 0.8861 GB, free: 2.465 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002383/0.4727, allocations: 27.98 kB / 0.8861 GB, free: 2.438 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008325/0.4735, allocations: 47.89 kB / 0.8861 GB, free: 2.391 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.4736, allocations: 52.92 kB / 0.8862 GB, free: 2.34 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/0.4738, allocations: 39.97 kB / 0.8862 GB, free: 2.301 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.002157/0.476, allocations: 1.222 MB / 0.8874 GB, free: 1.082 MB / 0.7012 GB Notification: Performance of sort global known variables: time 7.71e-07/0.476, allocations: 0 / 0.8874 GB, free: 1.082 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003197/0.4792, allocations: 0.9124 MB / 0.8883 GB, free: 172 kB / 0.7012 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009229/0.4801, allocations: 360.4 kB / 0.8886 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003895/0.484, allocations: 2.336 MB / 0.8909 GB, free: 13.48 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.484, allocations: 0 / 0.8909 GB, free: 13.48 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007516/0.4848, allocations: 0.5209 MB / 0.8914 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004097/0.4889, allocations: 0.9283 MB / 0.8923 GB, free: 12.06 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006226/0.4951, allocations: 3.643 MB / 0.8959 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001436/0.4966, allocations: 1.661 MB / 0.8975 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002731/0.4994, allocations: 0.921 MB / 0.8984 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003794/0.4998, allocations: 127.4 kB / 0.8985 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of SimCode: time 8.41e-07/0.4998, allocations: 0 / 0.8985 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of Templates: time 0.4689/0.9686, allocations: 35.68 MB / 0.9334 GB, free: 124.1 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)