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 2.607/2.607, allocations: 287.3 MB / 302.3 MB, free: 8.23 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.001574/0.001574, allocations: 185.2 kB / 370.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.183/2.183, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001161/0.001161, allocations: 96.39 kB / 0.7428 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006793/0.0006795, allocations: 16.14 kB / 0.8657 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2411, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03639/0.2776, allocations: 24 MB / 1.002 GB, free: 4.219 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01471/0.2924, allocations: 6.809 MB / 1.008 GB, free: 13.4 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.2941, allocations: 31.75 kB / 1.008 GB, free: 13.37 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.002219/0.2963, allocations: 390 kB / 1.009 GB, free: 12.99 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.005135/0.3015, allocations: 0.9971 MB / 1.01 GB, free: 11.99 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.005547/0.3071, allocations: 1.1 MB / 1.011 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.00706/0.3142, allocations: 2.691 MB / 1.013 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003675/0.3179, allocations: 1.613 MB / 1.015 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003907/0.3219, allocations: 1.176 MB / 1.016 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002633/0.3246, allocations: 0.9255 MB / 1.017 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0006545/0.3253, allocations: 79.94 kB / 1.017 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003843/0.3292, allocations: 0.8505 MB / 1.018 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0009723/0.3302, allocations: 350.6 kB / 1.018 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.001173/0.3314, allocations: 416.8 kB / 1.019 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.005819/0.3373, allocations: 2.747 MB / 1.021 GB, free: 24 kB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3373, allocations: 4 kB / 1.021 GB, free: 20 kB / 0.6355 GB Notification: Performance of FrontEnd: time 3.627e-06/0.3374, allocations: 0 / 1.021 GB, free: 20 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.000117/0.3375, allocations: 0 / 1.021 GB, free: 20 kB / 0.6355 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.008026/0.3455, allocations: 2.132 MB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.3456, allocations: 8.031 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009843/0.3466, allocations: 214.7 kB / 1.024 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001576/0.3482, allocations: 237.5 kB / 1.024 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005697/0.354, allocations: 1.605 MB / 1.025 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.3542, allocations: 110.7 kB / 1.026 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006887/0.3549, allocations: 151.9 kB / 1.026 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006914/0.3618, allocations: 1.982 MB / 1.028 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.441e-05/0.362, allocations: 0 / 1.028 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000284/0.3623, allocations: 60 kB / 1.028 GB, free: 9.348 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.13e-05/0.3624, allocations: 43.95 kB / 1.028 GB, free: 9.305 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006131/0.3685, allocations: 1.786 MB / 1.03 GB, free: 7.512 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.02289/0.3915, allocations: 7.691 MB / 1.037 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004016/0.3956, allocations: 1.46 MB / 1.038 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02403/0.4196, allocations: 3.87 MB / 1.042 GB, free: 9.844 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.408e-05/0.4198, allocations: 43.56 kB / 1.042 GB, free: 9.793 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=88): time 1.164e-05/0.4199, allocations: 0 / 1.042 GB, free: 9.793 MB / 0.6667 GB Notification: Performance of matching and sorting (n=88): time 0.01012/0.43, allocations: 1.506 MB / 1.044 GB, free: 8.277 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.4302, allocations: 64.41 kB / 1.044 GB, free: 8.203 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005566/0.4358, allocations: 1.663 MB / 1.045 GB, free: 6.527 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0003529/0.4362, allocations: 53.7 kB / 1.045 GB, free: 6.469 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.4376, allocations: 0.7418 MB / 1.046 GB, free: 5.719 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008111/0.4385, allocations: 315.5 kB / 1.047 GB, free: 5.406 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003132/0.4388, allocations: 24 kB / 1.047 GB, free: 5.383 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0004542/0.4393, allocations: 369.9 kB / 1.047 GB, free: 5.016 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002441/0.4418, allocations: 0.6753 MB / 1.048 GB, free: 4.34 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00258/0.4444, allocations: 1.012 MB / 1.049 GB, free: 3.199 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002578/0.4471, allocations: 0.865 MB / 1.049 GB, free: 2.332 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-05/0.4471, allocations: 4 kB / 1.049 GB, free: 2.328 MB / 0.6667 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.006362/0.4535, allocations: 1.939 MB / 1.051 GB, free: 388 kB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001798/0.4554, allocations: 3.514 MB / 1.055 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.481e-05/0.4554, allocations: 16 kB / 1.055 GB, free: 12.61 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.494e-05/0.4555, allocations: 20 kB / 1.055 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002933/0.4585, allocations: 347.5 kB / 1.055 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-05/0.4586, allocations: 23.92 kB / 1.055 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/0.4612, allocations: 225.9 kB / 1.055 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004228/0.4617, allocations: 59.98 kB / 1.055 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.4617, allocations: 10.28 kB / 1.055 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005554/0.4673, allocations: 1.788 MB / 1.057 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.442e-05/0.4674, allocations: 8 kB / 1.057 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.582e-05/0.4674, allocations: 19.95 kB / 1.057 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00285/0.4703, allocations: 347.5 kB / 1.057 GB, free: 9.785 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.628e-05/0.4704, allocations: 19.94 kB / 1.058 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002576/0.473, allocations: 186.6 kB / 1.058 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00041/0.4735, allocations: 59.98 kB / 1.058 GB, free: 9.523 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.002067/0.4756, allocations: 0.7502 MB / 1.058 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006814/0.4763, allocations: 146.1 kB / 1.059 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00388/0.4801, allocations: 1.281 MB / 1.06 GB, free: 7.324 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.973e-05/0.4802, allocations: 19.92 kB / 1.06 GB, free: 7.305 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.4803, allocations: 0 / 1.06 GB, free: 7.305 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002947/0.4832, allocations: 1.288 MB / 1.061 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00885/0.4921, allocations: 2.955 MB / 1.064 GB, free: 2.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.4922, allocations: 4 kB / 1.064 GB, free: 2.895 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.494, allocations: 183.7 kB / 1.064 GB, free: 2.715 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-05/0.494, allocations: 4 kB / 1.064 GB, free: 2.711 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.4942, allocations: 24.11 kB / 1.064 GB, free: 2.688 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.65e-05/0.4942, allocations: 8 kB / 1.064 GB, free: 2.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.4943, allocations: 4 kB / 1.064 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005245/0.4995, allocations: 1.963 MB / 1.066 GB, free: 0.6406 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/0.5013, allocations: 442.7 kB / 1.067 GB, free: 192 kB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006264/0.502, allocations: 23.98 kB / 1.067 GB, free: 168 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002074/0.5041, allocations: 79.72 kB / 1.067 GB, free: 88 kB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002685/0.5044, allocations: 56.92 kB / 1.067 GB, free: 28 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.6541/1.159, allocations: 33.31 kB / 1.067 GB, free: 86.88 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.004136/1.163, allocations: 1.245 MB / 1.068 GB, free: 86.77 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.011e-06/1.163, allocations: 0 / 1.068 GB, free: 86.77 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004977/1.168, allocations: 0.9183 MB / 1.069 GB, free: 86.77 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.007237/1.175, allocations: 3.014 MB / 1.072 GB, free: 85.34 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.007428/1.183, allocations: 2.308 MB / 1.074 GB, free: 84.66 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/1.183, allocations: 4.75 kB / 1.074 GB, free: 84.66 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001577/1.184, allocations: 0.5183 MB / 1.075 GB, free: 84.49 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007794/1.192, allocations: 0.8555 MB / 1.075 GB, free: 84.35 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01624/1.208, allocations: 11.53 MB / 1.087 GB, free: 75.37 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002661/1.211, allocations: 1.695 MB / 1.088 GB, free: 74.47 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.005612/1.217, allocations: 0.9229 MB / 1.089 GB, free: 74.38 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002006/1.219, allocations: 0.6085 MB / 1.09 GB, free: 73.93 MB / 0.6823 GB Notification: Performance of SimCode: time 1.122e-06/1.219, allocations: 1.281 kB / 1.09 GB, free: 73.93 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1339/1.353, allocations: 48.94 MB / 1.138 GB, free: 44.73 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002773/1.353, allocations: 251.2 kB / 1.138 GB, free: 44.45 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.482/5.836, allocations: 0 / 1.138 GB, free: 44.45 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)