Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.005326/0.005326, allocations: 103.7 kB / 15.74 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.001344/0.001344, allocations: 195.8 kB / 16.67 MB, free: 6.355 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002397/0.002397, allocations: 278.5 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9826/0.9826, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 95.86 kB / 0.681 GB, free: 15.87 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.175, allocations: 86.97 MB / 0.766 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003315/0.1783, allocations: 1.74 MB / 0.7677 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.007529/0.1859, allocations: 5.394 MB / 0.7729 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.101e-05/0.186, allocations: 7.938 kB / 0.773 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.1871, allocations: 366.4 kB / 0.7733 GB, free: 1.281 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.1872, allocations: 67.66 kB / 0.7734 GB, free: 1.215 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.339/0.5262, allocations: 1.491 MB / 0.7748 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.5266, allocations: 158 kB / 0.775 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.804e-05/0.5266, allocations: 10.23 kB / 0.775 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.5267, allocations: 65.11 kB / 0.775 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.527, allocations: 167.2 kB / 0.7752 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.5271, allocations: 16.25 kB / 0.7752 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004318/0.5314, allocations: 2.2 MB / 0.7774 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.5317, allocations: 280.9 kB / 0.7776 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000265/0.532, allocations: 312.2 kB / 0.7779 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003268/0.5352, allocations: 2.193 MB / 0.7801 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.5352, allocations: 0 / 0.7801 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.774e-06/0.5353, allocations: 1 kB / 0.7801 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.5353, allocations: 0 / 0.7801 GB, free: 8.129 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.01032/0.5456, allocations: 1.417 MB / 0.7815 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.5456, allocations: 9.656 kB / 0.7815 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.539e-05/0.5457, allocations: 35.05 kB / 0.7815 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003671/0.5461, allocations: 99.75 kB / 0.7816 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.5466, allocations: 415.3 kB / 0.782 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.5466, allocations: 7.953 kB / 0.782 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.6e-05/0.5467, allocations: 6.641 kB / 0.782 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004594/0.5471, allocations: 394.7 kB / 0.7824 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.5471, allocations: 0 / 0.7824 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.5472, allocations: 2.484 kB / 0.7824 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.5472, allocations: 1.188 kB / 0.7824 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.5476, allocations: 435.9 kB / 0.7828 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005715/0.5482, allocations: 0.6713 MB / 0.7835 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005684/0.5488, allocations: 0.56 MB / 0.784 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002632/0.5491, allocations: 337 kB / 0.7843 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007128/0.5498, allocations: 1.025 MB / 0.7853 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003565/0.5502, allocations: 411.5 kB / 0.7857 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.5502, allocations: 0.5 kB / 0.7857 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001432/0.5516, allocations: 1.305 MB / 0.787 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.5516, allocations: 83.52 kB / 0.7871 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.5528, allocations: 1.294 MB / 0.7883 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.5529, allocations: 31.08 kB / 0.7884 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.553, allocations: 295.1 kB / 0.7886 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.5531, allocations: 22.98 kB / 0.7887 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002954/0.5534, allocations: 356.2 kB / 0.789 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.855e-05/0.5534, allocations: 320.3 kB / 0.7893 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.5546, allocations: 1.369 MB / 0.7907 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.5561, allocations: 1.51 MB / 0.7921 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007055/0.5631, allocations: 3.558 MB / 0.7956 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5632, allocations: 0 / 0.7956 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004385/0.5676, allocations: 4.021 MB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.5676, allocations: 5.25 kB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.5676, allocations: 3.141 kB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.5676, allocations: 4.875 kB / 0.7995 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.5678, allocations: 16.11 kB / 0.7996 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.5678, allocations: 1.375 kB / 0.7996 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006359/0.5684, allocations: 244.3 kB / 0.7998 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/0.5685, allocations: 23.83 kB / 0.7998 GB, free: 15.11 MB / 0.5762 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.0003563/0.5689, allocations: 249 kB / 0.8001 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/0.5689, allocations: 79.86 kB / 0.8001 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.5692, allocations: 81.61 kB / 0.8002 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5692, allocations: 1.125 kB / 0.8002 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5692, allocations: 1.5 kB / 0.8002 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.5692, allocations: 5.422 kB / 0.8002 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007197/0.57, allocations: 0.5205 MB / 0.8007 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.57, allocations: 5 kB / 0.8007 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-05/0.57, allocations: 11.97 kB / 0.8007 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.5701, allocations: 0 / 0.8007 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.5701, allocations: 3.953 kB / 0.8007 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.5701, allocations: 3.469 kB / 0.8007 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5701, allocations: 1.625 kB / 0.8007 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009038/0.571, allocations: 1.009 MB / 0.8017 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.5711, allocations: 168.8 kB / 0.8019 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.781e-05/0.5712, allocations: 6.734 kB / 0.8019 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.5714, allocations: 4.25 kB / 0.8019 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.683e-05/0.5714, allocations: 10.27 kB / 0.8019 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.458e-05/0.5715, allocations: 12.64 kB / 0.8019 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001063/0.5725, allocations: 0.727 MB / 0.8026 GB, free: 14 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5725, allocations: 0 / 0.8026 GB, free: 14 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001884/0.5744, allocations: 0.5913 MB / 0.8032 GB, free: 13.89 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.003341/0.5778, allocations: 2.166 MB / 0.8053 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002999/0.5808, allocations: 2.551 MB / 0.8078 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.5808, allocations: 0 / 0.8078 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003781/0.5812, allocations: 339.8 kB / 0.8081 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004595/0.5816, allocations: 68.17 kB / 0.8082 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/0.5985, allocations: 15.29 MB / 0.8231 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.5991, allocations: 0.9872 MB / 0.8241 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001696/0.5993, allocations: 39.41 kB / 0.8241 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005172/0.5998, allocations: 292.9 kB / 0.8244 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/0.5998, allocations: 0 / 0.8244 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05002/0.6498, allocations: 24.09 MB / 0.8479 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.917/10.57, allocations: 13.12 kB / 0.848 GB, free: 13.3 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)