Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_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.0009391/0.0009391, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.005988/0.005988, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.251/1.251, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.344/2.344, allocations: 437.8 MB / 0.7121 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003352/0.0003352, allocations: 8 kB / 0.873 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5838/0.5841, allocations: 153.8 MB / 1.023 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001835/0.586, allocations: 1.464 MB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.007551/0.5935, allocations: 5.559 MB / 1.03 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.5937, allocations: 3.938 kB / 1.03 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.5948, allocations: 362.6 kB / 1.03 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.5949, allocations: 51.78 kB / 1.03 GB, free: 8.402 MB / 0.7794 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002835/0.5977, allocations: 1.17 MB / 1.032 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.598, allocations: 205.5 kB / 1.032 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.215e-05/0.5981, allocations: 25.53 kB / 1.032 GB, free: 7.008 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.57e-05/0.5982, allocations: 59.72 kB / 1.032 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/0.5984, allocations: 176.8 kB / 1.032 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.061e-05/0.5984, allocations: 16 kB / 1.032 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002962/0.6014, allocations: 2.18 MB / 1.034 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002122/0.6016, allocations: 279.8 kB / 1.034 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002777/0.6019, allocations: 331.8 kB / 1.035 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002846/0.6048, allocations: 2.225 MB / 1.037 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.6048, allocations: 0 / 1.037 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.273e-06/0.6048, allocations: 0 / 1.037 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.6048, allocations: 0 / 1.037 GB, free: 1.738 MB / 0.7794 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.01025/0.6151, allocations: 1.31 MB / 1.038 GB, free: 388 kB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.6151, allocations: 11.98 kB / 1.038 GB, free: 376 kB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.659e-05/0.6151, allocations: 38.69 kB / 1.038 GB, free: 328 kB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003308/0.6155, allocations: 99.58 kB / 1.038 GB, free: 228 kB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.6159, allocations: 410.1 kB / 1.039 GB, free: 15.77 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.6159, allocations: 4.375 kB / 1.039 GB, free: 15.77 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.616, allocations: 12.38 kB / 1.039 GB, free: 15.76 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003834/0.6164, allocations: 395.3 kB / 1.039 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.6164, allocations: 0 / 1.039 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.6164, allocations: 3.984 kB / 1.039 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.6164, allocations: 0 / 1.039 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003997/0.6168, allocations: 435.7 kB / 1.04 GB, free: 14.93 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005574/0.6174, allocations: 0.6731 MB / 1.04 GB, free: 14.21 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.6179, allocations: 0.5555 MB / 1.041 GB, free: 13.63 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.6182, allocations: 333.7 kB / 1.041 GB, free: 13.3 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009427/0.6191, allocations: 1.044 MB / 1.042 GB, free: 12.04 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003814/0.6195, allocations: 404.8 kB / 1.042 GB, free: 11.62 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.6195, allocations: 4 kB / 1.042 GB, free: 11.62 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001382/0.6209, allocations: 1.3 MB / 1.044 GB, free: 10.31 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.621, allocations: 77.11 kB / 1.044 GB, free: 10.21 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.6222, allocations: 1.286 MB / 1.045 GB, free: 8.918 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.6222, allocations: 29.7 kB / 1.045 GB, free: 8.883 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.6224, allocations: 293.4 kB / 1.045 GB, free: 8.59 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.759e-05/0.6225, allocations: 23.73 kB / 1.045 GB, free: 8.566 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.6227, allocations: 287.7 kB / 1.046 GB, free: 8.281 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.6228, allocations: 318 kB / 1.046 GB, free: 7.965 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.624, allocations: 1.369 MB / 1.047 GB, free: 6.594 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.6252, allocations: 1.509 MB / 1.049 GB, free: 5.074 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006677/0.6319, allocations: 3.56 MB / 1.052 GB, free: 1.422 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6319, allocations: 3.938 kB / 1.052 GB, free: 1.418 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003972/0.6359, allocations: 4.014 MB / 1.056 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.6359, allocations: 4 kB / 1.056 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.636, allocations: 4 kB / 1.056 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.636, allocations: 4.031 kB / 1.056 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.6361, allocations: 15.98 kB / 1.056 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.6361, allocations: 0 / 1.056 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.6366, allocations: 232.4 kB / 1.056 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.6367, allocations: 23.98 kB / 1.056 GB, free: 13.09 MB / 0.8106 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.0002882/0.6369, allocations: 246.1 kB / 1.057 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.537e-05/0.637, allocations: 82.52 kB / 1.057 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002571/0.6373, allocations: 79.83 kB / 1.057 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.6373, allocations: 0 / 1.057 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.6373, allocations: 3.984 kB / 1.057 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.6373, allocations: 7.938 kB / 1.057 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004111/0.6377, allocations: 0.5101 MB / 1.057 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.6377, allocations: 3.938 kB / 1.057 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.444e-05/0.6378, allocations: 15.94 kB / 1.057 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.207e-06/0.6378, allocations: 4.031 kB / 1.057 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.6378, allocations: 7.984 kB / 1.057 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.6379, allocations: 0 / 1.057 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.6379, allocations: 0 / 1.057 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008507/0.6387, allocations: 0.9979 MB / 1.058 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.6388, allocations: 163.7 kB / 1.059 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.094e-05/0.6389, allocations: 12 kB / 1.059 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.6391, allocations: 4 kB / 1.059 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.009e-05/0.6391, allocations: 11.98 kB / 1.059 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.98e-05/0.6391, allocations: 15.91 kB / 1.059 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007264/0.6399, allocations: 0.7261 MB / 1.059 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6399, allocations: 0 / 1.059 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001328/0.6412, allocations: 0.5934 MB / 1.06 GB, free: 9.5 MB / 0.8106 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.00266/0.6439, allocations: 2.145 MB / 1.062 GB, free: 7.344 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00212/0.646, allocations: 2.554 MB / 1.064 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.646, allocations: 0 / 1.064 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003083/0.6463, allocations: 347.7 kB / 1.065 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.6467, allocations: 56.7 kB / 1.065 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01418/0.6609, allocations: 15.3 MB / 1.08 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.6614, allocations: 0.9842 MB / 1.081 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001808/0.6616, allocations: 45.38 kB / 1.081 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.6619, allocations: 287.3 kB / 1.081 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of SimCode: time 6.21e-07/0.6619, allocations: 0 / 1.081 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.535/2.197, allocations: 23.25 MB / 1.104 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003024/2.197, allocations: 336.4 kB / 1.104 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.911/5.108, allocations: 2.922 kB / 1.104 GB, free: 12.2 MB / 0.8575 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)