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.001044/0.001044, allocations: 98.27 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.008454/0.008454, allocations: 170.6 kB / 16.27 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.428/1.428, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.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.46/2.46, allocations: 390.9 MB / 0.6663 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.0003471, allocations: 11.94 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8876/0.888, allocations: 142.4 MB / 0.955 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02925/0.9173, allocations: 27.74 MB / 0.9821 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0131/0.9304, allocations: 7.879 MB / 0.9898 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001908/0.9324, allocations: 29.38 kB / 0.9899 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.9336, allocations: 330.9 kB / 0.9902 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.003431/0.9371, allocations: 0.934 MB / 0.9911 GB, free: 10 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003242/0.9403, allocations: 0.9353 MB / 0.992 GB, free: 9.305 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.007022/0.9474, allocations: 6.084 MB / 0.9979 GB, free: 3.281 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00255/0.9499, allocations: 1.792 MB / 0.9997 GB, free: 1.453 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002771/0.9527, allocations: 1.326 MB / 1.001 GB, free: 124 kB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.9547, allocations: 1.31 MB / 1.002 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.9549, allocations: 76 kB / 1.002 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.9575, allocations: 1.131 MB / 1.003 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0003914/0.9579, allocations: 374.4 kB / 1.004 GB, free: 13.23 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.9592, allocations: 0.9811 MB / 1.005 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.004283/0.9635, allocations: 3.458 MB / 1.008 GB, free: 8.77 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.9635, allocations: 7.938 kB / 1.008 GB, free: 8.762 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.904e-06/0.9635, allocations: 3.938 kB / 1.008 GB, free: 8.758 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.396e-05/0.9636, allocations: 0 / 1.008 GB, free: 8.758 MB / 0.7637 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.004428/0.968, allocations: 2.129 MB / 1.01 GB, free: 6.574 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.9681, allocations: 12.03 kB / 1.01 GB, free: 6.562 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007429/0.9688, allocations: 230.5 kB / 1.01 GB, free: 6.336 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.9717, allocations: 1.776 MB / 1.012 GB, free: 4.508 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.629e-05/0.9718, allocations: 118.7 kB / 1.012 GB, free: 4.391 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002534/0.9721, allocations: 148 kB / 1.012 GB, free: 4.246 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003259/0.9753, allocations: 1.997 MB / 1.014 GB, free: 2.184 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.678e-05/0.9754, allocations: 3.938 kB / 1.014 GB, free: 2.18 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001403/0.9755, allocations: 60 kB / 1.014 GB, free: 2.121 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.067e-05/0.9756, allocations: 40 kB / 1.014 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.9784, allocations: 1.798 MB / 1.016 GB, free: 284 kB / 0.7637 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.01154/0.9899, allocations: 7.617 MB / 1.024 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001901/0.9918, allocations: 1.457 MB / 1.025 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008922/0.9927, allocations: 0.664 MB / 1.026 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006555/0.9993, allocations: 3.838 MB / 1.03 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.9994, allocations: 43.56 kB / 1.03 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=88): time 3.266e-06/0.9994, allocations: 4 kB / 1.03 GB, free: 2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=88): time 0.002512/1.002, allocations: 1.51 MB / 1.031 GB, free: 496 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/1.002, allocations: 68.33 kB / 1.031 GB, free: 416 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002246/1.004, allocations: 1.602 MB / 1.033 GB, free: 14.79 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 9.934e-05/1.004, allocations: 53.7 kB / 1.033 GB, free: 14.73 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006631/1.005, allocations: 0.7575 MB / 1.033 GB, free: 13.97 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.000301/1.005, allocations: 311.6 kB / 1.034 GB, free: 13.66 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/1.005, allocations: 129.6 kB / 1.034 GB, free: 13.53 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001692/1.006, allocations: 373.8 kB / 1.034 GB, free: 13.16 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/1.007, allocations: 0.6831 MB / 1.035 GB, free: 12.47 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/1.008, allocations: 1.02 MB / 1.036 GB, free: 11.32 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/1.01, allocations: 1.62 MB / 1.037 GB, free: 9.574 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/1.01, allocations: 4 kB / 1.037 GB, free: 9.57 MB / 0.795 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003069/1.013, allocations: 1.955 MB / 1.039 GB, free: 7.605 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002693/1.013, allocations: 353.2 kB / 1.04 GB, free: 7.141 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/1.013, allocations: 19.98 kB / 1.04 GB, free: 7.121 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/1.013, allocations: 15.98 kB / 1.04 GB, free: 7.105 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/1.015, allocations: 335.5 kB / 1.04 GB, free: 6.777 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.483e-05/1.015, allocations: 19.92 kB / 1.04 GB, free: 6.758 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/1.016, allocations: 226 kB / 1.04 GB, free: 6.535 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/1.016, allocations: 59.98 kB / 1.04 GB, free: 6.477 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.716e-06/1.016, allocations: 4 kB / 1.04 GB, free: 6.473 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002577/1.019, allocations: 1.792 MB / 1.042 GB, free: 4.68 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/1.019, allocations: 11.94 kB / 1.042 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/1.019, allocations: 19.98 kB / 1.042 GB, free: 4.648 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/1.02, allocations: 335.4 kB / 1.042 GB, free: 4.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.256e-05/1.02, allocations: 23.92 kB / 1.042 GB, free: 4.297 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/1.021, allocations: 190.6 kB / 1.043 GB, free: 4.109 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/1.021, allocations: 59.98 kB / 1.043 GB, free: 4.051 MB / 0.795 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.001266/1.023, allocations: 0.7541 MB / 1.043 GB, free: 3.285 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003217/1.023, allocations: 150.1 kB / 1.044 GB, free: 3.137 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002039/1.025, allocations: 1.277 MB / 1.045 GB, free: 1.848 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/1.025, allocations: 8 kB / 1.045 GB, free: 1.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/1.025, allocations: 0 / 1.045 GB, free: 1.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001475/1.027, allocations: 1.288 MB / 1.046 GB, free: 476 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004212/1.031, allocations: 2.939 MB / 1.049 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/1.031, allocations: 4.062 kB / 1.049 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007674/1.032, allocations: 187.8 kB / 1.049 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/1.032, allocations: 7.938 kB / 1.049 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.01e-05/1.032, allocations: 23.98 kB / 1.049 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/1.032, allocations: 4 kB / 1.049 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.032, allocations: 12 kB / 1.049 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/1.034, allocations: 1.905 MB / 1.051 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007403/1.035, allocations: 426.8 kB / 1.051 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/1.035, allocations: 24 kB / 1.052 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008163/1.036, allocations: 71.77 kB / 1.052 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/1.036, allocations: 64.8 kB / 1.052 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.884e-05/1.036, allocations: 35.98 kB / 1.052 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001667/1.038, allocations: 1.207 MB / 1.053 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/1.038, allocations: 0 / 1.053 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002379/1.04, allocations: 0.9045 MB / 1.054 GB, free: 8.539 MB / 0.8106 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.0008228/1.041, allocations: 370.5 kB / 1.054 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003388/1.045, allocations: 2.321 MB / 1.056 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.045, allocations: 0 / 1.056 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006847/1.045, allocations: 0.5209 MB / 1.057 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004057/1.049, allocations: 0.8703 MB / 1.058 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006018/1.055, allocations: 4.412 MB / 1.062 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001284/1.057, allocations: 1.682 MB / 1.064 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002846/1.059, allocations: 0.9142 MB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003764/1.06, allocations: 135.4 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of SimCode: time 1.403e-06/1.06, allocations: 0 / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of Templates: time 0.05819/1.118, allocations: 33.96 MB / 1.098 GB, free: 11.72 MB / 0.8575 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