Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_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.001393/0.001393, allocations: 101.8 kB / 16.4 MB, free: 6.461 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.001523/0.001524, allocations: 196 kB / 17.34 MB, free: 5.715 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.851/0.851, allocations: 126.7 MB / 417.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 70.84 kB / 0.5736 GB, free: 27.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1656, allocations: 78.87 MB / 0.6506 GB, free: 3.668 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003086/0.1687, allocations: 1.74 MB / 0.6523 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008054/0.1768, allocations: 5.394 MB / 0.6576 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.177, allocations: 0 / 0.6576 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.1784, allocations: 372.1 kB / 0.6579 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.1785, allocations: 63.66 kB / 0.658 GB, free: 12.07 MB / 0.4981 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/IBPSA 4.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.004353/0.1829, allocations: 1.497 MB / 0.6595 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.1832, allocations: 159.4 kB / 0.6596 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.179e-05/0.1833, allocations: 21.42 kB / 0.6596 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.392e-05/0.1834, allocations: 63.7 kB / 0.6597 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.1836, allocations: 159.5 kB / 0.6599 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.536e-05/0.1837, allocations: 16 kB / 0.6599 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003956/0.1876, allocations: 2.204 MB / 0.662 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002715/0.188, allocations: 279.8 kB / 0.6623 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003209/0.1883, allocations: 318.1 kB / 0.6626 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004248/0.1925, allocations: 2.188 MB / 0.6647 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1926, allocations: 0 / 0.6647 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1926, allocations: 0 / 0.6647 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.1926, allocations: 0 / 0.6647 GB, free: 5.176 MB / 0.4981 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.01108/0.2037, allocations: 1.418 MB / 0.6661 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.27e-05/0.2038, allocations: 8.031 kB / 0.6661 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.139e-05/0.2039, allocations: 38.75 kB / 0.6662 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000428/0.2043, allocations: 104.1 kB / 0.6663 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006206/0.2049, allocations: 402.4 kB / 0.6666 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.2049, allocations: 12.12 kB / 0.6667 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.205, allocations: 4 kB / 0.6667 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004491/0.2054, allocations: 395.1 kB / 0.667 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.2055, allocations: 3.938 kB / 0.667 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.2055, allocations: 3.984 kB / 0.667 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.2055, allocations: 4 kB / 0.667 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004565/0.206, allocations: 427.8 kB / 0.6675 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.2067, allocations: 0.6737 MB / 0.6681 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.2072, allocations: 0.5632 MB / 0.6687 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.2076, allocations: 337.7 kB / 0.669 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00118/0.2088, allocations: 1.028 MB / 0.67 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004539/0.2092, allocations: 408.8 kB / 0.6704 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.934e-06/0.2092, allocations: 0 / 0.6704 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001514/0.2108, allocations: 1.305 MB / 0.6717 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.2109, allocations: 81.11 kB / 0.6717 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.2123, allocations: 1.298 MB / 0.673 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.2123, allocations: 33.7 kB / 0.673 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.2125, allocations: 285.9 kB / 0.6733 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.051e-05/0.2126, allocations: 27.77 kB / 0.6733 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/0.2129, allocations: 355.8 kB / 0.6737 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2131, allocations: 322 kB / 0.674 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.2146, allocations: 1.369 MB / 0.6753 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.2161, allocations: 1.505 MB / 0.6768 GB, free: 8.324 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007118/0.2233, allocations: 3.564 MB / 0.6803 GB, free: 4.668 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.2233, allocations: 0 / 0.6803 GB, free: 4.668 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004579/0.2279, allocations: 4.007 MB / 0.6842 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.2279, allocations: 7.938 kB / 0.6842 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.228, allocations: 7.938 kB / 0.6842 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.228, allocations: 0 / 0.6842 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.2281, allocations: 16.02 kB / 0.6842 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2281, allocations: 4 kB / 0.6842 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.2287, allocations: 249.2 kB / 0.6844 GB, free: 352 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/0.2287, allocations: 23.98 kB / 0.6845 GB, free: 328 kB / 0.5137 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.0003445/0.2291, allocations: 253.5 kB / 0.6847 GB, free: 64 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.703e-05/0.2292, allocations: 75.48 kB / 0.6848 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.2295, allocations: 87.81 kB / 0.6849 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2295, allocations: 0 / 0.6849 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2295, allocations: 0 / 0.6849 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2295, allocations: 0 / 0.6849 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000497/0.23, allocations: 0.5255 MB / 0.6854 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.23, allocations: 0 / 0.6854 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.525e-05/0.2301, allocations: 8 kB / 0.6854 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2301, allocations: 3.984 kB / 0.6854 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.2301, allocations: 0 / 0.6854 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.2301, allocations: 4 kB / 0.6854 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2301, allocations: 4.031 kB / 0.6854 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000996/0.2311, allocations: 1.014 MB / 0.6864 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.2313, allocations: 164.4 kB / 0.6865 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.229e-05/0.2313, allocations: 4 kB / 0.6865 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.2315, allocations: 7.984 kB / 0.6866 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.2315, allocations: 4 kB / 0.6866 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-05/0.2316, allocations: 19.97 kB / 0.6866 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000825/0.2324, allocations: 0.7183 MB / 0.6873 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2324, allocations: 0 / 0.6873 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00173/0.2342, allocations: 0.5923 MB / 0.6879 GB, free: 12.73 MB / 0.5294 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.003584/0.2377, allocations: 2.16 MB / 0.69 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002719/0.2405, allocations: 2.556 MB / 0.6925 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2405, allocations: 0 / 0.6925 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003702/0.2409, allocations: 343.7 kB / 0.6928 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.2413, allocations: 60.66 kB / 0.6929 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01636/0.2577, allocations: 15.28 MB / 0.7078 GB, free: 8.133 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/0.2583, allocations: 0.9956 MB / 0.7087 GB, free: 7.105 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001897/0.2585, allocations: 45.34 kB / 0.7088 GB, free: 7.062 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.2589, allocations: 291.3 kB / 0.7091 GB, free: 6.777 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/0.2589, allocations: 0 / 0.7091 GB, free: 6.777 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0574/0.3163, allocations: 24.06 MB / 0.7326 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.52, allocations: 5.812 kB / 0.7326 GB, free: 14.93 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)