/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17316
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0218.9-2305_weekly_bin858
RA = 34.731, Dec = -23.0986
tmin = 757900801, tmax = 758505601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='61719917', job_status='RUN', time_executed='2025-01-14 02:12:49.358582', time_epoch_executed='1736849569.36' WHERE source_name='4FGL J0218.9-2305' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61719917

Creating custom pfile directory:
/lscratch/kocevski/61719917/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=757900801.0 && nMetStart<758505601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=757900801.0 && nMetStart<758505601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61719917/ft1_4FGL_J0218.9-2305_weekly_bin858.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=757900801.0 && nMetStart<758505601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61719917/ft1_4FGL_J0218.9-2305_weekly_bin858.fits outfile=/lscratch/kocevski/61719917/ft1_filteredMKT_4FGL_J0218.9-2305_weekly_bin858.fits ra=34.731 dec=-23.0986 rad=12.0 tmin=757900801.0 tmax=758505601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.37
user 3.00
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/61719917/ft1_filteredMKT_4FGL_J0218.9-2305_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.38
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1579

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61719917/ltcube_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits
.....................!
real 17.94
user 17.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61719917/ltcube_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits outfile=/lscratch/kocevski/61719917/expmap_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/61719917/ltcube_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits
.....................!
real 64.39
user 59.57
sys 4.32

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 178 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0218.9-2305 @ 34.731 -23.0986

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits scfile=/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits outfile=/lscratch/kocevski/61719917/cmap_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=34.731 yref=-23.0986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.42
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits scfile=/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits outfile=/lscratch/kocevski/61719917/cmap_HighResolution_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=34.731 yref=-23.0986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.42
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61719917/Model_4FGL_J0218.9-2305_weekly_bin858.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits.....................!
real 128.60
user 126.84
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits', '/lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits', expMap='/lscratch/kocevski/61719917/expmap_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits', expCube='/lscratch/kocevski/61719917/ltcube_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61719917/Model_4FGL_J0218.9-2305_weekly_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9-2305'

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  1.106e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61719917/ft1_filtered_4FGL_J0218.9-2305_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61719917/ft2_4FGL_J0218.9-2305_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61719917/expmap_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61719917/ltcube_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61719917/Model_4FGL_J0218.9-2305_weekly_bin858.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 17463.1346682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 17463.1226121

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69333E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .56047       1.0000          .0000       .10000E+07
     3 'Prefactor '    .19286E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.9571       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.1133       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.1217       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34805E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4736       1.0000          .0000       .10000E+07
     9 'norm      '    20.634       1.0000          .0000       .10000E+07
    10 'Prefactor '    .13046E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    28.374       1.0000          .0000       .10000E+07
    12 'Prefactor '    40.196       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14646E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3008       1.0000          .0000       .10000E+07
    15 'norm      '    .27645E-07   1.0000          .0000       .10000E+07
    16 'norm      '    4.9300       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .81357       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17463.12     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1387 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .18105       -.14342E-07** at limit **
   2  norm          .56127        1.3929        .48205E-07   -.78939E-04
   3  Prefactor     .88818E-09    12.839       -.74077E-07** at limit **
   4  norm          1.9567        1.0141        .54299E-07    .12827E-01
   5  Prefactor     2.1145        1.9967        .67582E-07    .43715E-02
   6  Prefactor     6.0984        4.8086        .19503E-07   -.82068E-03
   7  Prefactor     .55511E-10    2.0228       -.37391E-08** at limit **
   8  Prefactor     3.5398        4.0585       -.38878E-07    .32428E-02
   9  norm          20.076        24.056        .37970E-06   -.50766E-01
  10  Prefactor     .52644E-01    39.996       -.74646E-06** at limit **
  11  Prefactor     28.538        20.983       -.12334E-06   -.58540E-01
  12  Prefactor     40.231        6.9186       -.15616E-07   -.29721    
  13  Prefactor     .14488E-07    15.387       -.15762E-06** at limit **
  14  Prefactor     2.2994        1.6682       -.13572E-09   -.15440E-02
  15  norm          .55511E-10    .89952       -.77583E-07** at limit **
  16  norm          4.9322        1.9889       -.32542E-07   -.11940E-01
  17  Normalizat    1.0633        .10461        .49605E-06   -.58567E-03
  18  Prefactor     .81387        .11554       -.42139E-05   -.75081E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0.561268
  Prefactor  = 8.88178e-10
  norm       = 1.95674
  Prefactor  = 2.11449
  Prefactor  = 6.09842
  Prefactor  = 5.55112e-11
  Prefactor  = 3.53977
  norm       = 20.0758
  Prefactor  = 0.0526438
  Prefactor  = 28.538
  Prefactor  = 40.2313
  Prefactor  = 1.44884e-08
  Prefactor  = 2.2994
  norm       = 5.55112e-11
  norm       = 4.93222
  Normalizat = 1.06333
  Prefactor  = 0.813865
 **********
 **   18 **HESSE 
 **********

 FCN=   17463.12     FROM HESSE     STATUS=OK           290 CALLS     1677 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .18068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .56127        1.3875        .72846E-03   -1.5693    
   3  Prefactor     .88818E-09    12.832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9567        1.0212        .74132E-03   -1.5680    
   5  Prefactor     2.1145        2.0083        .70933E-03   -1.5679    
   6  Prefactor     6.0984        4.8122        .40554E-03   -1.5659    
   7  Prefactor     .55511E-10    1.9932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5398        4.1373        .54232E-03   -1.5670    
   9  norm          20.076        24.875        .22021E-03   -1.5618    
  10  Prefactor     .52644E-01    1.7327        .53736E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.538        21.397        .18776E-03   -1.5601    
  12  Prefactor     40.231        23.187        .15774E-03   -1.5581    
  13  Prefactor     .14488E-07    15.268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2994        1.6902        .67629E-03   -1.5678    
  15  norm          .55511E-10    .86521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9322        1.9963        .45274E-03   -1.5664    
  17  Normalizat    1.0633        .90976E-01    .39721E-01   -.90938    
  18  Prefactor     .81387        .99565E-01    .43894E-01   -.99219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32085e-06
Minuit parameter uncertainties:
  1  1.12084e-06
  2  1.38749
  3  0.000212487
  4  1.02124
  5  2.00834
  6  4.81218
  7  1.64207e-05
  8  4.13735
  9  24.875
  10  0.604042
  11  21.3974
  12  23.1868
  13  0.000940707
  14  1.69025
  15  1.04031e-05
  16  1.99625
  17  0.0909898
  18  0.0995867
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 17463.1220975

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  5.551e-11  1.642e-05  0.000e+00  1.000e+06 ( 1.000e-12)
269        Index:  2.603e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.139e-01  9.959e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.063e+00  9.099e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.731 -23.099
Photon Flux Upper Limit: 3.10393935379e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00242963900759 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61719917/likelihoodResults_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17463.1237688
delta logL = -0.00167130406044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17463.1220999
delta logL = -2.44481998379e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92881E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7758       1.0000          .0000       10.000    
     3 'Normalizat'    1.0635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81373       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17463.12     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      233 TOTAL
                     EDM=   .19E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6294        .12619E-06** at limit **
   2  Index         2.1257        1.4789       -.22261E-06     .0000    
   3  Normalizat    1.0633        .99862E-01   -.14402E-05   -.23184E-05
   4  Prefactor     .81387        .11441        .10035E-05   -.60003E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.12569
  Normalizat = 1.06333
  Prefactor  = 0.813867
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17463.12     FROM HESSE     STATUS=FAILED        11 CALLS      244 TOTAL
                     EDM=   .19E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .49420        1.7376       -.22261E-06   -.61244    
   3  Normalizat    1.0633        1.1871       -.14402E-05   -.90938    
   4  Prefactor     .81387        1.1621        .10035E-05   -.99219    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.94869e-14
Minuit parameter uncertainties:
  1  2.91866e-08
  2  1.11542
  3  1.21896
  4  1.20023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 17463.1220975
delta logL = 1.67347025126e-10

Extracting fit parameters...

4FGL J0218.9-2305
   Spectrum: PowerLaw
268    Prefactor:  0.000e+00  2.919e-08  0.000e+00  1.000e+06 ( 1.000e-12)
269        Index:  2.126e+00  1.115e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.139e-01  1.200e+00  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.063e+00  1.219e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.731 -23.099

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/61719917/cmap_HighResolution_757900801_758505601_4FGL_J0218.9-2305_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-03', job_status='DONE', photon_flux_upper_limit='3.10e-08', time_completed='2025-01-14 02:21:18.001893', job_id='61719917', GAL2='0.81', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1736850078.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.67e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='858' AND source_name='4FGL J0218.9-2305' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 02:21:18 PST 2025

