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_1borehole_5meters.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 387.1 MB / 399.7 MB, free: 9.453 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.001039/0.001039, allocations: 172.9 kB / 492.3 MB, free: 0.5938 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.504/1.504, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0009559/0.0009559, allocations: 94.53 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.358e-05/3.364e-05, allocations: 4 kB / 1.074 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3064, allocations: 142.4 MB / 1.213 GB, free: 38.36 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.077/1.383, allocations: 164.2 MB / 1.373 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/1.384, allocations: 120.2 kB / 1.373 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07898/1.463, allocations: 22.01 MB / 1.395 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.685e-06/1.463, allocations: 7.969 kB / 1.395 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.642e-05/1.463, allocations: 11.5 kB / 1.395 GB, free: 27.11 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.002349/1.465, allocations: 1.012 MB / 1.396 GB, free: 26.33 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/1.465, allocations: 7.688 kB / 1.396 GB, free: 26.33 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.646e-05/1.465, allocations: 34.55 kB / 1.396 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004129/1.466, allocations: 97.2 kB / 1.396 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006406/1.466, allocations: 431.3 kB / 1.396 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/1.466, allocations: 29.25 kB / 1.396 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.434e-05/1.466, allocations: 33.06 kB / 1.396 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/1.467, allocations: 376.9 kB / 1.396 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-06/1.467, allocations: 0 / 1.396 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/1.467, allocations: 3.984 kB / 1.396 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/1.467, allocations: 7.891 kB / 1.396 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/1.467, allocations: 422.2 kB / 1.397 GB, free: 25.74 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007422/1.468, allocations: 0.7427 MB / 1.398 GB, free: 25.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003872/1.468, allocations: 0.5573 MB / 1.398 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/1.468, allocations: 326.9 kB / 1.398 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008143/1.469, allocations: 1.044 MB / 1.399 GB, free: 22.96 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/1.47, allocations: 403.4 kB / 1.4 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.502e-06/1.47, allocations: 0 / 1.4 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0008081/1.47, allocations: 0.9636 MB / 1.401 GB, free: 21.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/1.47, allocations: 89 kB / 1.401 GB, free: 21.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/1.472, allocations: 1.061 MB / 1.402 GB, free: 20.64 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.197e-05/1.472, allocations: 40.39 kB / 1.402 GB, free: 20.6 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/1.472, allocations: 276.7 kB / 1.402 GB, free: 20.4 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/1.472, allocations: 19.12 kB / 1.402 GB, free: 20.39 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.552e-05/1.472, allocations: 12.75 kB / 1.402 GB, free: 20.39 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000167/1.472, allocations: 416.5 kB / 1.403 GB, free: 20.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/1.473, allocations: 1.204 MB / 1.404 GB, free: 19.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/1.474, allocations: 1.35 MB / 1.405 GB, free: 18.33 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/1.476, allocations: 1.598 MB / 1.407 GB, free: 17.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/1.476, allocations: 0 / 1.407 GB, free: 17.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004252/1.48, allocations: 3.42 MB / 1.41 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/1.48, allocations: 5.094 kB / 1.41 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/1.48, allocations: 3.984 kB / 1.41 GB, free: 14.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/1.48, allocations: 4 kB / 1.41 GB, free: 14.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006826/1.481, allocations: 143.4 kB / 1.41 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.238e-05/1.481, allocations: 8.062 kB / 1.41 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006837/1.482, allocations: 254 kB / 1.41 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/1.482, allocations: 55.86 kB / 1.411 GB, free: 14.11 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.0001807/1.482, allocations: 131.8 kB / 1.411 GB, free: 13.98 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.469e-05/1.482, allocations: 62.78 kB / 1.411 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/1.483, allocations: 0.9331 MB / 1.412 GB, free: 13 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/1.483, allocations: 4 kB / 1.412 GB, free: 13 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/1.483, allocations: 4.031 kB / 1.412 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/1.483, allocations: 0 / 1.412 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005149/1.484, allocations: 0.4916 MB / 1.412 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/1.484, allocations: 0 / 1.412 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.102e-05/1.484, allocations: 15.92 kB / 1.412 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/1.484, allocations: 0 / 1.412 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/1.484, allocations: 0 / 1.412 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/1.484, allocations: 7.984 kB / 1.412 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.484, allocations: 0 / 1.412 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009284/1.485, allocations: 1.009 MB / 1.413 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/1.485, allocations: 155.8 kB / 1.413 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/1.485, allocations: 0 / 1.413 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/1.485, allocations: 7.75 kB / 1.413 GB, free: 11.32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/1.485, allocations: 7.984 kB / 1.413 GB, free: 11.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.169e-05/1.485, allocations: 11.98 kB / 1.413 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0007984/1.486, allocations: 0.6513 MB / 1.414 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.486, allocations: 0 / 1.414 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001956/1.488, allocations: 0.4885 MB / 1.414 GB, free: 10.3 MB / 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.003815/1.492, allocations: 2.078 MB / 1.416 GB, free: 8.242 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.002374/1.494, allocations: 2.341 MB / 1.419 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.494, allocations: 0 / 1.419 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003117/1.495, allocations: 342.7 kB / 1.419 GB, free: 6.348 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/1.495, allocations: 31.64 kB / 1.419 GB, free: 6.336 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/1.498, allocations: 1.799 MB / 1.421 GB, free: 4.531 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/1.499, allocations: 0.9813 MB / 1.422 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002332/1.499, allocations: 59.34 kB / 1.422 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003049/1.499, allocations: 279.3 kB / 1.422 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of SimCode: time 6.51e-07/1.499, allocations: 0 / 1.422 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04197/1.541, allocations: 16.83 MB / 1.439 GB, free: 2.805 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004111/1.542, allocations: 239.5 kB / 1.439 GB, free: 2.488 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.001/4.543, allocations: 4 kB / 1.439 GB, free: 2.484 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat does not exist to compare? outputFormat=mat