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.006261/0.006261, allocations: 95.23 kB / 15.73 MB, free: 6.047 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.001685/0.001685, allocations: 202.2 kB / 16.68 MB, free: 5.973 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002722/0.002722, allocations: 298.4 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.042/1.042, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002886/0.002886, allocations: 99.89 kB / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1865, allocations: 86.97 MB / 0.766 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003456/0.19, allocations: 1.748 MB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008975/0.199, allocations: 5.39 MB / 0.7729 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.1992, allocations: 3.938 kB / 0.773 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.2007, allocations: 373.6 kB / 0.7733 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.2009, allocations: 63.67 kB / 0.7734 GB, free: 1.242 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.3471/0.5481, allocations: 1.481 MB / 0.7748 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004523/0.5486, allocations: 160.2 kB / 0.775 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.785e-05/0.5486, allocations: 16.38 kB / 0.775 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.686e-05/0.5487, allocations: 57.5 kB / 0.775 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002549/0.549, allocations: 171.1 kB / 0.7752 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.312e-05/0.549, allocations: 14.59 kB / 0.7752 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003943/0.553, allocations: 2.2 MB / 0.7774 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.5533, allocations: 282.7 kB / 0.7776 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000268/0.5536, allocations: 308.6 kB / 0.7779 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00419/0.5578, allocations: 2.192 MB / 0.7801 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.5578, allocations: 1.75 kB / 0.7801 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.394e-06/0.5578, allocations: 7.359 kB / 0.7801 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.422e-05/0.5578, allocations: 0.7812 kB / 0.7801 GB, free: 8.168 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.008265/0.5661, allocations: 1.413 MB / 0.7815 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.5662, allocations: 9.5 kB / 0.7815 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.97e-05/0.5662, allocations: 33.84 kB / 0.7815 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004058/0.5666, allocations: 100.8 kB / 0.7816 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005277/0.5672, allocations: 415.3 kB / 0.782 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.5672, allocations: 8.328 kB / 0.782 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-05/0.5672, allocations: 5.516 kB / 0.782 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000483/0.5677, allocations: 393 kB / 0.7824 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.5677, allocations: 4.391 kB / 0.7824 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.5678, allocations: 0.7969 kB / 0.7824 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.5678, allocations: 2.25 kB / 0.7824 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.5683, allocations: 436.9 kB / 0.7828 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008244/0.5691, allocations: 0.6687 MB / 0.7835 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.5695, allocations: 0.5669 MB / 0.784 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.5698, allocations: 336.6 kB / 0.7843 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007253/0.5705, allocations: 1.025 MB / 0.7853 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.5709, allocations: 407.1 kB / 0.7857 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.5709, allocations: 0 / 0.7857 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001494/0.5724, allocations: 1.305 MB / 0.787 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.5725, allocations: 87.03 kB / 0.7871 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.5738, allocations: 1.297 MB / 0.7883 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.144e-05/0.5739, allocations: 30.98 kB / 0.7884 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.5741, allocations: 288.8 kB / 0.7887 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.5741, allocations: 22.77 kB / 0.7887 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003351/0.5745, allocations: 351.7 kB / 0.789 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.875e-05/0.5745, allocations: 321 kB / 0.7893 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.576, allocations: 1.375 MB / 0.7907 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.5775, allocations: 1.507 MB / 0.7921 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007368/0.5849, allocations: 3.558 MB / 0.7956 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.5849, allocations: 0 / 0.7956 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004855/0.5897, allocations: 4.022 MB / 0.7995 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.5898, allocations: 5.25 kB / 0.7995 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.5898, allocations: 4.141 kB / 0.7995 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.5898, allocations: 1.25 kB / 0.7995 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.59, allocations: 19.92 kB / 0.7996 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.59, allocations: 0 / 0.7996 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006164/0.5906, allocations: 237.9 kB / 0.7998 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.222e-05/0.5907, allocations: 23.23 kB / 0.7998 GB, free: 15.16 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.0003922/0.5911, allocations: 254.3 kB / 0.8001 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/0.5912, allocations: 81.28 kB / 0.8001 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.5914, allocations: 80.56 kB / 0.8002 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.5915, allocations: 1.938 kB / 0.8002 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.5915, allocations: 2.031 kB / 0.8002 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.5915, allocations: 4.172 kB / 0.8002 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006095/0.5921, allocations: 0.515 MB / 0.8007 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5921, allocations: 8.938 kB / 0.8007 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/0.5922, allocations: 13.69 kB / 0.8007 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.5922, allocations: 1.125 kB / 0.8007 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.5922, allocations: 2.938 kB / 0.8007 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.5922, allocations: 1.062 kB / 0.8007 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.5922, allocations: 1 kB / 0.8007 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.5934, allocations: 1.019 MB / 0.8017 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.5935, allocations: 168.4 kB / 0.8019 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.5936, allocations: 2.828 kB / 0.8019 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.5938, allocations: 4.766 kB / 0.8019 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.185e-05/0.5938, allocations: 10.89 kB / 0.8019 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.5939, allocations: 12.27 kB / 0.8019 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008753/0.5947, allocations: 0.7314 MB / 0.8026 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5947, allocations: 0 / 0.8026 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002121/0.5969, allocations: 0.587 MB / 0.8032 GB, free: 13.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.003737/0.6006, allocations: 2.159 MB / 0.8053 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002898/0.6035, allocations: 2.548 MB / 0.8078 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.6036, allocations: 1.656 kB / 0.8078 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.6039, allocations: 342.8 kB / 0.8081 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007146/0.6047, allocations: 53.92 kB / 0.8082 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/0.6245, allocations: 15.3 MB / 0.8231 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007572/0.6253, allocations: 0.9878 MB / 0.8241 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002003/0.6255, allocations: 39.92 kB / 0.8241 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003492/0.6258, allocations: 292.5 kB / 0.8244 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of SimCode: time 8.22e-07/0.6258, allocations: 0 / 0.8244 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06023/0.6861, allocations: 24.1 MB / 0.8479 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.86, allocations: 4.5 kB / 0.8479 GB, free: 13.34 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 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)