Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.0008422/0.0008424, allocations: 98.03 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.005877/0.005878, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.395/1.395, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.711/2.711, allocations: 437.8 MB / 0.7121 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003896, allocations: 8 kB / 0.8728 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.847/0.8474, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02853/0.876, allocations: 27.75 MB / 1.05 GB, free: 3.969 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01263/0.8887, allocations: 7.878 MB / 1.058 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.8905, allocations: 27.81 kB / 1.058 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.8918, allocations: 334.1 kB / 1.058 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.003321/0.8951, allocations: 0.9292 MB / 1.059 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003026/0.8982, allocations: 0.9415 MB / 1.06 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.006855/0.905, allocations: 6.081 MB / 1.066 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/0.9078, allocations: 1.792 MB / 1.068 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00302/0.9109, allocations: 1.322 MB / 1.069 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002554/0.9134, allocations: 1.295 MB / 1.07 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002606/0.9137, allocations: 76 kB / 1.07 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002781/0.9165, allocations: 1.138 MB / 1.071 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0004808/0.917, allocations: 378.3 kB / 1.072 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.9186, allocations: 0.9811 MB / 1.073 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.004624/0.9232, allocations: 3.47 MB / 1.076 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.9233, allocations: 0 / 1.076 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.794e-06/0.9233, allocations: 0 / 1.076 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.836e-05/0.9234, allocations: 0 / 1.076 GB, free: 9.238 MB / 0.8262 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.004938/0.9283, allocations: 2.141 MB / 1.078 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.9284, allocations: 8.031 kB / 1.078 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008835/0.9293, allocations: 234.4 kB / 1.078 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003453/0.9327, allocations: 1.765 MB / 1.08 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.9329, allocations: 118.7 kB / 1.08 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.9331, allocations: 148 kB / 1.08 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003724/0.9369, allocations: 2.005 MB / 1.082 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.692e-05/0.9369, allocations: 4 kB / 1.082 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001506/0.9371, allocations: 56 kB / 1.082 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.587e-05/0.9372, allocations: 39.98 kB / 1.082 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003124/0.9403, allocations: 1.798 MB / 1.084 GB, free: 0.7539 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.01251/0.9528, allocations: 7.637 MB / 1.092 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.9548, allocations: 1.44 MB / 1.093 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008935/0.9557, allocations: 0.6642 MB / 1.094 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006708/0.9624, allocations: 3.838 MB / 1.097 GB, free: 2.523 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/0.9625, allocations: 43.56 kB / 1.098 GB, free: 2.473 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=88): time 4.698e-06/0.9625, allocations: 0 / 1.098 GB, free: 2.473 MB / 0.8419 GB Notification: Performance of matching and sorting (n=88): time 0.003662/0.9662, allocations: 1.514 MB / 1.099 GB, free: 0.957 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.993e-05/0.9663, allocations: 61.61 kB / 1.099 GB, free: 0.8828 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002575/0.9689, allocations: 1.61 MB / 1.101 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.9691, allocations: 45.7 kB / 1.101 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000796/0.9699, allocations: 0.7575 MB / 1.101 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.9704, allocations: 319.5 kB / 1.102 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.9706, allocations: 129.6 kB / 1.102 GB, free: 14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001869/0.9708, allocations: 361.9 kB / 1.102 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.9719, allocations: 0.6831 MB / 1.103 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.9733, allocations: 1.02 MB / 1.104 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002268/0.9756, allocations: 1.62 MB / 1.105 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.9756, allocations: 3.938 kB / 1.105 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003471/0.9791, allocations: 1.959 MB / 1.107 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004869/0.9796, allocations: 357.4 kB / 1.108 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.9796, allocations: 8 kB / 1.108 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.375e-05/0.9797, allocations: 16 kB / 1.108 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.981, allocations: 335.5 kB / 1.108 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.946e-05/0.9811, allocations: 19.94 kB / 1.108 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.9828, allocations: 218.1 kB / 1.108 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.9829, allocations: 55.98 kB / 1.108 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.983, allocations: 11.88 kB / 1.108 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002848/0.9858, allocations: 1.799 MB / 1.11 GB, free: 5.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.9859, allocations: 8 kB / 1.11 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.9859, allocations: 16 kB / 1.11 GB, free: 5.137 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.987, allocations: 335.5 kB / 1.11 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.136e-05/0.9871, allocations: 19.94 kB / 1.11 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.9886, allocations: 190.7 kB / 1.111 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.9887, allocations: 59.98 kB / 1.111 GB, free: 4.543 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001491/0.9902, allocations: 0.758 MB / 1.111 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004573/0.9907, allocations: 158 kB / 1.112 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/0.9933, allocations: 1.28 MB / 1.113 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/0.9933, allocations: 11.98 kB / 1.113 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.9933, allocations: 0 / 1.113 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001726/0.995, allocations: 1.281 MB / 1.114 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005101/1, allocations: 2.939 MB / 1.117 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/1, allocations: 4 kB / 1.117 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008089/1.001, allocations: 187.7 kB / 1.117 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.749e-05/1.001, allocations: 7.938 kB / 1.117 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-05/1.001, allocations: 27.98 kB / 1.117 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.486e-06/1.001, allocations: 8.125 kB / 1.117 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.001, allocations: 4 kB / 1.117 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002974/1.004, allocations: 1.909 MB / 1.119 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009849/1.005, allocations: 422.8 kB / 1.119 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004067/1.006, allocations: 28.17 kB / 1.119 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/1.007, allocations: 79.77 kB / 1.12 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/1.007, allocations: 56.88 kB / 1.12 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.784e-05/1.007, allocations: 35.97 kB / 1.12 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001858/1.009, allocations: 1.203 MB / 1.121 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.2e-07/1.009, allocations: 3.938 kB / 1.121 GB, free: 9.918 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002779/1.012, allocations: 0.9124 MB / 1.122 GB, free: 9.004 MB / 0.8731 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.0009156/1.013, allocations: 363.2 kB / 1.122 GB, free: 8.652 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003796/1.016, allocations: 2.324 MB / 1.124 GB, free: 6.332 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.016, allocations: 0 / 1.124 GB, free: 6.332 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007422/1.017, allocations: 0.5209 MB / 1.125 GB, free: 5.816 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005173/1.022, allocations: 0.8765 MB / 1.126 GB, free: 4.953 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007624/1.03, allocations: 4.406 MB / 1.13 GB, free: 0.5 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001893/1.032, allocations: 1.69 MB / 1.132 GB, free: 14.78 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.003387/1.035, allocations: 0.915 MB / 1.133 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006083/1.036, allocations: 139.4 kB / 1.133 GB, free: 13.74 MB / 0.8887 GB Notification: Performance of SimCode: time 9.52e-07/1.036, allocations: 0 / 1.133 GB, free: 13.74 MB / 0.8887 GB Notification: Performance of Templates: time 0.06285/1.099, allocations: 33.95 MB / 1.166 GB, free: 12.18 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches