Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_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_8_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.00108/0.00108, allocations: 108 kB / 15.61 MB, free: 152 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.001051/0.001051, allocations: 194.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.748/1.748, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 66.08 kB / 0.6716 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2182, allocations: 114.6 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002887/0.2211, allocations: 1.743 MB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00621/0.2274, allocations: 4.254 MB / 0.7894 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2275, allocations: 0 / 0.7894 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.2287, allocations: 377.2 kB / 0.7897 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.2289, allocations: 59.67 kB / 0.7898 GB, free: 6.895 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/gFunction.mo:2:1-295:14:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.gFunction' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.002512/0.2314, allocations: 0.9746 MB / 0.7907 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.2317, allocations: 151.1 kB / 0.7909 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.915e-05/0.2317, allocations: 9.547 kB / 0.7909 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.527e-05/0.2318, allocations: 59.72 kB / 0.791 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002184/0.232, allocations: 159.5 kB / 0.7911 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.2321, allocations: 16 kB / 0.7911 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001993/0.2341, allocations: 1.377 MB / 0.7925 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.2343, allocations: 275.8 kB / 0.7927 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002625/0.2346, allocations: 306.1 kB / 0.793 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.2365, allocations: 1.539 MB / 0.7945 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2365, allocations: 0 / 0.7945 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2365, allocations: 0 / 0.7945 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.044e-06/0.2365, allocations: 0 / 0.7945 GB, free: 2.031 MB / 0.6075 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.01034/0.2468, allocations: 1.281 MB / 0.7958 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.2469, allocations: 12.03 kB / 0.7958 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.247, allocations: 38.75 kB / 0.7958 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003948/0.2474, allocations: 95.58 kB / 0.7959 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.2479, allocations: 402 kB / 0.7963 GB, free: 108 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.2479, allocations: 8.312 kB / 0.7963 GB, free: 100 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.248, allocations: 8.375 kB / 0.7963 GB, free: 92 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004369/0.2484, allocations: 403.2 kB / 0.7967 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.2484, allocations: 0 / 0.7967 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.2485, allocations: 0 / 0.7967 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.2485, allocations: 0 / 0.7967 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004223/0.2489, allocations: 439.7 kB / 0.7971 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006261/0.2495, allocations: 0.6536 MB / 0.7978 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005252/0.2501, allocations: 0.5711 MB / 0.7983 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003169/0.2504, allocations: 337.7 kB / 0.7986 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001229/0.2516, allocations: 1.021 MB / 0.7996 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003936/0.252, allocations: 408.8 kB / 0.8 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.2521, allocations: 0 / 0.8 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001624/0.2537, allocations: 1.304 MB / 0.8013 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.2538, allocations: 85.11 kB / 0.8014 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.255, allocations: 1.281 MB / 0.8026 GB, free: 9.258 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.2551, allocations: 29.7 kB / 0.8027 GB, free: 9.223 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.2553, allocations: 281.4 kB / 0.8029 GB, free: 8.941 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.931e-05/0.2554, allocations: 23.73 kB / 0.8029 GB, free: 8.918 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/0.2557, allocations: 343.6 kB / 0.8033 GB, free: 8.578 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.2558, allocations: 322 kB / 0.8036 GB, free: 8.258 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001492/0.2573, allocations: 1.361 MB / 0.8049 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.2587, allocations: 1.493 MB / 0.8064 GB, free: 5.391 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007106/0.2658, allocations: 3.537 MB / 0.8098 GB, free: 1.762 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2659, allocations: 8 kB / 0.8098 GB, free: 1.754 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004265/0.2701, allocations: 3.976 MB / 0.8137 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2702, allocations: 4 kB / 0.8137 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.2702, allocations: 4 kB / 0.8137 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2702, allocations: 0 / 0.8137 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2704, allocations: 15.98 kB / 0.8137 GB, free: 13.72 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.2704, allocations: 0 / 0.8137 GB, free: 13.72 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005179/0.2709, allocations: 236.4 kB / 0.814 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.662e-05/0.271, allocations: 19.98 kB / 0.814 GB, free: 13.46 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (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 (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.000306/0.2713, allocations: 253.5 kB / 0.8142 GB, free: 13.21 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.2714, allocations: 78.53 kB / 0.8143 GB, free: 13.13 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.2717, allocations: 75.72 kB / 0.8144 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2717, allocations: 4.031 kB / 0.8144 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2717, allocations: 4 kB / 0.8144 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2717, allocations: 0 / 0.8144 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004455/0.2722, allocations: 0.5099 MB / 0.8149 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2722, allocations: 11.88 kB / 0.8149 GB, free: 12.47 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.554e-05/0.2723, allocations: 7.984 kB / 0.8149 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2723, allocations: 0 / 0.8149 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2723, allocations: 4 kB / 0.8149 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2723, allocations: 4 kB / 0.8149 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.2723, allocations: 0 / 0.8149 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000878/0.2732, allocations: 1.013 MB / 0.8159 GB, free: 11.42 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.2733, allocations: 159.7 kB / 0.816 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.2734, allocations: 4 kB / 0.816 GB, free: 11.24 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.2736, allocations: 7.984 kB / 0.8161 GB, free: 11.23 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.2736, allocations: 4 kB / 0.8161 GB, free: 11.23 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.2736, allocations: 19.97 kB / 0.8161 GB, free: 11.21 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007411/0.2744, allocations: 0.714 MB / 0.8168 GB, free: 10.49 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2744, allocations: 0 / 0.8168 GB, free: 10.49 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001051/0.2754, allocations: 399.9 kB / 0.8172 GB, free: 10.1 MB / 0.6387 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.002248/0.2777, allocations: 1.936 MB / 0.819 GB, free: 8.129 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002251/0.28, allocations: 2.495 MB / 0.8215 GB, free: 5.625 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.28, allocations: 0 / 0.8215 GB, free: 5.625 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003274/0.2803, allocations: 343.7 kB / 0.8218 GB, free: 5.289 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.2807, allocations: 55.98 kB / 0.8219 GB, free: 5.238 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.295, allocations: 14.91 MB / 0.8364 GB, free: 6.156 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006358/0.2957, allocations: 0.9839 MB / 0.8374 GB, free: 5.145 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001961/0.2959, allocations: 45.36 kB / 0.8374 GB, free: 5.098 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003091/0.2962, allocations: 279.3 kB / 0.8377 GB, free: 4.824 MB / 0.6544 GB Notification: Performance of SimCode: time 9.01e-07/0.2962, allocations: 4 kB / 0.8377 GB, free: 4.82 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04048/0.3367, allocations: 19.69 MB / 0.8569 GB, free: 1.328 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.559, allocations: 11.86 kB / 0.8569 GB, free: 1.32 MB / 0.67 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)