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.001148/0.001148, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 182.8 kB / 16.92 MB, free: 6.922 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.515/1.515, allocations: 223.3 MB / 241 MB, free: 5.336 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.477/2.477, allocations: 390.9 MB / 0.667 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003521, allocations: 8.188 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7252/0.7255, allocations: 142.4 MB / 0.9557 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02681/0.7524, allocations: 27.75 MB / 0.9828 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01261/0.7651, allocations: 7.872 MB / 0.9905 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001675/0.7668, allocations: 32.97 kB / 0.9905 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.768, allocations: 326.7 kB / 0.9908 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.00311/0.7711, allocations: 0.9381 MB / 0.9917 GB, free: 10.28 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002876/0.774, allocations: 0.9347 MB / 0.9927 GB, free: 9.516 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006522/0.7805, allocations: 6.094 MB / 0.9986 GB, free: 3.41 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002462/0.783, allocations: 1.788 MB / 1 GB, free: 1.586 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.786, allocations: 1.334 MB / 1.002 GB, free: 252 kB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002258/0.7882, allocations: 1.287 MB / 1.003 GB, free: 14.95 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.00025/0.7885, allocations: 80 kB / 1.003 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002798/0.7913, allocations: 1.139 MB / 1.004 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.000563/0.7919, allocations: 374.3 kB / 1.004 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001569/0.7935, allocations: 0.9772 MB / 1.005 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.003727/0.7972, allocations: 2.852 MB / 1.008 GB, free: 9.52 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.7973, allocations: 0 / 1.008 GB, free: 9.52 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.665e-06/0.7973, allocations: 0 / 1.008 GB, free: 9.52 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.075e-05/0.7974, allocations: 4 kB / 1.008 GB, free: 9.516 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.004993/0.8024, allocations: 2.133 MB / 1.01 GB, free: 7.328 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.8024, allocations: 8.031 kB / 1.01 GB, free: 7.32 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009413/0.8034, allocations: 234.5 kB / 1.011 GB, free: 7.09 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003128/0.8065, allocations: 1.776 MB / 1.012 GB, free: 5.258 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.854e-05/0.8066, allocations: 118.7 kB / 1.012 GB, free: 5.141 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.8069, allocations: 156 kB / 1.013 GB, free: 4.988 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00334/0.8103, allocations: 1.994 MB / 1.014 GB, free: 2.93 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.882e-05/0.8103, allocations: 7.938 kB / 1.014 GB, free: 2.922 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/0.8105, allocations: 56 kB / 1.015 GB, free: 2.867 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.345e-05/0.8105, allocations: 39.98 kB / 1.015 GB, free: 2.828 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002856/0.8134, allocations: 1.794 MB / 1.016 GB, free: 1.027 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.01233/0.8257, allocations: 7.617 MB / 1.024 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/0.8277, allocations: 1.456 MB / 1.025 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009135/0.8287, allocations: 0.6639 MB / 1.026 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006679/0.8354, allocations: 3.846 MB / 1.03 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.8354, allocations: 43.56 kB / 1.03 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=88): time 3.006e-06/0.8354, allocations: 0 / 1.03 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of matching and sorting (n=88): time 0.002692/0.8381, allocations: 1.51 MB / 1.031 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.8382, allocations: 60.41 kB / 1.031 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002609/0.8408, allocations: 1.606 MB / 1.033 GB, free: 15.54 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.8409, allocations: 50.91 kB / 1.033 GB, free: 15.48 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007346/0.8417, allocations: 0.7613 MB / 1.034 GB, free: 14.72 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003149/0.842, allocations: 307.6 kB / 1.034 GB, free: 14.41 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.8422, allocations: 133.6 kB / 1.034 GB, free: 14.28 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.8424, allocations: 365.9 kB / 1.034 GB, free: 13.91 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.8435, allocations: 0.6869 MB / 1.035 GB, free: 13.23 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.8449, allocations: 1.02 MB / 1.036 GB, free: 12.07 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.8471, allocations: 1.62 MB / 1.038 GB, free: 10.33 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.8471, allocations: 4 kB / 1.038 GB, free: 10.32 MB / 0.795 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003416/0.8505, allocations: 1.959 MB / 1.039 GB, free: 8.355 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002947/0.8508, allocations: 354.4 kB / 1.04 GB, free: 7.891 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.8509, allocations: 15.94 kB / 1.04 GB, free: 7.875 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.709e-05/0.8509, allocations: 20 kB / 1.04 GB, free: 7.855 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.8522, allocations: 335.5 kB / 1.04 GB, free: 7.527 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.732e-05/0.8522, allocations: 19.94 kB / 1.04 GB, free: 7.508 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.8537, allocations: 218 kB / 1.04 GB, free: 7.293 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/0.8539, allocations: 59.98 kB / 1.04 GB, free: 7.234 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.8539, allocations: 4 kB / 1.04 GB, free: 7.23 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002824/0.8567, allocations: 1.795 MB / 1.042 GB, free: 5.434 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.8568, allocations: 8.188 kB / 1.042 GB, free: 5.426 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.8568, allocations: 20 kB / 1.042 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.858, allocations: 335.4 kB / 1.043 GB, free: 5.078 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-05/0.858, allocations: 19.94 kB / 1.043 GB, free: 5.059 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.8594, allocations: 190.6 kB / 1.043 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.8595, allocations: 63.98 kB / 1.043 GB, free: 4.809 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.001267/0.8608, allocations: 0.7579 MB / 1.044 GB, free: 4.039 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005003/0.8613, allocations: 150.1 kB / 1.044 GB, free: 3.891 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/0.8636, allocations: 1.277 MB / 1.045 GB, free: 2.602 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.8637, allocations: 11.98 kB / 1.045 GB, free: 2.59 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.8637, allocations: 0 / 1.045 GB, free: 2.59 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001568/0.8653, allocations: 1.292 MB / 1.046 GB, free: 1.211 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005007/0.8703, allocations: 2.932 MB / 1.049 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.8703, allocations: 3.938 kB / 1.049 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007961/0.8711, allocations: 187.8 kB / 1.049 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.681e-05/0.8711, allocations: 7.984 kB / 1.049 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.191e-05/0.8712, allocations: 20 kB / 1.049 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.8712, allocations: 4 kB / 1.049 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.8712, allocations: 3.938 kB / 1.049 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002869/0.8741, allocations: 1.921 MB / 1.051 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008982/0.875, allocations: 422.8 kB / 1.052 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003549/0.8754, allocations: 24 kB / 1.052 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.8764, allocations: 79.39 kB / 1.052 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.8765, allocations: 56.86 kB / 1.052 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-05/0.8766, allocations: 35.98 kB / 1.052 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002032/0.8787, allocations: 1.214 MB / 1.053 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8787, allocations: 0 / 1.053 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002832/0.8815, allocations: 0.9046 MB / 1.054 GB, free: 9.285 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.0009402/0.8825, allocations: 363.2 kB / 1.054 GB, free: 8.938 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.004027/0.8865, allocations: 2.317 MB / 1.056 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.8865, allocations: 4.125 kB / 1.056 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007512/0.8873, allocations: 0.5248 MB / 1.057 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004518/0.8918, allocations: 0.8722 MB / 1.058 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006912/0.8987, allocations: 4.388 MB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.9003, allocations: 1.63 MB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006188/0.9009, allocations: 151.4 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of SimCode: time 1.883e-06/0.9009, allocations: 0 / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of Templates: time 0.05049/0.9514, allocations: 32.05 MB / 1.095 GB, free: 15.13 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/jenkins1/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