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_1borehole_5meters.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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_1borehole_5meters,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.001247/0.001247, allocations: 108.6 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001175, allocations: 187.8 kB / 16.66 MB, free: 6.59 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.449/2.449, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 63.89 kB / 1.018 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2679, allocations: 151.6 MB / 1.166 GB, free: 7.227 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002228/0.2702, allocations: 1.432 MB / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.005752/0.2759, allocations: 4.199 MB / 1.172 GB, free: 1.555 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.838e-05/0.276, allocations: 3.938 kB / 1.172 GB, free: 1.551 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.203e-05/0.2761, allocations: 7.938 kB / 1.172 GB, free: 1.543 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.2763, allocations: 35.77 kB / 1.172 GB, free: 1.508 MB / 0.92 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 10.1.1-maint.10.0.x/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.002986/0.2793, allocations: 1.508 MB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001293/0.2794, allocations: 99.67 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.271e-05/0.2795, allocations: 4 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.487e-05/0.2795, allocations: 39.84 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.2797, allocations: 147.6 kB / 1.174 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.2798, allocations: 16 kB / 1.174 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002845/0.2827, allocations: 2.207 MB / 1.176 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002177/0.2829, allocations: 271.8 kB / 1.176 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.2831, allocations: 270.3 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002286/0.2854, allocations: 2.122 MB / 1.178 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2854, allocations: 0 / 1.178 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2854, allocations: 4 kB / 1.178 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.2854, allocations: 0 / 1.178 GB, free: 10.82 MB / 0.9356 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.01006/0.2955, allocations: 1.347 MB / 1.18 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.2956, allocations: 15.98 kB / 1.18 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.828e-05/0.2956, allocations: 34.73 kB / 1.18 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.2959, allocations: 88.25 kB / 1.18 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.2963, allocations: 373 kB / 1.18 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.403e-06/0.2963, allocations: 384 / 1.18 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.2964, allocations: 12.38 kB / 1.18 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.2968, allocations: 395.2 kB / 1.181 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.2968, allocations: 0 / 1.181 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.2968, allocations: 0 / 1.181 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.2968, allocations: 0 / 1.181 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004373/0.2973, allocations: 443.7 kB / 1.181 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.2979, allocations: 0.641 MB / 1.182 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.2984, allocations: 0.5633 MB / 1.182 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/0.2988, allocations: 337.7 kB / 1.182 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/0.2998, allocations: 1.028 MB / 1.183 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004029/0.3002, allocations: 412.8 kB / 1.184 GB, free: 4.734 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.3002, allocations: 0 / 1.184 GB, free: 4.734 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.001305/0.3015, allocations: 1.286 MB / 1.185 GB, free: 3.441 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.3016, allocations: 85.09 kB / 1.185 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.3027, allocations: 1.215 MB / 1.186 GB, free: 2.109 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.3028, allocations: 37.69 kB / 1.186 GB, free: 2.066 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.303, allocations: 270 kB / 1.187 GB, free: 1.797 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.303, allocations: 19.84 kB / 1.187 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003222/0.3034, allocations: 351.6 kB / 1.187 GB, free: 1.43 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3035, allocations: 314 kB / 1.187 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.3047, allocations: 1.373 MB / 1.189 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.3061, allocations: 1.505 MB / 1.19 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00686/0.313, allocations: 3.557 MB / 1.194 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.313, allocations: 0 / 1.194 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004237/0.3173, allocations: 4.007 MB / 1.197 GB, free: 6.535 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3173, allocations: 8 kB / 1.198 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.3173, allocations: 4.031 kB / 1.198 GB, free: 6.523 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3173, allocations: 4 kB / 1.198 GB, free: 6.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3175, allocations: 19.98 kB / 1.198 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.3175, allocations: 4.062 kB / 1.198 GB, free: 6.496 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004609/0.3179, allocations: 245.2 kB / 1.198 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/0.318, allocations: 19.98 kB / 1.198 GB, free: 6.234 MB / 0.9512 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.000288/0.3183, allocations: 245.6 kB / 1.198 GB, free: 5.984 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.121e-05/0.3184, allocations: 79.23 kB / 1.198 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.3186, allocations: 71.08 kB / 1.198 GB, free: 5.824 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.3186, allocations: 0 / 1.198 GB, free: 5.824 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.3186, allocations: 4 kB / 1.198 GB, free: 5.82 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3187, allocations: 3.984 kB / 1.198 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004286/0.3191, allocations: 0.4892 MB / 1.199 GB, free: 5.281 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.3191, allocations: 11.88 kB / 1.199 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.324e-05/0.3192, allocations: 8 kB / 1.199 GB, free: 5.262 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.3192, allocations: 8.016 kB / 1.199 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.3192, allocations: 3.984 kB / 1.199 GB, free: 5.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.3192, allocations: 4 kB / 1.199 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3192, allocations: 0 / 1.199 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009349/0.3201, allocations: 0.9902 MB / 1.2 GB, free: 4.234 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.3203, allocations: 168.4 kB / 1.2 GB, free: 4.051 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.151e-05/0.3203, allocations: 0 / 1.2 GB, free: 4.051 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.3205, allocations: 8 kB / 1.2 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.3205, allocations: 11.92 kB / 1.2 GB, free: 4.031 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.3206, allocations: 11.98 kB / 1.2 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007142/0.3213, allocations: 0.6728 MB / 1.201 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3213, allocations: 0 / 1.201 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001406/0.3227, allocations: 0.5845 MB / 1.201 GB, free: 2.754 MB / 0.9512 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.07405/0.3967, allocations: 2.148 MB / 1.203 GB, free: 0.5898 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002998/0.3998, allocations: 2.552 MB / 1.206 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.3998, allocations: 0 / 1.206 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.4002, allocations: 343.7 kB / 1.206 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.4005, allocations: 41.3 kB / 1.206 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/0.4156, allocations: 15.29 MB / 1.221 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005625/0.4162, allocations: 0.9601 MB / 1.222 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001282/0.4164, allocations: 40.67 kB / 1.222 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/0.4167, allocations: 263.3 kB / 1.222 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of SimCode: time 7.52e-07/0.4167, allocations: 0 / 1.222 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.51/1.927, allocations: 23.81 MB / 1.245 GB, free: 5.309 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/15.53, allocations: 12.67 kB / 1.245 GB, free: 5.297 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)