Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.196/2.196, allocations: 387.4 MB / 394.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 192.6 kB / 487.4 MB, free: 5.008 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.5 MB / 0.7824 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008974/0.0008974, allocations: 106.5 kB / 0.9219 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.036e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2611, allocations: 142.4 MB / 1.206 GB, free: 43.91 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.087/1.348, allocations: 433.4 MB / 1.629 GB, free: 5.289 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/1.348, allocations: 107.4 kB / 1.629 GB, free: 5.23 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.742/3.09, allocations: 0.5645 GB / 2.194 GB, free: 9.125 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.213e-06/3.09, allocations: 0 / 2.194 GB, free: 9.125 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001176/3.09, allocations: 32 kB / 2.194 GB, free: 9.094 MB / 1.151 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.002724/3.093, allocations: 1.414 MB / 2.195 GB, free: 7.629 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/3.093, allocations: 12.02 kB / 2.195 GB, free: 7.617 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003918/3.093, allocations: 150.3 kB / 2.195 GB, free: 7.469 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/3.096, allocations: 1.394 MB / 2.197 GB, free: 6.031 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/3.096, allocations: 24 kB / 2.197 GB, free: 6.008 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/3.096, allocations: 52 kB / 2.197 GB, free: 5.957 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008854/3.097, allocations: 0.5662 MB / 2.197 GB, free: 5.391 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/3.098, allocations: 0.7334 MB / 2.198 GB, free: 4.621 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/3.098, allocations: 3.906 kB / 2.198 GB, free: 4.617 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.809e-05/3.098, allocations: 8 kB / 2.198 GB, free: 4.609 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/3.098, allocations: 23.98 kB / 2.198 GB, free: 4.586 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003921/3.102, allocations: 4.158 MB / 2.202 GB, free: 160 kB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8128/3.915, allocations: 497.1 kB / 2.203 GB, free: 269.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006636/3.915, allocations: 299.8 kB / 2.203 GB, free: 269.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000595/3.916, allocations: 0.6025 MB / 2.203 GB, free: 268.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/3.916, allocations: 39.14 kB / 2.204 GB, free: 268.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=57): time 2.715e-06/3.916, allocations: 0 / 2.204 GB, free: 268.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=57): time 0.001955/3.918, allocations: 0.6223 MB / 2.204 GB, free: 268.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/3.918, allocations: 59.28 kB / 2.204 GB, free: 268.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/3.919, allocations: 0.701 MB / 2.205 GB, free: 268.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.297e-05/3.919, allocations: 27.92 kB / 2.205 GB, free: 268.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003805/3.92, allocations: 0.5265 MB / 2.205 GB, free: 268 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/3.92, allocations: 192.4 kB / 2.206 GB, free: 267.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/3.92, allocations: 0 / 2.206 GB, free: 267.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.275e-05/3.92, allocations: 338.8 kB / 2.206 GB, free: 267.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/3.92, allocations: 177.7 kB / 2.206 GB, free: 267.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000457/3.921, allocations: 359.8 kB / 2.206 GB, free: 267.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008701/3.922, allocations: 292.4 kB / 2.207 GB, free: 267.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/3.922, allocations: 1.781 kB / 2.207 GB, free: 267.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001865/3.924, allocations: 0.7912 MB / 2.207 GB, free: 267.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002879/3.924, allocations: 1.31 MB / 2.209 GB, free: 265.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/3.924, allocations: 5.188 kB / 2.209 GB, free: 265.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003912/3.924, allocations: 120.6 kB / 2.209 GB, free: 265.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005097/3.925, allocations: 132.3 kB / 2.209 GB, free: 265.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002931/3.928, allocations: 4.681 MB / 2.214 GB, free: 261.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/3.929, allocations: 92.48 kB / 2.214 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.241e-05/3.929, allocations: 30.44 kB / 2.214 GB, free: 261.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/3.929, allocations: 5.125 kB / 2.214 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001703/3.931, allocations: 0.6506 MB / 2.214 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/3.931, allocations: 5.938 kB / 2.214 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003163/3.931, allocations: 118.8 kB / 2.214 GB, free: 261.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/3.932, allocations: 126.3 kB / 2.215 GB, free: 261.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003619/3.935, allocations: 5.62 MB / 2.22 GB, free: 256.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/3.936, allocations: 80.69 kB / 2.22 GB, free: 256.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.571e-05/3.937, allocations: 29.89 kB / 2.22 GB, free: 256.5 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * 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%) 2} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002665/3.937, allocations: 121.5 kB / 2.22 GB, free: 256.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/3.937, allocations: 97.86 kB / 2.22 GB, free: 256.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/3.939, allocations: 0.681 MB / 2.221 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/3.939, allocations: 12.36 kB / 2.221 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/3.939, allocations: 2.156 kB / 2.221 GB, free: 256.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001136/3.94, allocations: 0.6437 MB / 2.222 GB, free: 256 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003379/3.943, allocations: 1.728 MB / 2.223 GB, free: 255.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/3.943, allocations: 1.469 kB / 2.223 GB, free: 255.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004117/3.944, allocations: 88.67 kB / 2.223 GB, free: 255.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002783/3.944, allocations: 106.4 kB / 2.224 GB, free: 255.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/3.944, allocations: 7.672 kB / 2.224 GB, free: 255.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/3.947, allocations: 4.658 MB / 2.228 GB, free: 251.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/3.947, allocations: 1.344 kB / 2.228 GB, free: 251.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/3.949, allocations: 1.079 MB / 2.229 GB, free: 250.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005872/3.95, allocations: 267.2 kB / 2.229 GB, free: 250.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/3.95, allocations: 7.016 kB / 2.229 GB, free: 250.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/3.95, allocations: 57.5 kB / 2.229 GB, free: 250.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/3.95, allocations: 42.48 kB / 2.23 GB, free: 250.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.942e-05/3.951, allocations: 26.98 kB / 2.23 GB, free: 250.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001046/3.952, allocations: 0.5377 MB / 2.23 GB, free: 250.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/3.952, allocations: 0 / 2.23 GB, free: 250.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004089/3.956, allocations: 0.7517 MB / 2.231 GB, free: 250.7 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 42 * 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%) 2,(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.001908/3.958, allocations: 0.662 MB / 2.231 GB, free: 250.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002878/3.96, allocations: 1.647 MB / 2.233 GB, free: 249.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/3.961, allocations: 1.125 kB / 2.233 GB, free: 249.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007187/3.961, allocations: 0.5783 MB / 2.234 GB, free: 249.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/3.964, allocations: 0.4989 MB / 2.234 GB, free: 249.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/3.967, allocations: 1.512 MB / 2.236 GB, free: 249 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007084/3.968, allocations: 1.117 MB / 2.237 GB, free: 248.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001337/3.969, allocations: 256.8 kB / 2.237 GB, free: 248.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/3.969, allocations: 66.83 kB / 2.237 GB, free: 248.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.203e-06/3.969, allocations: 0 / 2.237 GB, free: 248.2 MB / 1.151 GB Notification: Performance of Templates: time 0.04774/4.017, allocations: 23.41 MB / 2.26 GB, free: 247.9 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches