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.001025/0.001025, allocations: 98.48 kB / 16.02 MB, free: 76 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.001295/0.001295, allocations: 185.7 kB / 16.92 MB, free: 6.75 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.445/1.445, 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 10.1.0-maint.10.0.x/package.mo): time 2.786/2.786, allocations: 437.8 MB / 0.7128 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003705, allocations: 12 kB / 0.8735 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7166/0.717, allocations: 153.8 MB / 1.024 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03261/0.7496, allocations: 27.75 MB / 1.051 GB, free: 4.043 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01276/0.7624, allocations: 7.886 MB / 1.058 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001623/0.7641, allocations: 27.81 kB / 1.059 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001349/0.7655, allocations: 330.1 kB / 1.059 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.003229/0.7687, allocations: 0.937 MB / 1.06 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002983/0.7717, allocations: 0.9307 MB / 1.061 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00739/0.7791, allocations: 6.082 MB / 1.067 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003117/0.7823, allocations: 1.8 MB / 1.068 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003051/0.7853, allocations: 1.318 MB / 1.07 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00253/0.7879, allocations: 1.295 MB / 1.071 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0004486/0.7884, allocations: 79.94 kB / 1.071 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003058/0.7914, allocations: 1.143 MB / 1.072 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0006713/0.7921, allocations: 374.4 kB / 1.072 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001891/0.7941, allocations: 0.9811 MB / 1.073 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003839/0.7979, allocations: 2.852 MB / 1.076 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.7979, allocations: 0 / 1.076 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.375e-06/0.7979, allocations: 0 / 1.076 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0001203/0.7981, allocations: 0 / 1.076 GB, free: 9.926 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.005892/0.804, allocations: 2.137 MB / 1.078 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.804, allocations: 12.03 kB / 1.078 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/0.8055, allocations: 234.4 kB / 1.079 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/0.8101, allocations: 1.775 MB / 1.08 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.8103, allocations: 114.7 kB / 1.08 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006313/0.8109, allocations: 152 kB / 1.08 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005613/0.8165, allocations: 1.994 MB / 1.082 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.175e-05/0.8166, allocations: 0 / 1.082 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002925/0.8169, allocations: 63.98 kB / 1.083 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.171e-05/0.817, allocations: 39.98 kB / 1.083 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003706/0.8207, allocations: 1.794 MB / 1.084 GB, free: 1.445 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.01301/0.8338, allocations: 7.633 MB / 1.092 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.8358, allocations: 1.436 MB / 1.093 GB, free: 8.051 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009463/0.8368, allocations: 0.6603 MB / 1.094 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006946/0.8437, allocations: 3.847 MB / 1.098 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.534e-05/0.8438, allocations: 43.56 kB / 1.098 GB, free: 3.168 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=88): time 2.605e-06/0.8438, allocations: 3.938 kB / 1.098 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of matching and sorting (n=88): time 0.00277/0.8466, allocations: 1.514 MB / 1.099 GB, free: 1.648 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.8467, allocations: 64.41 kB / 1.099 GB, free: 1.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002729/0.8494, allocations: 1.606 MB / 1.101 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.8496, allocations: 49.7 kB / 1.101 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/0.8504, allocations: 0.7614 MB / 1.101 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003857/0.8508, allocations: 315.5 kB / 1.102 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.851, allocations: 129.6 kB / 1.102 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001768/0.8512, allocations: 361.9 kB / 1.102 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.8524, allocations: 0.6831 MB / 1.103 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.8538, allocations: 1.02 MB / 1.104 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002296/0.8561, allocations: 1.624 MB / 1.106 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.277e-05/0.8561, allocations: 11.94 kB / 1.106 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003468/0.8596, allocations: 1.943 MB / 1.107 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002677/0.8599, allocations: 359.8 kB / 1.108 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.069e-05/0.8599, allocations: 8 kB / 1.108 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.4e-05/0.86, allocations: 16 kB / 1.108 GB, free: 8.281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.8613, allocations: 335.5 kB / 1.108 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.291e-05/0.8613, allocations: 19.94 kB / 1.108 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.8629, allocations: 218.1 kB / 1.108 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.863, allocations: 59.98 kB / 1.108 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.8631, allocations: 7.938 kB / 1.108 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002931/0.866, allocations: 1.799 MB / 1.11 GB, free: 5.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/0.866, allocations: 12 kB / 1.11 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.8661, allocations: 12 kB / 1.11 GB, free: 5.828 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.8673, allocations: 335.5 kB / 1.111 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-05/0.8673, allocations: 20 kB / 1.111 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.8687, allocations: 191 kB / 1.111 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/0.8689, allocations: 59.98 kB / 1.111 GB, free: 5.234 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.001193/0.8701, allocations: 0.758 MB / 1.112 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004923/0.8706, allocations: 154.1 kB / 1.112 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.8728, allocations: 1.29 MB / 1.113 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.8728, allocations: 12 kB / 1.113 GB, free: 3 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.8729, allocations: 4 kB / 1.113 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001529/0.8744, allocations: 1.281 MB / 1.114 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004953/0.8794, allocations: 2.939 MB / 1.117 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.8794, allocations: 3.938 kB / 1.117 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008124/0.8802, allocations: 183.8 kB / 1.117 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.071e-05/0.8802, allocations: 8.125 kB / 1.117 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-05/0.8803, allocations: 31.94 kB / 1.117 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.757e-06/0.8803, allocations: 7.984 kB / 1.117 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8803, allocations: 0 / 1.117 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00278/0.8831, allocations: 1.909 MB / 1.119 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008963/0.884, allocations: 430.8 kB / 1.12 GB, free: 12 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003534/0.8844, allocations: 19.98 kB / 1.12 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.8855, allocations: 75.78 kB / 1.12 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.8856, allocations: 56.86 kB / 1.12 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.501e-05/0.8857, allocations: 35.97 kB / 1.12 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.002009/0.8877, allocations: 1.207 MB / 1.121 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8877, allocations: 3.938 kB / 1.121 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002986/0.8907, allocations: 0.9085 MB / 1.122 GB, free: 9.695 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.0009978/0.8917, allocations: 360.3 kB / 1.122 GB, free: 9.344 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003935/0.8957, allocations: 2.324 MB / 1.124 GB, free: 7.023 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.8957, allocations: 0 / 1.124 GB, free: 7.023 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007999/0.8965, allocations: 0.5225 MB / 1.125 GB, free: 6.508 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004815/0.9013, allocations: 0.8651 MB / 1.126 GB, free: 5.652 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006726/0.9081, allocations: 4.385 MB / 1.13 GB, free: 1.215 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001429/0.9096, allocations: 1.638 MB / 1.132 GB, free: 15.55 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006429/0.9102, allocations: 147.3 kB / 1.132 GB, free: 15.4 MB / 0.8887 GB Notification: Performance of SimCode: time 1.092e-06/0.9102, allocations: 0 / 1.132 GB, free: 15.4 MB / 0.8887 GB Notification: Performance of Templates: time 0.04816/0.9584, allocations: 32.06 MB / 1.163 GB, free: 15.54 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/jenkins1/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