Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.545/1.545, allocations: 287.4 MB / 302.6 MB, free: 8.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009795/0.0009793, allocations: 189.2 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.4 MB / 0.6298 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006983/0.0006983, allocations: 102.7 kB / 0.7431 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.000348, allocations: 11.66 kB / 0.8662 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1827, allocations: 115.3 MB / 0.9787 GB, free: 28.09 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.0171/0.1998, allocations: 26.27 MB / 1.004 GB, free: 1.734 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.008424/0.2083, allocations: 7.344 MB / 1.012 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007556/0.209, allocations: 31.75 kB / 1.012 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0007532/0.2098, allocations: 278.2 kB / 1.012 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.001774/0.2116, allocations: 0.8043 MB / 1.013 GB, free: 9.266 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.001938/0.2135, allocations: 0.7768 MB / 1.013 GB, free: 8.496 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.004375/0.2179, allocations: 5.246 MB / 1.019 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.2198, allocations: 1.786 MB / 1.02 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.2219, allocations: 1.307 MB / 1.022 GB, free: 104 kB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.2234, allocations: 1.233 MB / 1.023 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.2236, allocations: 80 kB / 1.023 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002087/0.2257, allocations: 0.9826 MB / 1.024 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0004438/0.2261, allocations: 358.5 kB / 1.024 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0007519/0.2269, allocations: 416.8 kB / 1.025 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.003712/0.2306, allocations: 2.817 MB / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 8.906e-06/0.2307, allocations: 0 / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.306e-06/0.2307, allocations: 0 / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.527e-05/0.2307, allocations: 0 / 1.027 GB, free: 10.21 MB / 0.6511 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.00471/0.2355, allocations: 2.129 MB / 1.029 GB, free: 8.027 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.2355, allocations: 8.031 kB / 1.029 GB, free: 8.02 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002575/0.2358, allocations: 214.9 kB / 1.03 GB, free: 7.801 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006079/0.2364, allocations: 226.5 kB / 1.03 GB, free: 7.578 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002531/0.2389, allocations: 1.744 MB / 1.031 GB, free: 5.781 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.502e-05/0.239, allocations: 114.7 kB / 1.032 GB, free: 5.668 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002266/0.2392, allocations: 155.9 kB / 1.032 GB, free: 5.516 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.242, allocations: 1.986 MB / 1.034 GB, free: 3.465 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.242, allocations: 0 / 1.034 GB, free: 3.465 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.2421, allocations: 60 kB / 1.034 GB, free: 3.406 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.537e-05/0.2422, allocations: 39.98 kB / 1.034 GB, free: 3.367 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002424/0.2446, allocations: 1.79 MB / 1.036 GB, free: 1.57 MB / 0.6511 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.009707/0.2543, allocations: 7.617 MB / 1.043 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.256, allocations: 1.44 MB / 1.044 GB, free: 8.188 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008132/0.2569, allocations: 0.6601 MB / 1.045 GB, free: 7.523 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005683/0.2626, allocations: 3.839 MB / 1.049 GB, free: 3.363 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.2626, allocations: 47.55 kB / 1.049 GB, free: 3.309 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=88): time 2.725e-06/0.2626, allocations: 0 / 1.049 GB, free: 3.309 MB / 0.6667 GB Notification: Performance of matching and sorting (n=88): time 0.002192/0.2648, allocations: 1.502 MB / 1.05 GB, free: 1.805 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.2649, allocations: 68.39 kB / 1.05 GB, free: 1.727 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001858/0.2667, allocations: 1.574 MB / 1.052 GB, free: 144 kB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.689e-05/0.2668, allocations: 49.7 kB / 1.052 GB, free: 88 kB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005683/0.2674, allocations: 0.7419 MB / 1.053 GB, free: 15.34 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002491/0.2677, allocations: 315.4 kB / 1.053 GB, free: 15.02 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.849e-05/0.2677, allocations: 28 kB / 1.053 GB, free: 15 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2679, allocations: 365.9 kB / 1.053 GB, free: 14.63 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009288/0.2688, allocations: 0.683 MB / 1.054 GB, free: 13.95 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001121/0.2699, allocations: 1.012 MB / 1.055 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/0.2719, allocations: 1.624 MB / 1.057 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.2719, allocations: 4 kB / 1.057 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002762/0.2747, allocations: 1.928 MB / 1.058 GB, free: 9.113 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002059/0.2749, allocations: 360.5 kB / 1.059 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.2749, allocations: 8 kB / 1.059 GB, free: 8.629 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.2749, allocations: 16 kB / 1.059 GB, free: 8.613 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.2761, allocations: 335.5 kB / 1.059 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.479e-05/0.2761, allocations: 27.86 kB / 1.059 GB, free: 8.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.2773, allocations: 214.1 kB / 1.059 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.2774, allocations: 63.98 kB / 1.059 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.904e-06/0.2774, allocations: 7.938 kB / 1.059 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002365/0.2798, allocations: 1.787 MB / 1.061 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.2798, allocations: 8 kB / 1.061 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2798, allocations: 16 kB / 1.061 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.2809, allocations: 331.5 kB / 1.062 GB, free: 5.84 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/0.2809, allocations: 23.92 kB / 1.062 GB, free: 5.816 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.282, allocations: 187 kB / 1.062 GB, free: 5.633 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.581e-05/0.2821, allocations: 56 kB / 1.062 GB, free: 5.578 MB / 0.6823 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.001047/0.2831, allocations: 0.7502 MB / 1.063 GB, free: 4.816 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002482/0.2834, allocations: 150.1 kB / 1.063 GB, free: 4.668 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.2852, allocations: 1.276 MB / 1.064 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.2852, allocations: 16 kB / 1.064 GB, free: 3.363 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.2852, allocations: 0 / 1.064 GB, free: 3.363 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001324/0.2865, allocations: 1.277 MB / 1.065 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.341/0.6275, allocations: 2.926 MB / 1.068 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.6275, allocations: 2.016 kB / 1.068 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008267/0.6284, allocations: 189.1 kB / 1.068 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.6284, allocations: 3.719 kB / 1.068 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.89e-05/0.6285, allocations: 24.31 kB / 1.068 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.6285, allocations: 4.344 kB / 1.068 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.6285, allocations: 7.125 kB / 1.068 GB, free: 86.8 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/0.6311, allocations: 1.907 MB / 1.07 GB, free: 86.34 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007365/0.6318, allocations: 422.5 kB / 1.071 GB, free: 86.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.632, allocations: 20.05 kB / 1.071 GB, free: 86.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007526/0.6328, allocations: 78.05 kB / 1.071 GB, free: 86.14 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.576e-05/0.6329, allocations: 58.73 kB / 1.071 GB, free: 86.13 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-05/0.633, allocations: 37.73 kB / 1.071 GB, free: 86.12 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001693/0.6347, allocations: 1.172 MB / 1.072 GB, free: 85.7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6347, allocations: 1.938 kB / 1.072 GB, free: 85.7 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002245/0.6369, allocations: 0.9138 MB / 1.073 GB, free: 85.61 MB / 0.6823 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.003183/0.6401, allocations: 2.692 MB / 1.075 GB, free: 84.26 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003475/0.6436, allocations: 2.309 MB / 1.078 GB, free: 83.55 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.6436, allocations: 2.156 kB / 1.078 GB, free: 83.55 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007022/0.6443, allocations: 0.5166 MB / 1.078 GB, free: 83.38 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003657/0.648, allocations: 0.8528 MB / 1.079 GB, free: 83.24 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02161/0.6696, allocations: 12.35 MB / 1.091 GB, free: 77.32 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.6707, allocations: 1.662 MB / 1.093 GB, free: 76.41 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002804/0.6735, allocations: 0.9094 MB / 1.094 GB, free: 76.33 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007643/0.6743, allocations: 0.6075 MB / 1.094 GB, free: 75.88 MB / 0.6823 GB Notification: Performance of SimCode: time 7.61e-07/0.6743, allocations: 0 / 1.094 GB, free: 75.88 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2045/0.8788, allocations: 49.43 MB / 1.142 GB, free: 39.86 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001345/0.879, allocations: 252.6 kB / 1.143 GB, free: 39.52 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.565/4.444, allocations: 0 / 1.143 GB, free: 39.52 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_8.0.0_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)