Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.000857/0.0008573, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009119/0.0009119, allocations: 168.7 kB / 15.95 MB, free: 204 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.39/1.39, allocations: 223.3 MB / 240 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003689, allocations: 8.938 kB / 0.9021 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2675, allocations: 159.6 MB / 1.058 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02628/0.2938, allocations: 26.28 MB / 1.084 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009835/0.3036, allocations: 7.388 MB / 1.091 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008081/0.3045, allocations: 39.69 kB / 1.091 GB, free: 3.523 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000794/0.3053, allocations: 286.1 kB / 1.091 GB, free: 3.242 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001847/0.3072, allocations: 0.8121 MB / 1.092 GB, free: 2.426 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002047/0.3092, allocations: 0.7855 MB / 1.093 GB, free: 1.648 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005005/0.3142, allocations: 5.252 MB / 1.098 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002018/0.3163, allocations: 1.609 MB / 1.099 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00199/0.3183, allocations: 1.307 MB / 1.101 GB, free: 9.434 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0016/0.3199, allocations: 1.233 MB / 1.102 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001984/0.3201, allocations: 76 kB / 1.102 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001972/0.3221, allocations: 0.9827 MB / 1.103 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003856/0.3225, allocations: 362.5 kB / 1.103 GB, free: 6.781 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004446/0.3229, allocations: 424.7 kB / 1.104 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002646/0.3256, allocations: 2.822 MB / 1.106 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3256, allocations: 0 / 1.106 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3256, allocations: 0 / 1.106 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.947e-05/0.3256, allocations: 0 / 1.106 GB, free: 3.531 MB / 0.8575 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.00383/0.3295, allocations: 2.152 MB / 1.109 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.3295, allocations: 8.031 kB / 1.109 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006888/0.3302, allocations: 241.4 kB / 1.109 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/0.3329, allocations: 1.73 MB / 1.111 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.204e-05/0.333, allocations: 110.7 kB / 1.111 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002359/0.3333, allocations: 152 kB / 1.111 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003082/0.3364, allocations: 1.982 MB / 1.113 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/0.3364, allocations: 11.84 kB / 1.113 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.3365, allocations: 56 kB / 1.113 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.535e-05/0.3366, allocations: 43.98 kB / 1.113 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002795/0.3394, allocations: 1.782 MB / 1.115 GB, free: 11.09 MB / 0.8731 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.01045/0.3499, allocations: 7.618 MB / 1.122 GB, free: 3.164 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.3518, allocations: 1.444 MB / 1.123 GB, free: 1.688 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009217/0.3527, allocations: 0.6576 MB / 1.124 GB, free: 1.031 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00601/0.3587, allocations: 3.842 MB / 1.128 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.3588, allocations: 43.56 kB / 1.128 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=88): time 2.625e-06/0.3588, allocations: 4 kB / 1.128 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of matching and sorting (n=88): time 0.002343/0.3611, allocations: 1.502 MB / 1.129 GB, free: 11.31 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.3612, allocations: 68.41 kB / 1.129 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002047/0.3633, allocations: 1.59 MB / 1.131 GB, free: 9.629 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 9.168e-05/0.3634, allocations: 49.7 kB / 1.131 GB, free: 9.574 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006316/0.364, allocations: 0.7537 MB / 1.132 GB, free: 8.812 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002943/0.3643, allocations: 319.4 kB / 1.132 GB, free: 8.496 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.3644, allocations: 32 kB / 1.132 GB, free: 8.465 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3645, allocations: 357.9 kB / 1.132 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.3656, allocations: 0.683 MB / 1.133 GB, free: 7.426 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.3669, allocations: 1.012 MB / 1.134 GB, free: 6.281 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.3681, allocations: 0.865 MB / 1.135 GB, free: 5.418 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.3681, allocations: 4 kB / 1.135 GB, free: 5.414 MB / 0.8887 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003036/0.3712, allocations: 1.943 MB / 1.137 GB, free: 3.461 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002305/0.3714, allocations: 359 kB / 1.137 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.3714, allocations: 12 kB / 1.137 GB, free: 2.977 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.3715, allocations: 16 kB / 1.137 GB, free: 2.961 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.3727, allocations: 331.5 kB / 1.137 GB, free: 2.637 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.614e-05/0.3728, allocations: 23.92 kB / 1.138 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.374, allocations: 221.3 kB / 1.138 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.3741, allocations: 63.98 kB / 1.138 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 7.584e-06/0.3741, allocations: 4 kB / 1.138 GB, free: 2.332 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002697/0.3768, allocations: 1.78 MB / 1.14 GB, free: 0.5508 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.3769, allocations: 16.05 kB / 1.14 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.3769, allocations: 23.95 kB / 1.14 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.3781, allocations: 335.5 kB / 1.14 GB, free: 188 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.493e-05/0.3781, allocations: 27.86 kB / 1.14 GB, free: 160 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.3792, allocations: 190.5 kB / 1.14 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.3794, allocations: 59.98 kB / 1.14 GB, free: 15.91 MB / 0.9044 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.001106/0.3805, allocations: 0.7464 MB / 1.141 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/0.3808, allocations: 146.2 kB / 1.141 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.3829, allocations: 1.282 MB / 1.142 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.383, allocations: 11.95 kB / 1.142 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.383, allocations: 3.938 kB / 1.142 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001496/0.3845, allocations: 1.277 MB / 1.144 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00418/0.3887, allocations: 2.935 MB / 1.146 GB, free: 9.324 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.3887, allocations: 0 / 1.146 GB, free: 9.324 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008076/0.3895, allocations: 183.8 kB / 1.147 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.3895, allocations: 4 kB / 1.147 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.144e-05/0.3896, allocations: 23.98 kB / 1.147 GB, free: 9.117 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.146e-06/0.3896, allocations: 11.94 kB / 1.147 GB, free: 9.105 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3896, allocations: 4.125 kB / 1.147 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/0.3922, allocations: 1.905 MB / 1.148 GB, free: 7.16 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007137/0.3929, allocations: 426.7 kB / 1.149 GB, free: 6.723 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/0.3932, allocations: 19.98 kB / 1.149 GB, free: 6.703 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008321/0.394, allocations: 77.45 kB / 1.149 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/0.3941, allocations: 56.92 kB / 1.149 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.528e-05/0.3942, allocations: 35.98 kB / 1.149 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001746/0.3959, allocations: 1.187 MB / 1.15 GB, free: 5.355 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.6e-07/0.396, allocations: 0 / 1.15 GB, free: 5.355 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002477/0.3984, allocations: 0.9162 MB / 1.151 GB, free: 4.438 MB / 0.9044 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.0007854/0.3992, allocations: 343.2 kB / 1.151 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003683/0.4029, allocations: 2.313 MB / 1.154 GB, free: 1.793 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4029, allocations: 4.125 kB / 1.154 GB, free: 1.789 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007459/0.4037, allocations: 0.517 MB / 1.154 GB, free: 1.27 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003642/0.4073, allocations: 0.8712 MB / 1.155 GB, free: 424 kB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00614/0.4135, allocations: 4.372 MB / 1.159 GB, free: 12 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001393/0.4149, allocations: 1.678 MB / 1.161 GB, free: 10.29 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002877/0.4178, allocations: 0.9147 MB / 1.162 GB, free: 9.387 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004732/0.4183, allocations: 135.3 kB / 1.162 GB, free: 9.254 MB / 0.92 GB Notification: Performance of SimCode: time 2.875e-06/0.4183, allocations: 0 / 1.162 GB, free: 9.254 MB / 0.92 GB Notification: Performance of Templates: time 0.05309/0.4714, allocations: 32.95 MB / 1.194 GB, free: 8.699 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches