Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IDEAS_dev_IDEAS_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.001122/0.001122, allocations: 112.5 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.00118/0.00118, allocations: 190.9 kB / 16.67 MB, free: 6.543 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9801/0.9801, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 63.91 kB / 0.5852 GB, free: 3.785 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.431/0.4324, allocations: 80.91 MB / 0.6642 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002587/0.435, allocations: 1.746 MB / 0.6659 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004811/0.4399, allocations: 4.202 MB / 0.67 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002769/0.4402, allocations: 1.219 kB / 0.67 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.4413, allocations: 366.4 kB / 0.6704 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.4414, allocations: 61.09 kB / 0.6704 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.4437, allocations: 0.9953 MB / 0.6714 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.444, allocations: 147.8 kB / 0.6715 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.4441, allocations: 9.156 kB / 0.6715 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.64e-05/0.4442, allocations: 58.19 kB / 0.6716 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.4444, allocations: 158.5 kB / 0.6718 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.687e-05/0.4444, allocations: 15.03 kB / 0.6718 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.4463, allocations: 1.386 MB / 0.6731 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.4465, allocations: 271 kB / 0.6734 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.4468, allocations: 310.1 kB / 0.6737 GB, free: 416 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001736/0.4485, allocations: 1.552 MB / 0.6752 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.4485, allocations: 1.688 kB / 0.6752 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4485, allocations: 3.938 kB / 0.6752 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.227e-06/0.4485, allocations: 0 / 0.6752 GB, free: 15.48 MB / 0.5137 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.01032/0.4589, allocations: 1.306 MB / 0.6765 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.4589, allocations: 13.59 kB / 0.6765 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.749e-05/0.459, allocations: 39.86 kB / 0.6765 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003836/0.4594, allocations: 96.64 kB / 0.6766 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005652/0.4599, allocations: 413.9 kB / 0.677 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.46, allocations: 6.875 kB / 0.677 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.752e-05/0.46, allocations: 8.719 kB / 0.677 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.4605, allocations: 390.8 kB / 0.6774 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.4605, allocations: 5.094 kB / 0.6774 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.4605, allocations: 0 / 0.6774 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.4605, allocations: 1.062 kB / 0.6774 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004865/0.461, allocations: 431.2 kB / 0.6778 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007575/0.4618, allocations: 0.666 MB / 0.6785 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005617/0.4623, allocations: 0.57 MB / 0.679 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003352/0.4627, allocations: 333.3 kB / 0.6793 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009345/0.4636, allocations: 1.035 MB / 0.6804 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004753/0.4641, allocations: 403.4 kB / 0.6807 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 5.961e-06/0.4642, allocations: 0 / 0.6807 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.00141/0.4656, allocations: 1.295 MB / 0.682 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.4657, allocations: 91.25 kB / 0.6821 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.4669, allocations: 1.283 MB / 0.6833 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.4669, allocations: 32.3 kB / 0.6834 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.4673, allocations: 287.7 kB / 0.6836 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.4673, allocations: 22.5 kB / 0.6837 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/0.4676, allocations: 352.7 kB / 0.684 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.4677, allocations: 318 kB / 0.6843 GB, free: 9.793 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.469, allocations: 1.363 MB / 0.6856 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.4705, allocations: 1.489 MB / 0.6871 GB, free: 8.551 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007259/0.4777, allocations: 3.544 MB / 0.6906 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4778, allocations: 3.938 kB / 0.6906 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004153/0.4819, allocations: 3.973 MB / 0.6944 GB, free: 2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4819, allocations: 4 kB / 0.6944 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.482, allocations: 4 kB / 0.6944 GB, free: 1.992 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.482, allocations: 0 / 0.6944 GB, free: 1.992 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.4821, allocations: 19.92 kB / 0.6945 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.4821, allocations: 4.031 kB / 0.6945 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007401/0.4829, allocations: 241.4 kB / 0.6947 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.59e-05/0.4829, allocations: 19.98 kB / 0.6947 GB, free: 1.711 MB / 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: 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.0003289/0.4833, allocations: 249.6 kB / 0.695 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.104e-05/0.4833, allocations: 83.23 kB / 0.695 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002801/0.4836, allocations: 83.66 kB / 0.6951 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4836, allocations: 0 / 0.6951 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.4837, allocations: 8 kB / 0.6951 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4837, allocations: 3.984 kB / 0.6951 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004852/0.4842, allocations: 0.5099 MB / 0.6956 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4842, allocations: 0 / 0.6956 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.261e-05/0.4842, allocations: 15.92 kB / 0.6956 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4843, allocations: 3.938 kB / 0.6956 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.4843, allocations: 8 kB / 0.6956 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.4843, allocations: 3.984 kB / 0.6957 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4843, allocations: 4.031 kB / 0.6957 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008839/0.4852, allocations: 1.01 MB / 0.6966 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.4853, allocations: 160.4 kB / 0.6968 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.091e-05/0.4854, allocations: 7.984 kB / 0.6968 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.4857, allocations: 8 kB / 0.6968 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.4857, allocations: 7.984 kB / 0.6968 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.4858, allocations: 11.98 kB / 0.6968 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007482/0.4865, allocations: 0.7179 MB / 0.6975 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4865, allocations: 0 / 0.6975 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00132/0.4879, allocations: 407 kB / 0.6979 GB, free: 14.32 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.002455/0.4903, allocations: 1.948 MB / 0.6998 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002347/0.4927, allocations: 2.495 MB / 0.7023 GB, free: 9.828 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4927, allocations: 0 / 0.7023 GB, free: 9.828 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003154/0.493, allocations: 339.8 kB / 0.7026 GB, free: 9.496 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.4934, allocations: 61.72 kB / 0.7026 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/0.508, allocations: 15.03 MB / 0.7173 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.5085, allocations: 0.9839 MB / 0.7183 GB, free: 9.238 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001656/0.5087, allocations: 45.41 kB / 0.7183 GB, free: 9.195 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.509, allocations: 287.3 kB / 0.7186 GB, free: 8.914 MB / 0.545 GB Notification: Performance of SimCode: time 7.32e-07/0.5091, allocations: 4 kB / 0.7186 GB, free: 8.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04273/0.5518, allocations: 19.85 MB / 0.738 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.72, allocations: 13.33 kB / 0.738 GB, free: 5.27 MB / 0.5606 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)