Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.997/1.997, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.000974/0.0009741, allocations: 196.1 kB / 490.8 MB, free: 1.902 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.321/1.321, allocations: 221.4 MB / 0.7863 GB, free: 13.6 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.0008709/0.0008708, allocations: 97.61 kB / 0.9264 GB, free: 14.14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.988e-06/1.002e-05, allocations: 8 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2815, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8235/1.105, allocations: 177.2 MB / 1.385 GB, free: 14.24 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004054/1.105, allocations: 118.4 kB / 1.385 GB, free: 14.21 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.1286/1.234, allocations: 38.18 MB / 1.422 GB, free: 5.383 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.701e-05/1.234, allocations: 12 kB / 1.422 GB, free: 5.371 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.003542/1.238, allocations: 1.147 MB / 1.423 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/1.238, allocations: 11.97 kB / 1.423 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004751/1.238, allocations: 106.5 kB / 1.423 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009482/1.239, allocations: 474.3 kB / 1.424 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/1.239, allocations: 0 / 1.424 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.035e-05/1.239, allocations: 20 kB / 1.424 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003991/1.24, allocations: 427.1 kB / 1.424 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/1.24, allocations: 386.8 kB / 1.425 GB, free: 2.832 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/1.24, allocations: 3.938 kB / 1.425 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/1.24, allocations: 0 / 1.425 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.81e-06/1.24, allocations: 0 / 1.425 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009548/1.241, allocations: 0.7258 MB / 1.425 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000531/1.242, allocations: 0.5577 MB / 1.426 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/1.242, allocations: 329.2 kB / 1.426 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001163/1.243, allocations: 1.04 MB / 1.427 GB, free: 32 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004787/1.244, allocations: 396.1 kB / 1.428 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/1.244, allocations: 7.938 kB / 1.428 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0009051/1.245, allocations: 0.7551 MB / 1.428 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/1.245, allocations: 85.05 kB / 1.428 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/1.246, allocations: 1.087 MB / 1.429 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.887e-05/1.246, allocations: 25.7 kB / 1.429 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002415/1.246, allocations: 272 kB / 1.43 GB, free: 13.67 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/1.246, allocations: 19.62 kB / 1.43 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/1.247, allocations: 0 / 1.43 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002039/1.247, allocations: 423.9 kB / 1.43 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/1.248, allocations: 1.222 MB / 1.431 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/1.249, allocations: 1.361 MB / 1.433 GB, free: 11.57 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/1.251, allocations: 1.632 MB / 1.434 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/1.251, allocations: 0 / 1.434 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.006136/1.257, allocations: 7.212 MB / 1.441 GB, free: 3.969 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/1.257, allocations: 8 kB / 1.441 GB, free: 3.961 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.185e-05/1.257, allocations: 3.984 kB / 1.441 GB, free: 3.957 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/1.257, allocations: 4 kB / 1.441 GB, free: 3.953 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007076/1.258, allocations: 143 kB / 1.441 GB, free: 3.816 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/1.258, allocations: 4 kB / 1.441 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007089/1.259, allocations: 228.3 kB / 1.442 GB, free: 3.586 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/1.259, allocations: 62.28 kB / 1.442 GB, free: 3.531 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 1 * 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 prepare postOptimizeDAE: time 0.0001621/1.259, allocations: 119.8 kB / 1.442 GB, free: 3.41 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.661e-05/1.259, allocations: 78.67 kB / 1.442 GB, free: 3.332 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008663/1.26, allocations: 0.7238 MB / 1.443 GB, free: 2.613 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/1.26, allocations: 0 / 1.443 GB, free: 2.613 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.26, allocations: 0 / 1.443 GB, free: 2.613 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/1.26, allocations: 4.031 kB / 1.443 GB, free: 2.609 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004956/1.26, allocations: 0.5016 MB / 1.443 GB, free: 2.168 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/1.26, allocations: 0 / 1.443 GB, free: 2.168 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.733e-05/1.26, allocations: 4 kB / 1.443 GB, free: 2.164 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/1.26, allocations: 4 kB / 1.443 GB, free: 2.16 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/1.26, allocations: 3.984 kB / 1.443 GB, free: 2.156 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/1.26, allocations: 3.938 kB / 1.443 GB, free: 2.152 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.26, allocations: 7.938 kB / 1.443 GB, free: 2.145 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000712/1.261, allocations: 0.79 MB / 1.444 GB, free: 1.344 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/1.261, allocations: 159.5 kB / 1.444 GB, free: 1.172 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.199e-05/1.261, allocations: 7.906 kB / 1.444 GB, free: 1.164 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/1.262, allocations: 7.984 kB / 1.444 GB, free: 1.156 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.19e-05/1.262, allocations: 0 / 1.444 GB, free: 1.156 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/1.262, allocations: 19.91 kB / 1.444 GB, free: 1.137 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0008173/1.263, allocations: 0.6631 MB / 1.445 GB, free: 0.6016 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002867/1.265, allocations: 0.6993 MB / 1.445 GB, free: 15.93 MB / 0.8698 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.002801/1.268, allocations: 0.9205 MB / 1.446 GB, free: 15.07 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002314/1.271, allocations: 2.4 MB / 1.449 GB, free: 13.44 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/1.271, allocations: 0 / 1.449 GB, free: 13.44 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002832/1.271, allocations: 338.6 kB / 1.449 GB, free: 13.11 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/1.271, allocations: 54.84 kB / 1.449 GB, free: 13.08 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/1.273, allocations: 1.537 MB / 1.451 GB, free: 11.55 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006745/1.274, allocations: 1.06 MB / 1.452 GB, free: 10.46 MB / 0.8698 GB Notification: Performance of SimCode: time 4.71e-07/1.274, allocations: 0 / 1.452 GB, free: 10.46 MB / 0.8698 GB Notification: Performance of Templates: time 0.02629/1.3, allocations: 14.62 MB / 1.466 GB, free: 11.93 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches