Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.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.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.vol1.heatPort.Q_flow|hex.vol2.heatPort.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.vol1.heatPort.Q_flow|hex.vol2.heatPort.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001338/0.001338, allocations: 177.3 kB / 15.94 MB, free: 228 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.348/1.348, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.551/2.551, allocations: 436.5 MB / 0.7104 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004776/0.0004779, allocations: 12 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6524/0.6529, allocations: 153.6 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement): time 0.03763/0.6906, allocations: 33.91 MB / 1.054 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01516/0.7058, allocations: 10.71 MB / 1.064 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.7077, allocations: 47.69 kB / 1.064 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001968/0.7097, allocations: 0.6296 MB / 1.065 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.005969/0.7157, allocations: 1.99 MB / 1.067 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004283/0.72, allocations: 1.482 MB / 1.068 GB, free: 248 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00407/0.724, allocations: 2.085 MB / 1.07 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.7258, allocations: 0.8682 MB / 1.071 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002302/0.7281, allocations: 0.938 MB / 1.072 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.7294, allocations: 0.6494 MB / 1.073 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002249/0.7297, allocations: 48 kB / 1.073 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003072/0.7328, allocations: 1.104 MB / 1.074 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0003925/0.7332, allocations: 223.1 kB / 1.074 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0005558/0.7337, allocations: 301 kB / 1.075 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002834/0.7366, allocations: 1.864 MB / 1.076 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.7366, allocations: 0 / 1.076 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7366, allocations: 0 / 1.076 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.816e-05/0.7367, allocations: 4 kB / 1.076 GB, free: 8.121 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00338/0.7401, allocations: 1.487 MB / 1.078 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.7401, allocations: 8.031 kB / 1.078 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004787/0.7406, allocations: 158.2 kB / 1.078 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/0.7425, allocations: 1.049 MB / 1.079 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.701e-05/0.7426, allocations: 66 kB / 1.079 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.7427, allocations: 96 kB / 1.079 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.7442, allocations: 0.8895 MB / 1.08 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.7442, allocations: 3.906 kB / 1.08 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.152e-05/0.7443, allocations: 36 kB / 1.08 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.655e-05/0.7444, allocations: 31.98 kB / 1.08 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.7455, allocations: 0.6402 MB / 1.081 GB, free: 3.531 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.005075/0.7505, allocations: 4.324 MB / 1.085 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008869/0.7514, allocations: 0.4934 MB / 1.085 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006426/0.7521, allocations: 0.5979 MB / 1.086 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.7521, allocations: 43.06 kB / 1.086 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=57): time 3.907e-06/0.7522, allocations: 4 kB / 1.086 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=57): time 0.002414/0.7546, allocations: 1.231 MB / 1.087 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.7546, allocations: 59.95 kB / 1.087 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.7557, allocations: 0.915 MB / 1.088 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.7558, allocations: 41.7 kB / 1.088 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003961/0.7562, allocations: 0.5229 MB / 1.089 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.7564, allocations: 205 kB / 1.089 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.7564, allocations: 16 kB / 1.089 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.7566, allocations: 333.9 kB / 1.089 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003254/0.7569, allocations: 205.9 kB / 1.089 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004626/0.7574, allocations: 381.6 kB / 1.09 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004041/0.7578, allocations: 271.1 kB / 1.09 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.7578, allocations: 4 kB / 1.09 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001491/0.7593, allocations: 0.8468 MB / 1.091 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005036/0.7598, allocations: 1.31 MB / 1.092 GB, free: 7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.7598, allocations: 8 kB / 1.092 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005879/0.7604, allocations: 167.2 kB / 1.092 GB, free: 6.816 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004833/0.7609, allocations: 135.8 kB / 1.092 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003621/0.7646, allocations: 4.974 MB / 1.097 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008525/0.7654, allocations: 115.3 kB / 1.097 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.709e-05/0.7655, allocations: 39.94 kB / 1.097 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.935e-06/0.7655, allocations: 8 kB / 1.097 GB, free: 1.121 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001186/0.7667, allocations: 0.7095 MB / 1.098 GB, free: 408 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.7667, allocations: 4 kB / 1.098 GB, free: 404 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002976/0.767, allocations: 123.4 kB / 1.098 GB, free: 268 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.7675, allocations: 148.1 kB / 1.098 GB, free: 120 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004452/0.772, allocations: 5.997 MB / 1.104 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008783/0.7729, allocations: 115.3 kB / 1.104 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.82e-05/0.7729, allocations: 28 kB / 1.104 GB, free: 9.434 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (78): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005628/0.7735, allocations: 365 kB / 1.105 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.7737, allocations: 110.7 kB / 1.105 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/0.7749, allocations: 0.7065 MB / 1.106 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.7749, allocations: 8 kB / 1.106 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.7749, allocations: 480 / 1.106 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009011/0.7758, allocations: 0.6494 MB / 1.106 GB, free: 7.539 MB / 0.8575 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 postOpt removeSimpleEquations (simulation): time 0.002603/0.7784, allocations: 1.839 MB / 1.108 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.7785, allocations: 0 / 1.108 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.7788, allocations: 83.89 kB / 1.108 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003051/0.7792, allocations: 139.4 kB / 1.108 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.7792, allocations: 12 kB / 1.108 GB, free: 5.363 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003495/0.7827, allocations: 4.974 MB / 1.113 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.7827, allocations: 11.95 kB / 1.113 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.7842, allocations: 1.077 MB / 1.114 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004424/0.7847, allocations: 279.6 kB / 1.114 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.7848, allocations: 16 kB / 1.114 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.7854, allocations: 70.11 kB / 1.115 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.965e-05/0.7855, allocations: 44.59 kB / 1.115 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-05/0.7855, allocations: 31.97 kB / 1.115 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0008267/0.7864, allocations: 0.6374 MB / 1.115 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7864, allocations: 0 / 1.115 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002334/0.7887, allocations: 0.721 MB / 1.116 GB, free: 12.98 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (hex.vol1.dynBal.U,hex.vol2.dynBal.U,hex.capFil1.T,hex.capFil2.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 (47): * Single equations (assignments): 41 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009182/0.7897, allocations: 473.1 kB / 1.116 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002448/0.7921, allocations: 1.777 MB / 1.118 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.7921, allocations: 4 kB / 1.118 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007836/0.7929, allocations: 0.6168 MB / 1.119 GB, free: 9.988 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/0.7955, allocations: 0.5277 MB / 1.119 GB, free: 9.469 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003369/0.7989, allocations: 2.475 MB / 1.122 GB, free: 6.957 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000662/0.7996, allocations: 1.112 MB / 1.123 GB, free: 5.816 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000811/0.8004, allocations: 216.6 kB / 1.123 GB, free: 5.613 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.8006, allocations: 83.42 kB / 1.123 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of SimCode: time 6.01e-07/0.8006, allocations: 0 / 1.123 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of Templates: time 0.03769/0.8383, allocations: 23.72 MB / 1.146 GB, free: 14.09 MB / 0.9044 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches