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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009479/0.0009479, allocations: 99.08 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.0009333/0.0009334, allocations: 177.3 kB / 15.94 MB, free: 220 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.333/1.333, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.55/2.55, allocations: 436.5 MB / 0.7104 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003506, allocations: 15.92 kB / 0.8708 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6081/0.6084, allocations: 153.7 MB / 1.021 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02237/0.6308, allocations: 24.02 MB / 1.044 GB, free: 8.961 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.009609/0.6405, allocations: 6.857 MB / 1.051 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008961/0.6414, allocations: 35.75 kB / 1.051 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.6424, allocations: 394 kB / 1.051 GB, free: 1.672 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002401/0.6448, allocations: 1.024 MB / 1.052 GB, free: 0.6445 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002757/0.6476, allocations: 1.099 MB / 1.053 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.003275/0.6509, allocations: 2.718 MB / 1.056 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.6526, allocations: 1.621 MB / 1.058 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001713/0.6544, allocations: 1.164 MB / 1.059 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/0.6557, allocations: 0.9333 MB / 1.06 GB, free: 9.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.000207/0.6559, allocations: 80 kB / 1.06 GB, free: 9.012 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00192/0.6578, allocations: 0.8504 MB / 1.061 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003884/0.6582, allocations: 350.6 kB / 1.061 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0005406/0.6588, allocations: 424.7 kB / 1.061 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003328/0.6621, allocations: 2.753 MB / 1.064 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6621, allocations: 0 / 1.064 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.404e-06/0.6621, allocations: 4 kB / 1.064 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.992e-05/0.6622, allocations: 4 kB / 1.064 GB, free: 4.629 MB / 0.8106 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.004547/0.6668, allocations: 2.133 MB / 1.066 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.6668, allocations: 15.98 kB / 1.066 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009112/0.6677, allocations: 241.4 kB / 1.066 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003227/0.671, allocations: 1.632 MB / 1.068 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.268e-05/0.6711, allocations: 110.7 kB / 1.068 GB, free: 400 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/0.6713, allocations: 155.9 kB / 1.068 GB, free: 244 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003066/0.6744, allocations: 1.974 MB / 1.07 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.6745, allocations: 7.938 kB / 1.07 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001397/0.6746, allocations: 59.98 kB / 1.07 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.341e-05/0.6747, allocations: 40 kB / 1.07 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00277/0.6775, allocations: 1.79 MB / 1.072 GB, free: 12.29 MB / 0.8262 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.01144/0.6889, allocations: 7.692 MB / 1.08 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001916/0.6908, allocations: 1.46 MB / 1.081 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006592/0.6974, allocations: 3.878 MB / 1.085 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.6975, allocations: 43.5 kB / 1.085 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=88): time 2.766e-06/0.6975, allocations: 0 / 1.085 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of matching and sorting (n=88): time 0.002346/0.6999, allocations: 1.506 MB / 1.086 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.6999, allocations: 60.41 kB / 1.086 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.702, allocations: 1.68 MB / 1.088 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.7021, allocations: 53.7 kB / 1.088 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005836/0.7027, allocations: 0.7498 MB / 1.089 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002745/0.703, allocations: 319.4 kB / 1.089 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.04e-05/0.7031, allocations: 32 kB / 1.089 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.7032, allocations: 361.9 kB / 1.089 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000998/0.7042, allocations: 0.683 MB / 1.09 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.7055, allocations: 1.008 MB / 1.091 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.7067, allocations: 0.8689 MB / 1.092 GB, free: 7.074 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.7067, allocations: 0 / 1.092 GB, free: 7.074 MB / 0.8419 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003022/0.7098, allocations: 1.936 MB / 1.094 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.00141/0.7112, allocations: 3.526 MB / 1.097 GB, free: 1.363 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.7112, allocations: 12.06 kB / 1.097 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.986e-05/0.7112, allocations: 19.98 kB / 1.097 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.7126, allocations: 343.5 kB / 1.098 GB, free: 0.9961 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.467e-05/0.7126, allocations: 23.92 kB / 1.098 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.714, allocations: 230 kB / 1.098 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.7141, allocations: 55.98 kB / 1.098 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/0.7141, allocations: 4 kB / 1.098 GB, free: 0.6875 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002652/0.7168, allocations: 1.787 MB / 1.1 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.7168, allocations: 15.92 kB / 1.1 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.7168, allocations: 20 kB / 1.1 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.7181, allocations: 344.2 kB / 1.1 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.465e-05/0.7181, allocations: 27.92 kB / 1.1 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.7194, allocations: 186.4 kB / 1.1 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.7195, allocations: 63.98 kB / 1.1 GB, free: 14.25 MB / 0.8575 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.00104/0.7205, allocations: 0.7581 MB / 1.101 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003159/0.7209, allocations: 150.1 kB / 1.101 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/0.7228, allocations: 1.278 MB / 1.102 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.7228, allocations: 8 kB / 1.102 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.7228, allocations: 0 / 1.102 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001518/0.7244, allocations: 1.284 MB / 1.104 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004389/0.7288, allocations: 2.963 MB / 1.107 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.7288, allocations: 4.031 kB / 1.107 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007775/0.7296, allocations: 179.8 kB / 1.107 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/0.7296, allocations: 4 kB / 1.107 GB, free: 7.449 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.896e-05/0.7297, allocations: 23.98 kB / 1.107 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.877e-05/0.7297, allocations: 11.89 kB / 1.107 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.7297, allocations: 4 kB / 1.107 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.7323, allocations: 1.964 MB / 1.109 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008665/0.7331, allocations: 446.7 kB / 1.109 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.7334, allocations: 23.94 kB / 1.109 GB, free: 4.895 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008222/0.7342, allocations: 83.67 kB / 1.109 GB, free: 4.812 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.65e-05/0.7343, allocations: 52.92 kB / 1.109 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.202e-05/0.7344, allocations: 35.98 kB / 1.109 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001629/0.736, allocations: 1.265 MB / 1.111 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.5e-07/0.736, allocations: 0 / 1.111 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002392/0.7384, allocations: 0.9201 MB / 1.111 GB, free: 2.543 MB / 0.8575 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.000722/0.7392, allocations: 368.8 kB / 1.112 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003321/0.7425, allocations: 2.309 MB / 1.114 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.7425, allocations: 7.938 kB / 1.114 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006662/0.7432, allocations: 0.517 MB / 1.115 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003506/0.7467, allocations: 0.8507 MB / 1.115 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005566/0.7523, allocations: 4.341 MB / 1.12 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.7535, allocations: 1.713 MB / 1.121 GB, free: 8.383 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0026/0.7561, allocations: 0.9253 MB / 1.122 GB, free: 7.477 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000369/0.7565, allocations: 143.3 kB / 1.122 GB, free: 7.336 MB / 0.8731 GB Notification: Performance of SimCode: time 6.21e-07/0.7565, allocations: 0 / 1.122 GB, free: 7.336 MB / 0.8731 GB Notification: Performance of Templates: time 0.05338/0.8099, allocations: 33.58 MB / 1.155 GB, free: 6.129 MB / 0.9044 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