Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.004779/0.004779, allocations: 101.4 kB / 15.73 MB, free: 5.492 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.001026/0.001026, allocations: 186.3 kB / 16.67 MB, free: 5.422 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 14.96 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.376/2.376, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.89 kB / 0.9508 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9428/0.9441, allocations: 140.4 MB / 1.088 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03172/0.9758, allocations: 28.59 MB / 1.116 GB, free: 1.305 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01399/0.9899, allocations: 7.907 MB / 1.124 GB, free: 11.66 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002108/0.992, allocations: 34.72 kB / 1.124 GB, free: 11.65 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.9937, allocations: 418.7 kB / 1.124 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.9978, allocations: 1.066 MB / 1.125 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003791/1.002, allocations: 1.07 MB / 1.126 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.008158/1.01, allocations: 4.929 MB / 1.131 GB, free: 7.824 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004029/1.014, allocations: 2.286 MB / 1.133 GB, free: 6.852 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005538/1.019, allocations: 1.818 MB / 1.135 GB, free: 6.047 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004085/1.023, allocations: 1.46 MB / 1.136 GB, free: 5.375 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001312/1.025, allocations: 229.7 kB / 1.137 GB, free: 5.375 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005048/1.03, allocations: 1.312 MB / 1.138 GB, free: 5.008 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001294/1.031, allocations: 0.5562 MB / 1.138 GB, free: 4.66 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002469/1.034, allocations: 1.155 MB / 1.139 GB, free: 3.957 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.007145/1.041, allocations: 3.684 MB / 1.143 GB, free: 2.676 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/1.041, allocations: 3.938 kB / 1.143 GB, free: 2.672 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.655e-06/1.041, allocations: 9.062 kB / 1.143 GB, free: 2.664 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.712e-05/1.041, allocations: 0 / 1.143 GB, free: 2.664 MB / 0.8887 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.007448/1.048, allocations: 2.561 MB / 1.146 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/1.048, allocations: 10.44 kB / 1.146 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/1.05, allocations: 238.9 kB / 1.146 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00385/1.053, allocations: 1.797 MB / 1.148 GB, free: 164 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.904e-05/1.054, allocations: 111.1 kB / 1.148 GB, free: 112 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002779/1.054, allocations: 149.9 kB / 1.148 GB, free: 64 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003831/1.058, allocations: 1.998 MB / 1.15 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.502e-05/1.058, allocations: 7 kB / 1.15 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001637/1.058, allocations: 65.91 kB / 1.15 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.687e-05/1.058, allocations: 37.2 kB / 1.15 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003309/1.061, allocations: 1.793 MB / 1.152 GB, free: 14.61 MB / 0.9044 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.01493/1.076, allocations: 7.604 MB / 1.159 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002086/1.078, allocations: 1.445 MB / 1.16 GB, free: 8.527 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009714/1.079, allocations: 0.6651 MB / 1.161 GB, free: 8.184 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007041/1.086, allocations: 3.847 MB / 1.165 GB, free: 4.965 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/1.087, allocations: 47.84 kB / 1.165 GB, free: 4.914 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=88): time 2.394e-06/1.087, allocations: 0 / 1.165 GB, free: 4.914 MB / 0.9044 GB Notification: Performance of matching and sorting (n=88): time 0.002802/1.089, allocations: 1.508 MB / 1.166 GB, free: 4.148 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/1.089, allocations: 60.66 kB / 1.166 GB, free: 4.086 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/1.092, allocations: 1.645 MB / 1.168 GB, free: 3.203 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001692/1.092, allocations: 51.42 kB / 1.168 GB, free: 3.152 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006613/1.093, allocations: 0.7586 MB / 1.169 GB, free: 2.488 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000428/1.093, allocations: 315.8 kB / 1.169 GB, free: 2.215 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004632/1.094, allocations: 288.9 kB / 1.169 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001658/1.094, allocations: 367.2 kB / 1.17 GB, free: 1.711 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/1.095, allocations: 0.6943 MB / 1.17 GB, free: 1.344 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/1.096, allocations: 1.021 MB / 1.171 GB, free: 0.5781 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/1.099, allocations: 1.618 MB / 1.173 GB, free: 15.5 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/1.099, allocations: 3.406 kB / 1.173 GB, free: 15.5 MB / 0.92 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003652/1.103, allocations: 1.958 MB / 1.175 GB, free: 14.49 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/1.103, allocations: 8.875 kB / 1.175 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/1.103, allocations: 9.219 kB / 1.175 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.688e-05/1.103, allocations: 19.14 kB / 1.175 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/1.104, allocations: 336.9 kB / 1.175 GB, free: 14.41 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.899e-05/1.104, allocations: 19.16 kB / 1.175 GB, free: 14.4 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/1.106, allocations: 199.6 kB / 1.176 GB, free: 14.27 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/1.106, allocations: 66.17 kB / 1.176 GB, free: 14.25 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002327/1.108, allocations: 1.284 MB / 1.177 GB, free: 13.51 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00132/1.11, allocations: 1.015 MB / 1.178 GB, free: 12.75 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002126/1.112, allocations: 1.626 MB / 1.179 GB, free: 11.67 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.524e-06/1.112, allocations: 2.25 kB / 1.179 GB, free: 11.67 MB / 0.92 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003484/1.115, allocations: 1.946 MB / 1.181 GB, free: 10.67 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/1.115, allocations: 13 kB / 1.181 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/1.115, allocations: 7.969 kB / 1.181 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/1.115, allocations: 16.59 kB / 1.181 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/1.117, allocations: 335.8 kB / 1.182 GB, free: 10.59 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.231e-05/1.117, allocations: 19.16 kB / 1.182 GB, free: 10.58 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/1.118, allocations: 152.5 kB / 1.182 GB, free: 10.48 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/1.118, allocations: 57.7 kB / 1.182 GB, free: 10.47 MB / 0.92 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.0004492/1.119, allocations: 266.9 kB / 1.182 GB, free: 10.22 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003429/1.119, allocations: 150.4 kB / 1.182 GB, free: 10.14 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/1.121, allocations: 1.279 MB / 1.184 GB, free: 9.418 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.015e-05/1.121, allocations: 12.25 kB / 1.184 GB, free: 9.414 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/1.121, allocations: 1.375 kB / 1.184 GB, free: 9.414 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001576/1.123, allocations: 1.286 MB / 1.185 GB, free: 8.508 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005098/1.128, allocations: 2.961 MB / 1.188 GB, free: 6.488 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/1.128, allocations: 0 / 1.188 GB, free: 6.488 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007845/1.129, allocations: 187.8 kB / 1.188 GB, free: 6.305 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/1.129, allocations: 4 kB / 1.188 GB, free: 6.301 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.249e-05/1.129, allocations: 24 kB / 1.188 GB, free: 6.277 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.408e-06/1.129, allocations: 16.05 kB / 1.188 GB, free: 6.262 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.129, allocations: 0 / 1.188 GB, free: 6.262 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/1.131, allocations: 1.909 MB / 1.19 GB, free: 4.32 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008707/1.132, allocations: 406.9 kB / 1.19 GB, free: 3.902 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/1.133, allocations: 27.89 kB / 1.19 GB, free: 3.875 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007493/1.133, allocations: 47.83 kB / 1.19 GB, free: 3.828 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/1.133, allocations: 52.92 kB / 1.19 GB, free: 3.777 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.887e-05/1.134, allocations: 35.98 kB / 1.19 GB, free: 3.742 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001782/1.135, allocations: 1.238 MB / 1.192 GB, free: 2.508 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.4e-07/1.135, allocations: 0 / 1.192 GB, free: 2.508 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002761/1.138, allocations: 0.9163 MB / 1.192 GB, free: 1.59 MB / 0.92 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.0008589/1.139, allocations: 374.1 kB / 1.193 GB, free: 1.223 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003502/1.142, allocations: 2.325 MB / 1.195 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/1.142, allocations: 7.938 kB / 1.195 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007005/1.143, allocations: 0.5176 MB / 1.196 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003579/1.147, allocations: 0.921 MB / 1.196 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00579/1.153, allocations: 3.67 MB / 1.2 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/1.154, allocations: 1.689 MB / 1.202 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00273/1.157, allocations: 0.9216 MB / 1.203 GB, free: 7.145 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/1.157, allocations: 135.4 kB / 1.203 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of SimCode: time 7.82e-07/1.157, allocations: 0 / 1.203 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of Templates: time 0.06357/1.221, allocations: 36.12 MB / 1.238 GB, free: 3.316 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches