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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001158/0.001159, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001759/0.001759, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.438/2.438, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003772, allocations: 8 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8315/0.8319, allocations: 142.4 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02924/0.8612, allocations: 26.28 MB / 0.9801 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01183/0.873, allocations: 7.398 MB / 0.9873 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.8746, allocations: 34.12 kB / 0.9874 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.8757, allocations: 276.1 kB / 0.9876 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.002648/0.8784, allocations: 0.8142 MB / 0.9884 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002897/0.8813, allocations: 0.7787 MB / 0.9892 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006098/0.8874, allocations: 5.263 MB / 0.9943 GB, free: 6.578 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002302/0.8897, allocations: 1.609 MB / 0.9959 GB, free: 4.941 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002869/0.8926, allocations: 1.311 MB / 0.9972 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.8944, allocations: 1.229 MB / 0.9984 GB, free: 2.391 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001717/0.8945, allocations: 80 kB / 0.9984 GB, free: 2.312 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002517/0.8971, allocations: 0.9905 MB / 0.9994 GB, free: 1.32 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003781/0.8975, allocations: 358.5 kB / 0.9998 GB, free: 0.9688 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0005762/0.898, allocations: 420.8 kB / 1 GB, free: 0.5508 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.003194/0.9012, allocations: 2.819 MB / 1.003 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.9013, allocations: 0 / 1.003 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.745e-06/0.9013, allocations: 0 / 1.003 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.858e-05/0.9013, allocations: 0 / 1.003 GB, free: 13.73 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.004274/0.9056, allocations: 2.156 MB / 1.005 GB, free: 11.52 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.9056, allocations: 8.031 kB / 1.005 GB, free: 11.51 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006731/0.9063, allocations: 233.5 kB / 1.005 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.9092, allocations: 1.73 MB / 1.007 GB, free: 9.492 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.462e-05/0.9093, allocations: 110.7 kB / 1.007 GB, free: 9.383 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000226/0.9095, allocations: 152 kB / 1.007 GB, free: 9.234 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003261/0.9128, allocations: 1.986 MB / 1.009 GB, free: 7.184 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.9128, allocations: 4 kB / 1.009 GB, free: 7.18 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/0.913, allocations: 59.95 kB / 1.009 GB, free: 7.121 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.757e-05/0.913, allocations: 44 kB / 1.009 GB, free: 7.078 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002782/0.9158, allocations: 1.79 MB / 1.011 GB, free: 5.281 MB / 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.01013/0.9259, allocations: 7.618 MB / 1.018 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001809/0.9278, allocations: 1.437 MB / 1.02 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008599/0.9286, allocations: 0.6564 MB / 1.02 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005826/0.9345, allocations: 3.838 MB / 1.024 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.9345, allocations: 47.56 kB / 1.024 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=88): time 2.605e-06/0.9345, allocations: 4 kB / 1.024 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of matching and sorting (n=88): time 0.002372/0.9369, allocations: 1.51 MB / 1.026 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.937, allocations: 60.41 kB / 1.026 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.9392, allocations: 1.59 MB / 1.027 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.449e-05/0.9393, allocations: 45.7 kB / 1.027 GB, free: 3.781 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006576/0.94, allocations: 0.7575 MB / 1.028 GB, free: 3.016 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002993/0.9403, allocations: 315.5 kB / 1.028 GB, free: 2.703 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.834e-05/0.9404, allocations: 32 kB / 1.028 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.9405, allocations: 365.9 kB / 1.029 GB, free: 2.309 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.9416, allocations: 0.6792 MB / 1.029 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.9428, allocations: 1.016 MB / 1.03 GB, free: 496 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.9441, allocations: 0.865 MB / 1.031 GB, free: 15.62 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.9441, allocations: 4 kB / 1.031 GB, free: 15.61 MB / 0.795 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002833/0.947, allocations: 1.936 MB / 1.033 GB, free: 13.67 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002441/0.9472, allocations: 364.8 kB / 1.034 GB, free: 13.19 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.9472, allocations: 8 kB / 1.034 GB, free: 13.18 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.9473, allocations: 16 kB / 1.034 GB, free: 13.17 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.9485, allocations: 331.5 kB / 1.034 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.16e-05/0.9485, allocations: 27.88 kB / 1.034 GB, free: 12.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.9498, allocations: 221.6 kB / 1.034 GB, free: 12.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/0.9499, allocations: 67.92 kB / 1.034 GB, free: 12.54 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.464e-06/0.9499, allocations: 4 kB / 1.034 GB, free: 12.53 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002605/0.9526, allocations: 1.779 MB / 1.036 GB, free: 10.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.9526, allocations: 8 kB / 1.036 GB, free: 10.74 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.9526, allocations: 19.94 kB / 1.036 GB, free: 10.72 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.9537, allocations: 335.5 kB / 1.036 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.43e-05/0.9538, allocations: 23.92 kB / 1.036 GB, free: 10.37 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.9549, allocations: 187.1 kB / 1.036 GB, free: 10.19 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.9551, allocations: 63.98 kB / 1.037 GB, free: 10.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001201/0.9563, allocations: 0.7579 MB / 1.037 GB, free: 9.355 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003307/0.9566, allocations: 154.1 kB / 1.037 GB, free: 9.203 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.9587, allocations: 1.275 MB / 1.039 GB, free: 7.914 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.9587, allocations: 12 kB / 1.039 GB, free: 7.902 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.9587, allocations: 0 / 1.039 GB, free: 7.902 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001429/0.9602, allocations: 1.28 MB / 1.04 GB, free: 6.539 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/0.9648, allocations: 2.935 MB / 1.043 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.9648, allocations: 0 / 1.043 GB, free: 3.527 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007547/0.9655, allocations: 187.9 kB / 1.043 GB, free: 3.344 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.497e-05/0.9656, allocations: 4 kB / 1.043 GB, free: 3.34 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.57e-05/0.9657, allocations: 27.98 kB / 1.043 GB, free: 3.312 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.306e-06/0.9657, allocations: 4 kB / 1.043 GB, free: 3.309 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.9657, allocations: 64 / 1.043 GB, free: 3.309 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.9682, allocations: 1.917 MB / 1.045 GB, free: 1.359 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007996/0.969, allocations: 422.8 kB / 1.045 GB, free: 0.9258 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003135/0.9694, allocations: 19.98 kB / 1.045 GB, free: 0.9062 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008968/0.9703, allocations: 81.17 kB / 1.045 GB, free: 0.8281 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.564e-05/0.9704, allocations: 52.88 kB / 1.045 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.157e-05/0.9705, allocations: 43.92 kB / 1.045 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001802/0.9723, allocations: 1.191 MB / 1.047 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9723, allocations: 0 / 1.047 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003061/0.9754, allocations: 0.9084 MB / 1.048 GB, free: 14.63 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009455/0.9763, allocations: 352.6 kB / 1.048 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003934/0.9803, allocations: 2.308 MB / 1.05 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.9803, allocations: 0 / 1.05 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007274/0.981, allocations: 0.5224 MB / 1.051 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003954/0.985, allocations: 0.8611 MB / 1.051 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006606/0.9916, allocations: 4.372 MB / 1.056 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/0.9931, allocations: 1.674 MB / 1.057 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.00315/0.9962, allocations: 0.9266 MB / 1.058 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005572/0.9968, allocations: 131.4 kB / 1.058 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of SimCode: time 1.423e-06/0.9968, allocations: 0 / 1.058 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of Templates: time 0.05532/1.052, allocations: 32.96 MB / 1.091 GB, free: 2.895 MB / 0.8419 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