Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005046/0.005046, allocations: 102.1 kB / 15.73 MB, free: 6.449 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.001281/0.001281, allocations: 198.2 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00246/0.00246, allocations: 279 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.007/1.007, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004238/0.004238, allocations: 99.86 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1901, allocations: 86.97 MB / 0.766 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002828/0.193, allocations: 1.417 MB / 0.7674 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.007033/0.2001, allocations: 4.208 MB / 0.7715 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.456e-05/0.2002, allocations: 0 / 0.7715 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.2003, allocations: 15.86 kB / 0.7715 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.2006, allocations: 27.78 kB / 0.7715 GB, free: 3.172 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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 NFTyping.typeClassSections: time 0.004126/0.2047, allocations: 1.504 MB / 0.773 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002255/0.205, allocations: 99.66 kB / 0.7731 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.675e-05/0.205, allocations: 4 kB / 0.7731 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.782e-05/0.2051, allocations: 43.84 kB / 0.7731 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.2053, allocations: 147.6 kB / 0.7733 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.996e-05/0.2054, allocations: 12 kB / 0.7733 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3528/0.5582, allocations: 2.203 MB / 0.7754 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003189/0.5586, allocations: 268.7 kB / 0.7757 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002651/0.5588, allocations: 281 kB / 0.776 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004142/0.563, allocations: 2.128 MB / 0.778 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.563, allocations: 0 / 0.778 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.074e-06/0.563, allocations: 1.156 kB / 0.778 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.563, allocations: 3.938 kB / 0.778 GB, free: 8.426 MB / 0.5606 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.00832/0.5714, allocations: 1.337 MB / 0.7793 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.5714, allocations: 9.344 kB / 0.7793 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.283e-05/0.5715, allocations: 38.38 kB / 0.7794 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004089/0.5719, allocations: 94.45 kB / 0.7795 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004012/0.5723, allocations: 364 kB / 0.7798 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.5723, allocations: 6.594 kB / 0.7798 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.834e-05/0.5724, allocations: 7.5 kB / 0.7798 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005234/0.5729, allocations: 394.7 kB / 0.7802 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.5729, allocations: 2.125 kB / 0.7802 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.5729, allocations: 2.5 kB / 0.7802 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.573, allocations: 2.375 kB / 0.7802 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005469/0.5735, allocations: 433.3 kB / 0.7806 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006494/0.5742, allocations: 0.6476 MB / 0.7813 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006319/0.5748, allocations: 0.5609 MB / 0.7818 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.5752, allocations: 339.8 kB / 0.7821 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008651/0.576, allocations: 1.027 MB / 0.7831 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004666/0.5765, allocations: 407.8 kB / 0.7835 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 4.227e-06/0.5765, allocations: 1.594 kB / 0.7835 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001453/0.578, allocations: 1.295 MB / 0.7848 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.5781, allocations: 85.33 kB / 0.7849 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.5793, allocations: 1.219 MB / 0.7861 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.5794, allocations: 29.33 kB / 0.7861 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.5796, allocations: 265 kB / 0.7863 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.5796, allocations: 23.81 kB / 0.7864 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.5799, allocations: 356.3 kB / 0.7867 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.222e-05/0.58, allocations: 308.6 kB / 0.787 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.5812, allocations: 1.373 MB / 0.7883 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.5825, allocations: 1.504 MB / 0.7898 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007391/0.5899, allocations: 3.564 MB / 0.7933 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.59, allocations: 1.312 kB / 0.7933 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004444/0.5944, allocations: 4.009 MB / 0.7972 GB, free: 328 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.5944, allocations: 8.469 kB / 0.7972 GB, free: 324 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.5945, allocations: 2.5 kB / 0.7972 GB, free: 324 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.5945, allocations: 1.75 kB / 0.7972 GB, free: 324 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.5946, allocations: 18.7 kB / 0.7972 GB, free: 320 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.5947, allocations: 2.156 kB / 0.7972 GB, free: 320 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005313/0.5952, allocations: 237.8 kB / 0.7975 GB, free: 124 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.5953, allocations: 30.31 kB / 0.7975 GB, free: 120 kB / 0.5606 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 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003421/0.5956, allocations: 243.6 kB / 0.7977 GB, free: 0 / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.613e-05/0.5957, allocations: 72.66 kB / 0.7978 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000276/0.596, allocations: 71.75 kB / 0.7979 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.596, allocations: 2.797 kB / 0.7979 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.596, allocations: 4.031 kB / 0.7979 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.596, allocations: 2.5 kB / 0.7979 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/0.5966, allocations: 0.4944 MB / 0.7984 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.5966, allocations: 7.031 kB / 0.7984 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.147e-05/0.5967, allocations: 7.156 kB / 0.7984 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.5967, allocations: 1.188 kB / 0.7984 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.5967, allocations: 4.828 kB / 0.7984 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.5967, allocations: 1.156 kB / 0.7984 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5967, allocations: 1.188 kB / 0.7984 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.5978, allocations: 1.002 MB / 0.7994 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.598, allocations: 159.3 kB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.687e-05/0.598, allocations: 1.969 kB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.5982, allocations: 9.812 kB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.874e-05/0.5982, allocations: 5.656 kB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.5983, allocations: 15.97 kB / 0.7995 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008639/0.5992, allocations: 0.6712 MB / 0.8002 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5992, allocations: 0 / 0.8002 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002557/0.6017, allocations: 0.5917 MB / 0.8008 GB, free: 14.95 MB / 0.5762 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003858/0.6056, allocations: 2.155 MB / 0.8029 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002913/0.6085, allocations: 2.546 MB / 0.8054 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6086, allocations: 0 / 0.8054 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003795/0.609, allocations: 348.2 kB / 0.8057 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/0.6094, allocations: 42.78 kB / 0.8057 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01895/0.6284, allocations: 15.27 MB / 0.8207 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007006/0.6292, allocations: 0.9693 MB / 0.8216 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00015/0.6293, allocations: 34.02 kB / 0.8216 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004131/0.6297, allocations: 263.9 kB / 0.8219 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/0.6297, allocations: 0 / 0.8219 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05864/0.6884, allocations: 23.84 MB / 0.8452 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/10.78, allocations: 6.906 kB / 0.8452 GB, free: 0.8398 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)