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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001119/0.001119, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008868/0.008868, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.411/1.411, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.785/2.785, allocations: 462.7 MB / 0.7364 GB, free: 352 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003897, allocations: 11.84 kB / 0.9028 GB, free: 36.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3902, allocations: 159.6 MB / 1.059 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02679/0.417, allocations: 27.75 MB / 1.086 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01201/0.4291, allocations: 7.885 MB / 1.093 GB, free: 1.809 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00167/0.4308, allocations: 31.81 kB / 1.093 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.432, allocations: 326.1 kB / 1.094 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003209/0.4352, allocations: 0.9331 MB / 1.095 GB, free: 0.5195 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003005/0.4382, allocations: 0.9481 MB / 1.096 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006528/0.4447, allocations: 6.084 MB / 1.102 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00254/0.4473, allocations: 1.783 MB / 1.103 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002955/0.4503, allocations: 1.322 MB / 1.105 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002497/0.4528, allocations: 1.303 MB / 1.106 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002591/0.4531, allocations: 83.94 kB / 1.106 GB, free: 4.941 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002856/0.456, allocations: 1.135 MB / 1.107 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004783/0.4565, allocations: 370.4 kB / 1.107 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001728/0.4582, allocations: 0.9772 MB / 1.108 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00506/0.4633, allocations: 3.474 MB / 1.112 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4633, allocations: 0 / 1.112 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4633, allocations: 0 / 1.112 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.045e-05/0.4634, allocations: 0 / 1.112 GB, free: 14.97 MB / 0.8731 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.004975/0.4684, allocations: 2.133 MB / 1.114 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.4684, allocations: 16.02 kB / 1.114 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008081/0.4692, allocations: 230.4 kB / 1.114 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003114/0.4724, allocations: 1.769 MB / 1.116 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-05/0.4725, allocations: 118.7 kB / 1.116 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002535/0.4727, allocations: 148 kB / 1.116 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003515/0.4763, allocations: 2.001 MB / 1.118 GB, free: 8.387 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.895e-05/0.4763, allocations: 3.906 kB / 1.118 GB, free: 8.383 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.4765, allocations: 63.98 kB / 1.118 GB, free: 8.32 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.432e-05/0.4765, allocations: 39.98 kB / 1.118 GB, free: 8.281 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002939/0.4795, allocations: 1.794 MB / 1.12 GB, free: 6.48 MB / 0.8731 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.01219/0.4917, allocations: 7.626 MB / 1.127 GB, free: 14.55 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/0.4938, allocations: 1.44 MB / 1.129 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009116/0.4947, allocations: 0.6564 MB / 1.129 GB, free: 12.42 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007458/0.5022, allocations: 3.839 MB / 1.133 GB, free: 8.266 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.128e-05/0.5023, allocations: 43.56 kB / 1.133 GB, free: 8.215 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=88): time 3.096e-06/0.5023, allocations: 0 / 1.133 GB, free: 8.215 MB / 0.8887 GB Notification: Performance of matching and sorting (n=88): time 0.002809/0.5051, allocations: 1.517 MB / 1.135 GB, free: 6.695 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.5052, allocations: 60.41 kB / 1.135 GB, free: 6.621 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002505/0.5077, allocations: 1.606 MB / 1.136 GB, free: 5.004 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.5079, allocations: 53.7 kB / 1.136 GB, free: 4.945 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007214/0.5086, allocations: 0.7575 MB / 1.137 GB, free: 4.18 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003265/0.5089, allocations: 315.4 kB / 1.137 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.5091, allocations: 133.6 kB / 1.137 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.5093, allocations: 361.9 kB / 1.138 GB, free: 3.371 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.5103, allocations: 0.6908 MB / 1.139 GB, free: 2.68 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.5118, allocations: 1.016 MB / 1.14 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.514, allocations: 1.624 MB / 1.141 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.5141, allocations: 7.938 kB / 1.141 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003253/0.5173, allocations: 1.947 MB / 1.143 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.000279/0.5176, allocations: 361.4 kB / 1.143 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.5176, allocations: 8 kB / 1.143 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.5177, allocations: 16 kB / 1.143 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.5189, allocations: 335.5 kB / 1.144 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.429e-05/0.519, allocations: 19.94 kB / 1.144 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.5205, allocations: 214.1 kB / 1.144 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.5207, allocations: 68.05 kB / 1.144 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.5207, allocations: 7.938 kB / 1.144 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002805/0.5235, allocations: 1.799 MB / 1.146 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.5235, allocations: 12 kB / 1.146 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.5235, allocations: 16 kB / 1.146 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.5247, allocations: 331.5 kB / 1.146 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.113e-05/0.5248, allocations: 19.94 kB / 1.146 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.5262, allocations: 186.8 kB / 1.146 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.5263, allocations: 59.98 kB / 1.146 GB, free: 10.27 MB / 0.9044 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.001334/0.5276, allocations: 0.7479 MB / 1.147 GB, free: 9.516 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004511/0.5281, allocations: 158 kB / 1.147 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.5303, allocations: 1.287 MB / 1.148 GB, free: 8.059 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.5303, allocations: 8 kB / 1.148 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.5303, allocations: 0 / 1.148 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001537/0.5319, allocations: 1.292 MB / 1.15 GB, free: 6.676 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004944/0.5368, allocations: 2.935 MB / 1.153 GB, free: 3.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.5368, allocations: 0 / 1.153 GB, free: 3.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007911/0.5376, allocations: 187.8 kB / 1.153 GB, free: 3.477 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/0.5377, allocations: 4 kB / 1.153 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-05/0.5377, allocations: 24.12 kB / 1.153 GB, free: 3.449 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.796e-06/0.5378, allocations: 11.94 kB / 1.153 GB, free: 3.438 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5378, allocations: 0 / 1.153 GB, free: 3.438 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/0.5406, allocations: 1.909 MB / 1.155 GB, free: 1.496 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008984/0.5415, allocations: 430.8 kB / 1.155 GB, free: 1.055 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/0.5417, allocations: 27.94 kB / 1.155 GB, free: 1.027 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008882/0.5426, allocations: 78.16 kB / 1.155 GB, free: 0.9531 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.5427, allocations: 52.86 kB / 1.155 GB, free: 0.8984 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.69e-05/0.5428, allocations: 39.97 kB / 1.155 GB, free: 0.8594 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001813/0.5446, allocations: 1.207 MB / 1.156 GB, free: 15.66 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5446, allocations: 0 / 1.156 GB, free: 15.66 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002638/0.5473, allocations: 0.9084 MB / 1.157 GB, free: 14.75 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.0009217/0.5482, allocations: 363.5 kB / 1.158 GB, free: 14.39 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003664/0.5519, allocations: 2.324 MB / 1.16 GB, free: 12.07 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.5519, allocations: 0 / 1.16 GB, free: 12.07 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.5527, allocations: 0.5209 MB / 1.16 GB, free: 11.55 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004617/0.5573, allocations: 0.8655 MB / 1.161 GB, free: 10.7 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.5635, allocations: 4.426 MB / 1.166 GB, free: 6.238 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.5648, allocations: 1.682 MB / 1.167 GB, free: 4.52 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00281/0.5676, allocations: 0.9131 MB / 1.168 GB, free: 3.621 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.5681, allocations: 139.3 kB / 1.168 GB, free: 3.484 MB / 0.92 GB Notification: Performance of SimCode: time 8.82e-07/0.5681, allocations: 0 / 1.168 GB, free: 3.484 MB / 0.92 GB Notification: Performance of Templates: time 0.0589/0.627, allocations: 33.95 MB / 1.201 GB, free: 1.879 MB / 0.9512 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches