Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00132/0.00132, allocations: 105 kB / 15.99 MB, free: 6.355 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.001309/0.001309, allocations: 195.9 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.72/2.72, allocations: 469.8 MB / 0.7427 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002566/0.002566, allocations: 65.86 kB / 0.9087 GB, free: 14.24 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3767, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.531/0.9078, allocations: 28.39 MB / 1.092 GB, free: 7.855 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01064/0.9185, allocations: 7.842 MB / 1.1 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001774/0.9203, allocations: 35.16 kB / 1.1 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.9217, allocations: 349.5 kB / 1.1 GB, free: 2.461 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003275/0.9249, allocations: 0.941 MB / 1.101 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003213/0.9282, allocations: 0.9652 MB / 1.102 GB, free: 1.383 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006909/0.9351, allocations: 4.95 MB / 1.107 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003654/0.9388, allocations: 2.27 MB / 1.109 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005045/0.9438, allocations: 1.801 MB / 1.111 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003087/0.9469, allocations: 1.488 MB / 1.112 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006328/0.9476, allocations: 231.4 kB / 1.112 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003678/0.9513, allocations: 1.311 MB / 1.114 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0008444/0.9521, allocations: 0.5498 MB / 1.114 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002373/0.9545, allocations: 1.156 MB / 1.115 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004806/0.9593, allocations: 2.936 MB / 1.118 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.9594, allocations: 4 kB / 1.118 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.334e-06/0.9594, allocations: 4.75 kB / 1.118 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.796e-05/0.9595, allocations: 0 / 1.118 GB, free: 10.29 MB / 0.8575 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.006914/0.9664, allocations: 2.553 MB / 1.121 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.9664, allocations: 10.19 kB / 1.121 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001025/0.9675, allocations: 237.4 kB / 1.121 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/0.9709, allocations: 1.761 MB / 1.123 GB, free: 7.789 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.971, allocations: 119.4 kB / 1.123 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.9713, allocations: 153.5 kB / 1.123 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003913/0.9752, allocations: 1.991 MB / 1.125 GB, free: 6.875 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.633e-05/0.9753, allocations: 7.219 kB / 1.125 GB, free: 6.871 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.9755, allocations: 60.69 kB / 1.125 GB, free: 6.824 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.525e-05/0.9755, allocations: 43.08 kB / 1.125 GB, free: 6.82 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003192/0.9787, allocations: 1.797 MB / 1.127 GB, free: 6.234 MB / 0.8575 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.01379/0.9925, allocations: 7.591 MB / 1.134 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002054/0.9946, allocations: 1.45 MB / 1.135 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000968/0.9956, allocations: 0.6657 MB / 1.136 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006842/1.002, allocations: 3.835 MB / 1.14 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/1.003, allocations: 43.44 kB / 1.14 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=88): time 2.545e-06/1.003, allocations: 0 / 1.14 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of matching and sorting (n=88): time 0.002692/1.005, allocations: 1.508 MB / 1.141 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/1.005, allocations: 61.06 kB / 1.141 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002409/1.008, allocations: 1.606 MB / 1.143 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001492/1.008, allocations: 48.97 kB / 1.143 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.00073/1.009, allocations: 0.7608 MB / 1.144 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000388/1.009, allocations: 316.7 kB / 1.144 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004551/1.009, allocations: 290.1 kB / 1.144 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002027/1.01, allocations: 362.3 kB / 1.145 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/1.011, allocations: 0.6979 MB / 1.145 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/1.012, allocations: 1.017 MB / 1.146 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/1.014, allocations: 1.62 MB / 1.148 GB, free: 9.266 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/1.014, allocations: 7.266 kB / 1.148 GB, free: 9.262 MB / 0.8731 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003444/1.018, allocations: 1.957 MB / 1.15 GB, free: 8.254 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/1.018, allocations: 9.219 kB / 1.15 GB, free: 8.254 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/1.018, allocations: 12.34 kB / 1.15 GB, free: 8.25 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.085e-05/1.018, allocations: 16.97 kB / 1.15 GB, free: 8.25 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/1.019, allocations: 335.3 kB / 1.15 GB, free: 8.168 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-05/1.019, allocations: 19.31 kB / 1.15 GB, free: 8.164 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/1.021, allocations: 215.3 kB / 1.15 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/1.021, allocations: 65.27 kB / 1.15 GB, free: 8.004 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002167/1.023, allocations: 1.284 MB / 1.152 GB, free: 7.266 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001373/1.025, allocations: 1.02 MB / 1.153 GB, free: 6.508 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002266/1.027, allocations: 1.622 MB / 1.154 GB, free: 5.43 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.014e-05/1.027, allocations: 10.42 kB / 1.154 GB, free: 5.422 MB / 0.8731 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003403/1.03, allocations: 1.945 MB / 1.156 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/1.03, allocations: 10.81 kB / 1.156 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/1.03, allocations: 10.16 kB / 1.156 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/1.031, allocations: 15.22 kB / 1.156 GB, free: 4.426 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/1.032, allocations: 343.5 kB / 1.157 GB, free: 4.336 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.425e-05/1.032, allocations: 20 kB / 1.157 GB, free: 4.332 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/1.033, allocations: 163.2 kB / 1.157 GB, free: 4.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/1.033, allocations: 66.7 kB / 1.157 GB, free: 4.211 MB / 0.8731 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.0004108/1.034, allocations: 257.3 kB / 1.157 GB, free: 3.969 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003418/1.034, allocations: 158 kB / 1.157 GB, free: 3.883 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002262/1.036, allocations: 1.279 MB / 1.158 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/1.036, allocations: 8.531 kB / 1.158 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/1.036, allocations: 3.984 kB / 1.158 GB, free: 3.152 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001636/1.038, allocations: 1.283 MB / 1.16 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004831/1.043, allocations: 2.94 MB / 1.163 GB, free: 380 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/1.043, allocations: 1.375 kB / 1.163 GB, free: 380 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008189/1.044, allocations: 190.2 kB / 1.163 GB, free: 332 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.885e-06/1.044, allocations: 4.125 kB / 1.163 GB, free: 332 kB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.515e-05/1.044, allocations: 24.23 kB / 1.163 GB, free: 316 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/1.044, allocations: 4.125 kB / 1.163 GB, free: 316 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/1.044, allocations: 1.375 kB / 1.163 GB, free: 316 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002834/1.047, allocations: 1.923 MB / 1.165 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008671/1.048, allocations: 400.2 kB / 1.165 GB, free: 14.9 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/1.048, allocations: 27.14 kB / 1.165 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000885/1.049, allocations: 72.31 kB / 1.165 GB, free: 14.84 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/1.049, allocations: 55.61 kB / 1.165 GB, free: 14.81 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.462e-05/1.049, allocations: 41.34 kB / 1.165 GB, free: 14.79 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001722/1.051, allocations: 1.211 MB / 1.166 GB, free: 14.14 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.61e-07/1.051, allocations: 0 / 1.166 GB, free: 14.14 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002562/1.053, allocations: 0.9048 MB / 1.167 GB, free: 13.97 MB / 0.8887 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.0008785/1.054, allocations: 364.3 kB / 1.168 GB, free: 13.76 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.004873/1.059, allocations: 2.831 MB / 1.17 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.059, allocations: 4.438 kB / 1.17 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0007871/1.06, allocations: 0.5248 MB / 1.171 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/1.064, allocations: 0.9119 MB / 1.172 GB, free: 9.715 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006613/1.071, allocations: 4.269 MB / 1.176 GB, free: 5.398 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/1.072, allocations: 1.637 MB / 1.178 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006955/1.073, allocations: 147.3 kB / 1.178 GB, free: 3.586 MB / 0.8887 GB Notification: Performance of SimCode: time 1.393e-06/1.073, allocations: 0 / 1.178 GB, free: 3.586 MB / 0.8887 GB Notification: Performance of Templates: time 0.05335/1.126, allocations: 32.34 MB / 1.209 GB, free: 3.453 MB / 0.92 GB make -j1 -f Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches