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.005654/0.005654, allocations: 99.92 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.001214/0.001214, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002266/0.002266, allocations: 279 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9767/0.9767, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 99.84 kB / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1555, allocations: 86.97 MB / 0.766 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002996/0.1585, allocations: 1.743 MB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00739/0.1659, allocations: 5.398 MB / 0.7729 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.1661, allocations: 4 kB / 0.773 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001246/0.1674, allocations: 370.4 kB / 0.7733 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.1675, allocations: 59.67 kB / 0.7734 GB, free: 1.227 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.3301/0.4977, allocations: 1.485 MB / 0.7748 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004253/0.4981, allocations: 157.9 kB / 0.775 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 6.811e-05/0.4982, allocations: 11.73 kB / 0.775 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.4983, allocations: 61.42 kB / 0.775 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/0.4987, allocations: 165.9 kB / 0.7752 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.4988, allocations: 15.94 kB / 0.7752 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004692/0.5035, allocations: 2.202 MB / 0.7774 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003166/0.5038, allocations: 284.1 kB / 0.7776 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002902/0.5041, allocations: 306.4 kB / 0.7779 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00398/0.5081, allocations: 2.183 MB / 0.7801 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.5081, allocations: 2.344 kB / 0.7801 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.532e-06/0.5081, allocations: 0 / 0.7801 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.315e-05/0.5082, allocations: 0.6562 kB / 0.7801 GB, free: 8.133 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.008632/0.5168, allocations: 1.368 MB / 0.7814 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.5169, allocations: 10.53 kB / 0.7814 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.298e-05/0.5169, allocations: 33.67 kB / 0.7814 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000508/0.5174, allocations: 99.53 kB / 0.7815 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000661/0.5181, allocations: 406.4 kB / 0.7819 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.5181, allocations: 8.531 kB / 0.7819 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.966e-05/0.5182, allocations: 5.703 kB / 0.7819 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005042/0.5187, allocations: 395.7 kB / 0.7823 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.5187, allocations: 4.672 kB / 0.7823 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.5187, allocations: 2.328 kB / 0.7823 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.5187, allocations: 2.75 kB / 0.7823 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004952/0.5192, allocations: 432.5 kB / 0.7827 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000699/0.52, allocations: 0.6701 MB / 0.7834 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/0.5204, allocations: 0.5693 MB / 0.7839 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/0.5207, allocations: 334.5 kB / 0.7843 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007438/0.5214, allocations: 1.027 MB / 0.7853 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003767/0.5218, allocations: 409.6 kB / 0.7857 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.893e-06/0.5218, allocations: 3.031 kB / 0.7857 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001306/0.5231, allocations: 1.293 MB / 0.7869 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.5232, allocations: 80.27 kB / 0.787 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.5245, allocations: 1.292 MB / 0.7883 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.17e-05/0.5246, allocations: 35.34 kB / 0.7883 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.5247, allocations: 283.3 kB / 0.7886 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.5248, allocations: 21.33 kB / 0.7886 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000316/0.5251, allocations: 354.9 kB / 0.7889 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.827e-05/0.5252, allocations: 318.2 kB / 0.7892 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.5263, allocations: 1.372 MB / 0.7906 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.5277, allocations: 1.506 MB / 0.792 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007356/0.5351, allocations: 3.565 MB / 0.7955 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.5351, allocations: 0 / 0.7955 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005247/0.5404, allocations: 4.056 MB / 0.7995 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.5405, allocations: 6.219 kB / 0.7995 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.664e-05/0.5405, allocations: 6.484 kB / 0.7995 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.5405, allocations: 1.156 kB / 0.7995 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.5407, allocations: 23.72 kB / 0.7995 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.5407, allocations: 0 / 0.7995 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006165/0.5413, allocations: 228.3 kB / 0.7997 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.027e-05/0.5414, allocations: 27.64 kB / 0.7998 GB, free: 15.4 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.0004358/0.5418, allocations: 248.2 kB / 0.8 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.35e-05/0.5419, allocations: 76.27 kB / 0.8001 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.5422, allocations: 87.05 kB / 0.8001 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.5422, allocations: 1.094 kB / 0.8001 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.5423, allocations: 1.156 kB / 0.8001 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.5423, allocations: 4.125 kB / 0.8002 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005599/0.5428, allocations: 0.5123 MB / 0.8007 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5428, allocations: 1.859 kB / 0.8007 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.401e-05/0.5429, allocations: 10.77 kB / 0.8007 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.5429, allocations: 1.812 kB / 0.8007 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.543, allocations: 7.984 kB / 0.8007 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.543, allocations: 6.062 kB / 0.8007 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.543, allocations: 0 / 0.8007 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009502/0.5439, allocations: 1.009 MB / 0.8017 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.5441, allocations: 161.2 kB / 0.8018 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.5442, allocations: 4.734 kB / 0.8018 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.5443, allocations: 13.25 kB / 0.8018 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.5444, allocations: 5.719 kB / 0.8018 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.577e-05/0.5444, allocations: 12.42 kB / 0.8019 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009309/0.5453, allocations: 0.7235 MB / 0.8026 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.01e-07/0.5454, allocations: 0 / 0.8026 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002065/0.5474, allocations: 0.5839 MB / 0.8031 GB, free: 14.21 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.003516/0.551, allocations: 2.144 MB / 0.8052 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002578/0.5536, allocations: 2.55 MB / 0.8077 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.5536, allocations: 0 / 0.8077 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.554, allocations: 344.8 kB / 0.808 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.5545, allocations: 62.19 kB / 0.8081 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.5719, allocations: 15.25 MB / 0.823 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.5726, allocations: 0.9968 MB / 0.824 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002011/0.5728, allocations: 38.67 kB / 0.824 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003644/0.5732, allocations: 288.8 kB / 0.8243 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of SimCode: time 1.423e-06/0.5732, allocations: 0 / 0.8243 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04944/0.6226, allocations: 24.32 MB / 0.848 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.656/10.28, allocations: 12.56 kB / 0.848 GB, free: 13.45 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)