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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0016/0.0016, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.001806/0.001806, allocations: 187 kB / 17.34 MB, free: 5.723 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.186/2.186, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 59.91 kB / 0.9515 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056/1.057, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03967/1.097, allocations: 28.59 MB / 1.117 GB, free: 1.043 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01521/1.112, allocations: 7.907 MB / 1.124 GB, free: 11.4 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/1.115, allocations: 34.81 kB / 1.124 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001911/1.117, allocations: 401.5 kB / 1.125 GB, free: 11.14 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00437/1.121, allocations: 1.008 MB / 1.126 GB, free: 10.53 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004351/1.125, allocations: 1.086 MB / 1.127 GB, free: 9.949 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.009011/1.134, allocations: 4.915 MB / 1.132 GB, free: 7.598 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003999/1.138, allocations: 2.283 MB / 1.134 GB, free: 6.633 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005438/1.144, allocations: 1.823 MB / 1.136 GB, free: 5.82 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004163/1.148, allocations: 1.447 MB / 1.137 GB, free: 5.16 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001006/1.149, allocations: 228.9 kB / 1.137 GB, free: 5.16 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00498/1.154, allocations: 1.317 MB / 1.138 GB, free: 4.789 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001423/1.156, allocations: 0.5567 MB / 1.139 GB, free: 4.441 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.003492/1.159, allocations: 1.155 MB / 1.14 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.008243/1.167, allocations: 3.686 MB / 1.144 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/1.167, allocations: 0 / 1.144 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.645e-06/1.167, allocations: 0 / 1.144 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001285/1.168, allocations: 1.125 kB / 1.144 GB, free: 2.457 MB / 0.8887 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.009254/1.177, allocations: 2.565 MB / 1.146 GB, free: 1 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/1.177, allocations: 13.88 kB / 1.146 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001265/1.178, allocations: 233.5 kB / 1.146 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004837/1.183, allocations: 1.805 MB / 1.148 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/1.183, allocations: 115.9 kB / 1.148 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004377/1.184, allocations: 149 kB / 1.148 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005268/1.189, allocations: 1.999 MB / 1.15 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.988e-05/1.189, allocations: 8.047 kB / 1.15 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002068/1.189, allocations: 61.25 kB / 1.15 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.143e-05/1.189, allocations: 37.44 kB / 1.151 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004402/1.194, allocations: 1.797 MB / 1.152 GB, free: 14.39 MB / 0.9044 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.01871/1.213, allocations: 7.598 MB / 1.16 GB, free: 9.156 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002781/1.215, allocations: 1.454 MB / 1.161 GB, free: 8.328 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/1.217, allocations: 0.6605 MB / 1.162 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00848/1.225, allocations: 3.846 MB / 1.166 GB, free: 4.77 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.588e-05/1.225, allocations: 43.44 kB / 1.166 GB, free: 4.723 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=88): time 3.757e-06/1.225, allocations: 0 / 1.166 GB, free: 4.723 MB / 0.9044 GB Notification: Performance of matching and sorting (n=88): time 0.003508/1.229, allocations: 1.509 MB / 1.167 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/1.229, allocations: 60.12 kB / 1.167 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003779/1.233, allocations: 1.653 MB / 1.169 GB, free: 3.004 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002638/1.233, allocations: 48.11 kB / 1.169 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009465/1.234, allocations: 0.7534 MB / 1.169 GB, free: 2.297 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004863/1.234, allocations: 317.2 kB / 1.17 GB, free: 2.023 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007229/1.235, allocations: 297.3 kB / 1.17 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002648/1.235, allocations: 366.7 kB / 1.17 GB, free: 1.512 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/1.237, allocations: 0.6937 MB / 1.171 GB, free: 1.145 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001614/1.238, allocations: 1.024 MB / 1.172 GB, free: 384 kB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002594/1.241, allocations: 1.62 MB / 1.174 GB, free: 15.3 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/1.241, allocations: 2.219 kB / 1.174 GB, free: 15.3 MB / 0.92 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004528/1.245, allocations: 1.951 MB / 1.176 GB, free: 14.3 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/1.246, allocations: 8.906 kB / 1.176 GB, free: 14.3 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/1.246, allocations: 13.75 kB / 1.176 GB, free: 14.3 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.974e-05/1.246, allocations: 18.75 kB / 1.176 GB, free: 14.29 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/1.247, allocations: 336.6 kB / 1.176 GB, free: 14.21 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.747e-05/1.247, allocations: 27.16 kB / 1.176 GB, free: 14.2 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/1.249, allocations: 199.8 kB / 1.176 GB, free: 14.06 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002158/1.249, allocations: 57.3 kB / 1.176 GB, free: 14.05 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002843/1.252, allocations: 1.284 MB / 1.177 GB, free: 13.31 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001804/1.254, allocations: 1.017 MB / 1.178 GB, free: 12.56 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00278/1.257, allocations: 1.625 MB / 1.18 GB, free: 11.47 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.316e-05/1.257, allocations: 3 kB / 1.18 GB, free: 11.47 MB / 0.92 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.004319/1.261, allocations: 1.946 MB / 1.182 GB, free: 10.48 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/1.261, allocations: 8.656 kB / 1.182 GB, free: 10.48 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.989e-05/1.261, allocations: 8.719 kB / 1.182 GB, free: 10.48 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/1.261, allocations: 16.75 kB / 1.182 GB, free: 10.48 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/1.263, allocations: 335.3 kB / 1.182 GB, free: 10.39 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.042e-05/1.263, allocations: 23.7 kB / 1.182 GB, free: 10.39 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/1.264, allocations: 157.3 kB / 1.182 GB, free: 10.28 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002099/1.265, allocations: 61.45 kB / 1.183 GB, free: 10.27 MB / 0.92 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.0005269/1.265, allocations: 257.9 kB / 1.183 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007942/1.266, allocations: 150.9 kB / 1.183 GB, free: 9.945 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002963/1.269, allocations: 1.276 MB / 1.184 GB, free: 9.223 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/1.269, allocations: 12.25 kB / 1.184 GB, free: 9.219 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/1.269, allocations: 1.375 kB / 1.184 GB, free: 9.219 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001776/1.271, allocations: 1.286 MB / 1.185 GB, free: 8.312 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0072/1.278, allocations: 2.951 MB / 1.188 GB, free: 6.418 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/1.278, allocations: 4.562 kB / 1.188 GB, free: 6.414 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008546/1.279, allocations: 187.9 kB / 1.189 GB, free: 6.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.675e-05/1.279, allocations: 4 kB / 1.189 GB, free: 6.227 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.122e-05/1.279, allocations: 23.98 kB / 1.189 GB, free: 6.203 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.141e-05/1.279, allocations: 7.938 kB / 1.189 GB, free: 6.195 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.279, allocations: 4 kB / 1.189 GB, free: 6.191 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003229/1.282, allocations: 1.917 MB / 1.19 GB, free: 4.242 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/1.284, allocations: 398.9 kB / 1.191 GB, free: 3.832 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006983/1.284, allocations: 27.84 kB / 1.191 GB, free: 3.805 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/1.286, allocations: 55.86 kB / 1.191 GB, free: 3.75 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/1.286, allocations: 49.12 kB / 1.191 GB, free: 3.703 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/1.286, allocations: 39.97 kB / 1.191 GB, free: 3.664 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002748/1.289, allocations: 1.242 MB / 1.192 GB, free: 2.426 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.01e-07/1.289, allocations: 0 / 1.192 GB, free: 2.426 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.005001/1.294, allocations: 0.9202 MB / 1.193 GB, free: 1.504 MB / 0.92 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.001411/1.295, allocations: 373.3 kB / 1.193 GB, free: 1.137 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004808/1.3, allocations: 2.329 MB / 1.196 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.3, allocations: 4.125 kB / 1.196 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008666/1.301, allocations: 0.517 MB / 1.196 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005708/1.307, allocations: 0.9133 MB / 1.197 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007519/1.314, allocations: 3.641 MB / 1.201 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/1.316, allocations: 1.641 MB / 1.202 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008003/1.317, allocations: 139.4 kB / 1.202 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of SimCode: time 9.41e-07/1.317, allocations: 0 / 1.202 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of Templates: time 0.0582/1.375, allocations: 32.83 MB / 1.234 GB, free: 7.281 MB / 0.9669 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