Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_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_latest_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.00791/0.00791, allocations: 99.14 kB / 15.73 MB, free: 6.039 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.001883/0.001883, allocations: 194.7 kB / 16.67 MB, free: 5.969 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.594/2.594, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 71.88 kB / 1.054 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.289, allocations: 157.4 MB / 1.207 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003164/0.2922, allocations: 1.76 MB / 1.209 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00788/0.3001, allocations: 5.393 MB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.3002, allocations: 7.938 kB / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.3015, allocations: 376.5 kB / 1.215 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.3017, allocations: 55.72 kB / 1.215 GB, free: 2.449 MB / 0.9669 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/Buildings 11.0.1-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.004082/0.3058, allocations: 1.491 MB / 1.216 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003029/0.3061, allocations: 167.3 kB / 1.216 GB, free: 0.793 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.069e-05/0.3062, allocations: 9.562 kB / 1.216 GB, free: 0.7852 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.486e-05/0.3063, allocations: 63.7 kB / 1.216 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.3065, allocations: 167.5 kB / 1.217 GB, free: 0.5586 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.331e-05/0.3066, allocations: 12 kB / 1.217 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00341/0.31, allocations: 2.2 MB / 1.219 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.3102, allocations: 279.8 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002723/0.3105, allocations: 314.1 kB / 1.219 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003363/0.3139, allocations: 2.178 MB / 1.221 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.3139, allocations: 7.984 kB / 1.221 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3139, allocations: 0 / 1.221 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.731e-05/0.3139, allocations: 0 / 1.221 GB, free: 11.57 MB / 0.9825 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.01081/0.3247, allocations: 1.351 MB / 1.223 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3248, allocations: 12.62 kB / 1.223 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.3249, allocations: 38.73 kB / 1.223 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000401/0.3253, allocations: 95.59 kB / 1.223 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006107/0.3259, allocations: 414.1 kB / 1.223 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.3259, allocations: 4.375 kB / 1.223 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.326, allocations: 4.375 kB / 1.223 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004155/0.3264, allocations: 403.2 kB / 1.224 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3264, allocations: 3.984 kB / 1.224 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3264, allocations: 4 kB / 1.224 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3264, allocations: 0 / 1.224 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004059/0.3268, allocations: 435.7 kB / 1.224 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006144/0.3275, allocations: 0.6615 MB / 1.225 GB, free: 8 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004853/0.328, allocations: 0.5672 MB / 1.225 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.3283, allocations: 337.7 kB / 1.226 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009575/0.3292, allocations: 1.021 MB / 1.227 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003828/0.3296, allocations: 416.8 kB / 1.227 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.3296, allocations: 0 / 1.227 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.001276/0.3309, allocations: 1.3 MB / 1.228 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.331, allocations: 81.09 kB / 1.228 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.3322, allocations: 1.293 MB / 1.23 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.3323, allocations: 33.7 kB / 1.23 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.3325, allocations: 281.4 kB / 1.23 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/0.3325, allocations: 19.75 kB / 1.23 GB, free: 2.359 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/0.3329, allocations: 347.6 kB / 1.23 GB, free: 2.016 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.333, allocations: 326 kB / 1.231 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.3341, allocations: 1.377 MB / 1.232 GB, free: 320 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.3354, allocations: 1.501 MB / 1.233 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006684/0.3421, allocations: 3.56 MB / 1.237 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3421, allocations: 4 kB / 1.237 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00408/0.3462, allocations: 4.014 MB / 1.241 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3462, allocations: 7.984 kB / 1.241 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.3462, allocations: 4 kB / 1.241 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.3463, allocations: 0 / 1.241 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.3464, allocations: 12 kB / 1.241 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3464, allocations: 7.984 kB / 1.241 GB, free: 7.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.3469, allocations: 232.3 kB / 1.241 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.849e-05/0.347, allocations: 23.98 kB / 1.241 GB, free: 6.809 MB / 0.9981 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.000302/0.3473, allocations: 245.6 kB / 1.241 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.136e-05/0.3474, allocations: 78.62 kB / 1.241 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002929/0.3477, allocations: 79.81 kB / 1.241 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.3477, allocations: 0 / 1.241 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3477, allocations: 8.031 kB / 1.241 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3477, allocations: 7.984 kB / 1.241 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004494/0.3482, allocations: 0.5101 MB / 1.242 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3482, allocations: 7.938 kB / 1.242 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.897e-05/0.3483, allocations: 4 kB / 1.242 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3483, allocations: 0 / 1.242 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.3483, allocations: 7.984 kB / 1.242 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3483, allocations: 0 / 1.242 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3483, allocations: 3.938 kB / 1.242 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008613/0.3492, allocations: 1.01 MB / 1.243 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.3493, allocations: 163.7 kB / 1.243 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.3494, allocations: 7.938 kB / 1.243 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.3495, allocations: 4 kB / 1.243 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.35e-05/0.3496, allocations: 7.984 kB / 1.243 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.3496, allocations: 15.98 kB / 1.243 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008688/0.3505, allocations: 0.7222 MB / 1.244 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3505, allocations: 0 / 1.244 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002022/0.3525, allocations: 0.5818 MB / 1.244 GB, free: 3.246 MB / 0.9981 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.003757/0.3563, allocations: 2.144 MB / 1.247 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.5528/0.9091, allocations: 2.549 MB / 1.249 GB, free: 39.21 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.9092, allocations: 3.938 kB / 1.249 GB, free: 39.21 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003765/0.9096, allocations: 342 kB / 1.249 GB, free: 39.21 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.91, allocations: 55.94 kB / 1.249 GB, free: 39.21 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01462/0.9246, allocations: 15.26 MB / 1.264 GB, free: 35.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.9251, allocations: 0.9852 MB / 1.265 GB, free: 34.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001631/0.9253, allocations: 40.08 kB / 1.265 GB, free: 34.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002804/0.9256, allocations: 287.7 kB / 1.266 GB, free: 34.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/0.9256, allocations: 0 / 1.266 GB, free: 34.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06071/0.9863, allocations: 24.32 MB / 1.289 GB, free: 31.57 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.719/10.71, allocations: 8.031 kB / 1.289 GB, free: 31.56 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)