Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_1borehole_5meters,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IDEAS_IDEAS_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.001174/0.001174, 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.001151/0.001151, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7331/0.7331, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 64.5 kB / 0.5019 GB, free: 3.703 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3484, allocations: 80.2 MB / 0.5802 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002732/0.3511, allocations: 1.404 MB / 0.5816 GB, free: 3.594 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004435/0.3556, allocations: 3.027 MB / 0.5846 GB, free: 1.559 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.593e-05/0.3557, allocations: 1.188 kB / 0.5846 GB, free: 1.559 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.3558, allocations: 7.906 kB / 0.5846 GB, free: 1.555 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002492/0.3561, allocations: 32.91 kB / 0.5846 GB, free: 1.535 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00326/0.3593, allocations: 1 MB / 0.5856 GB, free: 1.156 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.3595, allocations: 82.91 kB / 0.5857 GB, free: 1.129 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.361e-05/0.3595, allocations: 4.281 kB / 0.5857 GB, free: 1.129 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.824e-05/0.3596, allocations: 42.44 kB / 0.5857 GB, free: 1.113 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.3599, allocations: 136.7 kB / 0.5858 GB, free: 1.082 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-05/0.3599, allocations: 17.77 kB / 0.5858 GB, free: 1.078 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002565/0.3625, allocations: 1.373 MB / 0.5872 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002429/0.3628, allocations: 265.3 kB / 0.5874 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.363, allocations: 275.1 kB / 0.5877 GB, free: 424 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002397/0.3654, allocations: 1.469 MB / 0.5891 GB, free: 15.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.3654, allocations: 0 / 0.5891 GB, free: 15.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3654, allocations: 3.938 kB / 0.5891 GB, free: 15.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.3654, allocations: 0 / 0.5891 GB, free: 15.93 MB / 446.1 MB 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.3758, allocations: 1.203 MB / 0.5903 GB, free: 15.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3758, allocations: 9.938 kB / 0.5903 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.354e-05/0.3759, allocations: 32.52 kB / 0.5904 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003927/0.3763, allocations: 89.5 kB / 0.5904 GB, free: 14.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.3767, allocations: 365.6 kB / 0.5908 GB, free: 14.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.3767, allocations: 3.969 kB / 0.5908 GB, free: 14.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.3767, allocations: 12.67 kB / 0.5908 GB, free: 14.67 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.3773, allocations: 389 kB / 0.5912 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.3773, allocations: 1 kB / 0.5912 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3773, allocations: 0.9375 kB / 0.5912 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.3773, allocations: 4.906 kB / 0.5912 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004578/0.3778, allocations: 433.4 kB / 0.5916 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000608/0.3784, allocations: 0.6301 MB / 0.5922 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004733/0.3789, allocations: 0.5716 MB / 0.5928 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.3792, allocations: 341.4 kB / 0.5931 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00101/0.3802, allocations: 1.023 MB / 0.5941 GB, free: 12.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003917/0.3806, allocations: 414.9 kB / 0.5945 GB, free: 12.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.3806, allocations: 0 / 0.5945 GB, free: 12.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.00127/0.3819, allocations: 1.284 MB / 0.5957 GB, free: 12.37 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.382, allocations: 83.66 kB / 0.5958 GB, free: 12.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.3832, allocations: 1.206 MB / 0.597 GB, free: 11.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.3832, allocations: 31.33 kB / 0.597 GB, free: 11.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.3834, allocations: 264.3 kB / 0.5973 GB, free: 11.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.3835, allocations: 19.52 kB / 0.5973 GB, free: 11.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/0.3838, allocations: 353.3 kB / 0.5976 GB, free: 11.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.3839, allocations: 310 kB / 0.5979 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.3851, allocations: 1.359 MB / 0.5993 GB, free: 10.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.3865, allocations: 1.497 MB / 0.6007 GB, free: 9.562 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00709/0.3936, allocations: 3.542 MB / 0.6042 GB, free: 7.492 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3936, allocations: 3.938 kB / 0.6042 GB, free: 7.488 MB / 446.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004259/0.3978, allocations: 3.964 MB / 0.6081 GB, free: 4.359 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3979, allocations: 4 kB / 0.6081 GB, free: 4.355 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.3979, allocations: 7.938 kB / 0.6081 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.3979, allocations: 0 / 0.6081 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.3981, allocations: 15.98 kB / 0.6081 GB, free: 4.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3981, allocations: 0 / 0.6081 GB, free: 4.332 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005687/0.3986, allocations: 236.3 kB / 0.6083 GB, free: 4.098 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.3987, allocations: 23.98 kB / 0.6083 GB, free: 4.074 MB / 446.1 MB 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.0003027/0.399, allocations: 241.6 kB / 0.6086 GB, free: 3.828 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.583e-05/0.3991, allocations: 66.72 kB / 0.6086 GB, free: 3.762 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000264/0.3993, allocations: 70.91 kB / 0.6087 GB, free: 3.684 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3994, allocations: 0 / 0.6087 GB, free: 3.684 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3994, allocations: 0 / 0.6087 GB, free: 3.684 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.3994, allocations: 7.984 kB / 0.6087 GB, free: 3.676 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003963/0.3998, allocations: 0.489 MB / 0.6092 GB, free: 3.141 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3998, allocations: 4.031 kB / 0.6092 GB, free: 3.137 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.518e-05/0.3999, allocations: 4 kB / 0.6092 GB, free: 3.133 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.3999, allocations: 0 / 0.6092 GB, free: 3.133 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.3999, allocations: 7.984 kB / 0.6092 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3999, allocations: 0 / 0.6092 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3999, allocations: 0 / 0.6092 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008472/0.4007, allocations: 1.001 MB / 0.6102 GB, free: 2.102 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.4009, allocations: 147.9 kB / 0.6103 GB, free: 1.938 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.264e-05/0.4009, allocations: 11.98 kB / 0.6103 GB, free: 1.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.4011, allocations: 4 kB / 0.6103 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.4011, allocations: 7.969 kB / 0.6103 GB, free: 1.914 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.798e-05/0.4012, allocations: 11.98 kB / 0.6104 GB, free: 1.902 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006506/0.4018, allocations: 0.6687 MB / 0.611 GB, free: 1.227 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.403e-06/0.4018, allocations: 4 kB / 0.611 GB, free: 1.223 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001793/0.4036, allocations: 399.8 kB / 0.6114 GB, free: 0.832 MB / 446.1 MB 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.002531/0.4062, allocations: 1.917 MB / 0.6133 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002139/0.4083, allocations: 2.507 MB / 0.6157 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.4084, allocations: 0 / 0.6157 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004107/0.4088, allocations: 347.8 kB / 0.616 GB, free: 12.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.4091, allocations: 32.44 kB / 0.6161 GB, free: 12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.4228, allocations: 14.92 MB / 0.6306 GB, free: 12.91 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.4233, allocations: 0.9718 MB / 0.6316 GB, free: 11.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000171/0.4235, allocations: 32.56 kB / 0.6316 GB, free: 11.88 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/0.4238, allocations: 263.3 kB / 0.6319 GB, free: 11.62 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4238, allocations: 0 / 0.6319 GB, free: 11.62 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03762/0.4614, allocations: 19.41 MB / 0.6508 GB, free: 8.379 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.412, allocations: 11.03 kB / 0.6508 GB, free: 8.371 MB / 494.1 MB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)