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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001/0.001001, allocations: 91.45 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.001295/0.001295, 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.371/1.371, allocations: 223.3 MB / 240 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.586/2.586, allocations: 437.7 MB / 0.7117 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004744, allocations: 8 kB / 0.8722 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5855/0.586, allocations: 153.8 MB / 1.022 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02489/0.6109, allocations: 26.29 MB / 1.048 GB, free: 5.652 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.009736/0.6207, allocations: 7.393 MB / 1.055 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008918/0.6216, allocations: 31.81 kB / 1.055 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008396/0.6225, allocations: 282.1 kB / 1.056 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001937/0.6244, allocations: 0.8195 MB / 1.056 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002084/0.6265, allocations: 0.7748 MB / 1.057 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.005071/0.6316, allocations: 5.25 MB / 1.062 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002127/0.6337, allocations: 1.613 MB / 1.064 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002294/0.6361, allocations: 1.311 MB / 1.065 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.6377, allocations: 1.225 MB / 1.066 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001889/0.6379, allocations: 79.94 kB / 1.066 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.6399, allocations: 0.9866 MB / 1.067 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003818/0.6403, allocations: 354.5 kB / 1.068 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004944/0.6408, allocations: 424.7 kB / 1.068 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002766/0.6436, allocations: 2.819 MB / 1.071 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.6436, allocations: 0 / 1.071 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6436, allocations: 0 / 1.071 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.583e-05/0.6437, allocations: 4 kB / 1.071 GB, free: 14.23 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.003978/0.6477, allocations: 2.16 MB / 1.073 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.6477, allocations: 12.02 kB / 1.073 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007855/0.6485, allocations: 241.4 kB / 1.073 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002766/0.6513, allocations: 1.722 MB / 1.075 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.026e-05/0.6514, allocations: 110.7 kB / 1.075 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002335/0.6516, allocations: 152 kB / 1.075 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003095/0.6547, allocations: 1.99 MB / 1.077 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.6548, allocations: 11.94 kB / 1.077 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.6549, allocations: 56 kB / 1.077 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.402e-05/0.655, allocations: 36 kB / 1.077 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002717/0.6577, allocations: 1.79 MB / 1.079 GB, free: 5.785 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.01046/0.6681, allocations: 7.618 MB / 1.086 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.67, allocations: 1.448 MB / 1.088 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008682/0.6709, allocations: 0.6601 MB / 1.088 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005687/0.6766, allocations: 3.839 MB / 1.092 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.6766, allocations: 51.55 kB / 1.092 GB, free: 7.512 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=88): time 2.385e-06/0.6766, allocations: 0 / 1.092 GB, free: 7.512 MB / 0.8419 GB Notification: Performance of matching and sorting (n=88): time 0.002319/0.679, allocations: 1.506 MB / 1.094 GB, free: 6 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.679, allocations: 64.34 kB / 1.094 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001978/0.681, allocations: 1.59 MB / 1.095 GB, free: 4.324 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 9.404e-05/0.6811, allocations: 49.7 kB / 1.095 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006067/0.6817, allocations: 0.7652 MB / 1.096 GB, free: 3.496 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002574/0.682, allocations: 307.5 kB / 1.096 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.513e-05/0.6821, allocations: 32 kB / 1.096 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.6822, allocations: 361.9 kB / 1.097 GB, free: 2.801 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.6832, allocations: 0.683 MB / 1.097 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.6844, allocations: 1.012 MB / 1.098 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.6856, allocations: 0.865 MB / 1.099 GB, free: 112 kB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.6856, allocations: 4 kB / 1.099 GB, free: 108 kB / 0.8419 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002919/0.6886, allocations: 1.94 MB / 1.101 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.6888, allocations: 356.9 kB / 1.102 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.6888, allocations: 8 kB / 1.102 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.6888, allocations: 16 kB / 1.102 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.6901, allocations: 339.5 kB / 1.102 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.791e-05/0.6901, allocations: 27.91 kB / 1.102 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.6913, allocations: 206.1 kB / 1.102 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.6914, allocations: 67.98 kB / 1.102 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/0.6914, allocations: 4 kB / 1.102 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/0.694, allocations: 1.784 MB / 1.104 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.694, allocations: 12 kB / 1.104 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.694, allocations: 16 kB / 1.104 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.6952, allocations: 335.5 kB / 1.104 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.694e-05/0.6952, allocations: 27.88 kB / 1.104 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.6963, allocations: 186.5 kB / 1.104 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.6964, allocations: 60 kB / 1.105 GB, free: 10.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009867/0.6974, allocations: 0.7502 MB / 1.105 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/0.6977, allocations: 154.1 kB / 1.105 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002012/0.6997, allocations: 1.281 MB / 1.107 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.6997, allocations: 11.98 kB / 1.107 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.6997, allocations: 3.953 kB / 1.107 GB, free: 8.398 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001461/0.7012, allocations: 1.277 MB / 1.108 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004083/0.7053, allocations: 2.928 MB / 1.111 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.7053, allocations: 0 / 1.111 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.7061, allocations: 195.6 kB / 1.111 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.7061, allocations: 4 kB / 1.111 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-05/0.7062, allocations: 27.98 kB / 1.111 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.473e-06/0.7062, allocations: 4 kB / 1.111 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7062, allocations: 0 / 1.111 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002564/0.7088, allocations: 1.909 MB / 1.113 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/0.7095, allocations: 422.8 kB / 1.113 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000217/0.7097, allocations: 28.12 kB / 1.113 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008046/0.7105, allocations: 91.08 kB / 1.113 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.164e-05/0.7106, allocations: 44.94 kB / 1.113 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.7107, allocations: 39.97 kB / 1.113 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001643/0.7124, allocations: 1.195 MB / 1.115 GB, free: 40 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7124, allocations: 0 / 1.115 GB, free: 40 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002333/0.7147, allocations: 0.9084 MB / 1.115 GB, free: 15.13 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 (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.0007353/0.7155, allocations: 349.2 kB / 1.116 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003405/0.7189, allocations: 2.305 MB / 1.118 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.7189, allocations: 0.875 kB / 1.118 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007021/0.7196, allocations: 0.5211 MB / 1.119 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003672/0.7233, allocations: 0.864 MB / 1.119 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006214/0.7295, allocations: 4.37 MB / 1.124 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/0.7309, allocations: 1.682 MB / 1.125 GB, free: 4.98 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.002657/0.7336, allocations: 0.9171 MB / 1.126 GB, free: 4.078 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003623/0.7339, allocations: 139.4 kB / 1.126 GB, free: 3.941 MB / 0.8731 GB Notification: Performance of SimCode: time 8.42e-07/0.7339, allocations: 0 / 1.126 GB, free: 3.941 MB / 0.8731 GB Notification: Performance of Templates: time 0.05049/0.7844, allocations: 32.95 MB / 1.159 GB, free: 3.383 MB / 0.9044 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