Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.161/2.161, allocations: 387.1 MB / 399.7 MB, free: 9.512 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.001113/0.001113, allocations: 180.9 kB / 492.3 MB, free: 0.6445 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.435/1.435, allocations: 221.3 MB / 0.7871 GB, free: 12.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009312/0.0009311, allocations: 95.88 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.165e-05, allocations: 8 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3121, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.023/1.335, allocations: 168.7 MB / 1.377 GB, free: 18.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/1.336, allocations: 116 kB / 1.377 GB, free: 18.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0944/1.43, allocations: 30.11 MB / 1.407 GB, free: 18.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.724e-06/1.43, allocations: 0 / 1.407 GB, free: 18.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.723e-05/1.43, allocations: 12 kB / 1.407 GB, free: 18.49 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.002028/1.432, allocations: 1.051 MB / 1.408 GB, free: 17.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/1.432, allocations: 8.031 kB / 1.408 GB, free: 17.44 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/1.433, allocations: 110.5 kB / 1.408 GB, free: 17.33 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006971/1.433, allocations: 464.6 kB / 1.408 GB, free: 16.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/1.434, allocations: 22.38 kB / 1.408 GB, free: 16.85 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.521e-05/1.434, allocations: 34.12 kB / 1.408 GB, free: 16.83 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/1.434, allocations: 396.8 kB / 1.409 GB, free: 16.44 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/1.434, allocations: 0 / 1.409 GB, free: 16.44 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/1.434, allocations: 4 kB / 1.409 GB, free: 16.44 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/1.434, allocations: 0 / 1.409 GB, free: 16.44 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002592/1.434, allocations: 427.1 kB / 1.409 GB, free: 16.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006545/1.435, allocations: 0.771 MB / 1.41 GB, free: 15.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004862/1.435, allocations: 0.5644 MB / 1.41 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/1.436, allocations: 334.2 kB / 1.411 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001023/1.437, allocations: 1.028 MB / 1.412 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003725/1.437, allocations: 403.9 kB / 1.412 GB, free: 12.79 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/1.437, allocations: 0 / 1.412 GB, free: 12.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.001063/1.438, allocations: 0.9703 MB / 1.413 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/1.438, allocations: 88.22 kB / 1.413 GB, free: 11.73 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/1.439, allocations: 1.121 MB / 1.414 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.857e-05/1.439, allocations: 40.89 kB / 1.414 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/1.44, allocations: 294.5 kB / 1.415 GB, free: 10.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/1.44, allocations: 22.86 kB / 1.415 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/1.44, allocations: 17.88 kB / 1.415 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002009/1.44, allocations: 427.4 kB / 1.415 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/1.441, allocations: 1.207 MB / 1.416 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/1.443, allocations: 1.342 MB / 1.418 GB, free: 8.504 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/1.444, allocations: 1.598 MB / 1.419 GB, free: 7.312 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/1.444, allocations: 0 / 1.419 GB, free: 7.312 MB / 0.8386 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004144/1.448, allocations: 3.43 MB / 1.422 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/1.448, allocations: 9.25 kB / 1.422 GB, free: 4.711 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/1.448, allocations: 4 kB / 1.422 GB, free: 4.707 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/1.448, allocations: 7.938 kB / 1.423 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/1.449, allocations: 139.5 kB / 1.423 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/1.449, allocations: 4 kB / 1.423 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007219/1.45, allocations: 243.1 kB / 1.423 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/1.45, allocations: 62.94 kB / 1.423 GB, free: 4.277 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0001638/1.45, allocations: 139.1 kB / 1.423 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.809e-05/1.45, allocations: 74.69 kB / 1.423 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009497/1.451, allocations: 0.9344 MB / 1.424 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/1.451, allocations: 7.938 kB / 1.424 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/1.451, allocations: 0 / 1.424 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/1.451, allocations: 0 / 1.424 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005211/1.452, allocations: 0.5104 MB / 1.425 GB, free: 2.676 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/1.452, allocations: 4 kB / 1.425 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.133e-05/1.452, allocations: 4 kB / 1.425 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/1.452, allocations: 4.031 kB / 1.425 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/1.452, allocations: 11.61 kB / 1.425 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/1.452, allocations: 0 / 1.425 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.452, allocations: 0 / 1.425 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009258/1.453, allocations: 1.007 MB / 1.426 GB, free: 1.641 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/1.453, allocations: 155.8 kB / 1.426 GB, free: 1.469 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.205e-05/1.453, allocations: 7 kB / 1.426 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/1.453, allocations: 7.984 kB / 1.426 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/1.453, allocations: 7.938 kB / 1.426 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/1.453, allocations: 19.97 kB / 1.426 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0008468/1.454, allocations: 0.6961 MB / 1.426 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.454, allocations: 0 / 1.426 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.002049/1.456, allocations: 0.5088 MB / 1.427 GB, free: 392 kB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002053/1.458, allocations: 0.6457 MB / 1.428 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.003498/1.462, allocations: 2.339 MB / 1.43 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/1.462, allocations: 0 / 1.43 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004841/1.462, allocations: 346 kB / 1.43 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005753/1.463, allocations: 47.59 kB / 1.43 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/1.466, allocations: 1.488 MB / 1.432 GB, free: 12.37 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008522/1.467, allocations: 1.004 MB / 1.433 GB, free: 11.34 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0004131/1.467, allocations: 62.95 kB / 1.433 GB, free: 11.28 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/1.467, allocations: 38.86 kB / 1.433 GB, free: 11.24 MB / 0.8542 GB Notification: Performance of SimCode: time 1.854e-06/1.467, allocations: 0 / 1.433 GB, free: 11.24 MB / 0.8542 GB Notification: Performance of Templates: time 0.03246/1.5, allocations: 11.24 MB / 1.444 GB, free: 104 kB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches