/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 = 7416
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin2114
RA = 330.031, Dec = 21.6382
tmin = 787276801, tmax = 787536001
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='17378807', job_status='RUN', time_executed='2025-12-16 02:23:08.776728', time_epoch_executed='1765880588.78' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17378807/ft1_4FGL_J2200.1+2138_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378807/ft1_4FGL_J2200.1+2138_daily_bin2114.fits outfile=/lscratch/kocevski/17378807/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin2114.fits ra=330.031 dec=21.6382 rad=12.0 tmin=787276801.0 tmax=787536001.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 2.42
user 1.70
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.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/17378807/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.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.75
user 0.19
sys 0.11

Number of photons that the gtmktime cut: 755

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378807/ltcube_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.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/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits
.....................!
real 7.64
user 6.98
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378807/ltcube_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.fits outfile=/lscratch/kocevski/17378807/expmap_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.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/17378807/ltcube_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.fits
.....................!
real 61.84
user 57.64
sys 3.52

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 Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 167 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 J2200.1+2138 @ 330.031 21.6382

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits scfile=/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits outfile=/lscratch/kocevski/17378807/cmap_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.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=330.031 yref=21.6382 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.81
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits scfile=/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits outfile=/lscratch/kocevski/17378807/cmap_HighResolution_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.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=330.031 yref=21.6382 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.86
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378807/Model_4FGL_J2200.1+2138_daily_bin2114.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits.....................!
real 40.67
user 38.75
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits', '/lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits', expMap='/lscratch/kocevski/17378807/expmap_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.fits', expCube='/lscratch/kocevski/17378807/ltcube_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378807/Model_4FGL_J2200.1+2138_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.1+2138'

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  7.461e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378807/ft1_filtered_4FGL_J2200.1+2138_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17378807/ft2_4FGL_J2200.1+2138_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17378807/expmap_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17378807/ltcube_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378807/Model_4FGL_J2200.1+2138_daily_bin2114.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) = 7959.38730901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23149       1.0000          .0000       .10000E+07
     2 'norm      '    2.6098       1.0000          .0000       .10000E+07
     3 'Prefactor '    .88141       1.0000          .0000       .10000E+07
     4 'Prefactor '    181.79       1.0000          .0000       .10000E+07
     5 'norm      '    3.1906       1.0000          .0000       .10000E+07
     6 'Prefactor '    .46484E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .62283E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.0785       1.0000          .0000       .10000E+07
     9 'Prefactor '    53.142       1.0000          .0000       .10000E+07
    10 'norm      '    .18152E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    16.302       1.0000          .0000       .10000E+07
    12 'norm      '    .10947E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .77044E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42694E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.2953       1.0000          .0000       .10000E+07
    16 'norm      '    .44104E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .21142E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    .92155       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7959.357     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1443 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16098E-08    48.789        .10374E-05** at limit **
   2  norm          2.5774        3.8829       -.27197E-06    .41645E-03
   3  Prefactor     .90202        2.2726       -.63508E-07    .71781E-01
   4  Prefactor     184.01        127.13        .16708E-06   -.26821E-02
   5  norm          3.1849        2.0231       -.50151E-07    .23848E-03
   6  Prefactor      .0000        2.1868       -.27227E-06** at limit **
   7  Prefactor     .23870E-08    11.837        .41093E-06** at limit **
   8  norm          1.0774        .69442        .44685E-07   -.54089E-03
   9  Prefactor     53.225        41.294       -.17780E-07    .31989E-02
  10  norm           .0000        .65923        .11518E-06** at limit **
  11  Prefactor     16.339        13.548       -.88083E-07   -.49051E-01
  12  norm           .0000        2.4001       -.24359E-07** at limit **
  13  Prefactor     .55511E-10    5.8418        .29517E-06** at limit **
  14  Prefactor      .0000        5.3451        .63618E-06** at limit **
  15  norm          1.2941        .88782        .64612E-07   -.85425E-03
  16  norm           .0000        .78030        .23333E-06** at limit **
  17  Prefactor      .0000        2.6556        .16799E-06** at limit **
  18  Normalizat    .92148        .23003       -.10386E-04    .24723E-04
  19  Prefactor     .80373        .10473        .35710E-05    .28077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60982e-09
  norm       = 2.57744
  Prefactor  = 0.902025
  Prefactor  = 184.011
  norm       = 3.18489
  Prefactor  = 0
  Prefactor  = 2.38698e-09
  norm       = 1.07743
  Prefactor  = 53.2252
  norm       = 0
  Prefactor  = 16.3394
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 1.29408
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.921483
  Prefactor  = 0.80373
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.357     FROM HESSE     STATUS=OK           306 CALLS     1749 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16098E-08    48.158        .11240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5774        3.8970        .63117E-03   -1.5676    
   3  Prefactor     .90202        13.384        .47054E-03   -1.5689    
   4  Prefactor     184.01        127.12        .74174E-04   -1.5437    
   5  norm          3.1849        2.0302        .56703E-03   -1.5672    
   6  Prefactor      .0000        2.1847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23870E-08    11.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0774        .71640        .11615E-02   -1.5687    
   9  Prefactor     53.225        41.373        .13719E-03   -1.5562    
  10  norm           .0000        .63608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.339        14.083        .24779E-03   -1.5627    
  12  norm           .0000        2.3953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    5.8381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        5.3401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2941        .89766        .97159E-03   -1.5685    
  16  norm           .0000        .76461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.6561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .92148        .19687        .76295E-01   -.95709    
  19  Prefactor     .80373        .88645E-01    .43766E-01   -.99591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12652e-07
Minuit parameter uncertainties:
  1  0.000560748
  2  3.89704
  3  6.94905
  4  127.124
  5  2.03018
  6  6.45612e-06
  7  0.000334548
  8  0.716401
  9  41.3735
  10  6.4164e-07
  11  14.0833
  12  5.9412e-06
  13  4.06242e-05
  14  1.81857e-05
  15  0.897661
  16  1.41652e-06
  17  5.18576e-06
  18  0.197024
  19  0.0886603
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.323e+01  4.137e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.037e-01  8.866e-02  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  9.215e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.67e-05

TS (Fixed Index): 2.98
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 9.68069349137e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00728682869804 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378807/likelihoodResults_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.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): 0
logL (Free Index) = 7959.35438803
delta logL = 0.00299181627724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7959.35099479
delta logL = 0.00638505160441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.062       1.0000          .0000       .10000E+07
     2 'Index     '    1.9759       1.0000          .0000       10.000    
     3 'Normalizat'    .92400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7959.351     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      279 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.112        65.617        .26249E-04   -.12907E-03
   2  Index         1.9749        .63869        .64104E-02    .35090E-04
   3  Normalizat    .92475        .22670        .33711E-03   -.21904E-03
   4  Prefactor     .80280        .10400        .16470E-03    .31417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.1118
  Index      = 1.97491
  Normalizat = 0.924745
  Prefactor  = 0.802799
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.351     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.112        61.622        .10500E-05   -1.5555    
   2  Index         1.9749        .59982        .25642E-03   -.64979    
   3  Normalizat    .92475        .22654        .13484E-04   -.95596    
   4  Prefactor     .80280        .10401        .32940E-04   -.99625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37715e-10
Minuit parameter uncertainties:
  1  61.6228
  2  0.602113
  3  0.226775
  4  0.104032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7959.35098837
delta logL = 0.00639147537731

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.811e+01  6.162e+01  0.000e+00  1.000e+06 ( 1.000e-14)
269        Index:  1.975e+00  6.021e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.028e-01  1.040e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  9.247e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 330.031 21.638
Photon Index (Free Index): 1.97 +/- 0.60
Photon Flux (Free Index): 3.24e-08 +/- 3.18e-08
Energy Flux (Free Index): 2.39e-05 +/- 2.91e-05

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/17378807/cmap_HighResolution_787276801_787536001_4FGL_J2200.1+2138_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='2.39e-05', photon_flux_error='2.69e-08', dlogl='6.39e-03', energy_flux='2.15e-05', photon_flux2='3.24e-08', job_status='DONE', time_completed='2025-12-16 02:29:37.118097', photon_index_error2='0.60', photon_index2='1.97', ts='2.98', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.68e-08', energy_flux_error2='2.91e-05', EG='0.92', time_epoch_completed='1765880977.12', return_code='0', job_id='17378807', GAL2='0.80', EG2='0.92', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.18e-08', ts2='2.99', photon_index='2.04' WHERE bin_id='2114' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:29:37 PST 2025

