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


Performing analysis on: 4FGL_J1200.2+0201_weekly_bin854
RA = 180.055, Dec = 2.0172
tmin = 755481601, tmax = 756086401
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='60351871', job_status='RUN', time_executed='2024-12-17 00:31:57.170972', time_epoch_executed='1734424317.17' WHERE source_name='4FGL J1200.2+0201' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351871

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60351871/ft1_4FGL_J1200.2+0201_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351871/ft1_4FGL_J1200.2+0201_weekly_bin854.fits outfile=/lscratch/kocevski/60351871/ft1_filteredMKT_4FGL_J1200.2+0201_weekly_bin854.fits ra=180.055 dec=2.0172 rad=12.0 tmin=755481601.0 tmax=756086401.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 4.28
user 3.91
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.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/60351871/ft1_filteredMKT_4FGL_J1200.2+0201_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.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.48
user 0.18
sys 0.15

Number of photons that the gtmktime cut: 1767

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351871/ltcube_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.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/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits
.....................!
real 27.92
user 27.29
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351871/ltcube_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.fits outfile=/lscratch/kocevski/60351871/expmap_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.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/60351871/ltcube_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.fits
.....................!
real 59.51
user 55.65
sys 3.54

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
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits scfile=/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits outfile=/lscratch/kocevski/60351871/cmap_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.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=180.055 yref=2.0172 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.39
user 0.20
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits scfile=/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits outfile=/lscratch/kocevski/60351871/cmap_HighResolution_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.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=180.055 yref=2.0172 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.40
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351871/Model_4FGL_J1200.2+0201_weekly_bin854.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 GAL_V02
Working on...
/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits.....................!
real 52.51
user 50.61
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits', '/lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits', expMap='/lscratch/kocevski/60351871/expmap_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.fits', expCube='/lscratch/kocevski/60351871/ltcube_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351871/Model_4FGL_J1200.2+0201_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351871/ft1_filtered_4FGL_J1200.2+0201_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351871/ft2_4FGL_J1200.2+0201_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351871/expmap_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351871/ltcube_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351871/Model_4FGL_J1200.2+0201_weekly_bin854.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) = 18558.4969201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7815       1.0000          .0000       .10000E+07
     2 'norm      '    5.7867       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4186       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34686E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .20904E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.5083       1.0000          .0000       .10000E+07
     7 'Prefactor '    42.950       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14408       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.7003       1.0000          .0000       .10000E+07
    10 'Prefactor '    .77473E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15405E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .89957E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32546E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12724E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    9.7962       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1079       1.0000          .0000       .10000E+07
    17 'Prefactor '    .67441E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .13878E-08   1.0000          .0000       .10000E+07
    19 'norm      '    .41134E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .41567E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .20713E-02   1.0000          .0000       .10000E+07
    22 'norm      '    8.8459       1.0000          .0000       .10000E+07
    23 'Prefactor '    6.2745       1.0000          .0000       .10000E+07
    24 'norm      '    2.4768       1.0000          .0000       .10000E+07
    25 'Prefactor '    .11002E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.3157       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77705       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18558.49     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     2377 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7818        2.8560        .25602E-07    .38037E-03
   2  norm          5.7820        1.1820        .14127E-07    .10340E-02
   3  Prefactor     4.4191        1.5945        .64807E-07    .10848E-02
   4  Prefactor     .11435E-07    12.809        .13872E-06** at limit **
   5  norm           .0000        1.6558        .12083E-06** at limit **
   6  Prefactor     3.5083        1.8639        .59214E-07    .91404E-03
   7  Prefactor     42.772        6.8514       -.71585E-07    .20962    
   8  Prefactor     .15308        .70074       -.45677E-07** at limit **
   9  Prefactor     4.6996        3.4863        .61604E-07    .66135E-03
  10  Prefactor     .45769E-06    71.136       -.17673E-06** at limit **
  11  Prefactor     .16653E-09    3.3985        .21441E-07** at limit **
  12  Prefactor     .28144E-07    19.249       -.83852E-07** at limit **
  13  Prefactor     .10675E-06    3.9353       -.25329E-06** at limit **
  14  Prefactor     .19151E-07    5.5801       -.25654E-07** at limit **
  15  Prefactor     9.7951        1.8895       -.29132E-07   -.30817E-01
  16  Prefactor     3.1146        4.7238       -.55141E-08    .47714E-02
  17  Prefactor      .0000        2.7131       -.36863E-07** at limit **
  18  norm           .0000        .45526       -.28926E-07** at limit **
  19  norm           .0000        2.0239        .18255E-07** at limit **
  20  Prefactor     .10464E-06    3.4036       -.84475E-07** at limit **
  21  norm          .48628E-07    7.0026       -.38399E-06** at limit **
  22  norm          8.8460        .62032        .84269E-10   -.39921E-02
  23  Prefactor     6.2786        4.5969        .39269E-07   -.26744E-03
  24  norm          2.4771        .96588       -.11445E-07   -.98977E-03
  25  Prefactor     .39968E-08    4.5887        .13262E-06** at limit **
  26  Normalizat    1.3158        .14498       -.60345E-05   -.22378E-03
  27  Prefactor     .77700        .11184        .10999E-05   -.18810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.7818
  norm       = 5.78199
  Prefactor  = 4.41906
  Prefactor  = 1.14353e-08
  norm       = 0
  Prefactor  = 3.50828
  Prefactor  = 42.7725
  Prefactor  = 0.153076
  Prefactor  = 4.69964
  Prefactor  = 4.57689e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 2.81442e-08
  Prefactor  = 1.06748e-07
  Prefactor  = 1.91513e-08
  Prefactor  = 9.79505
  Prefactor  = 3.11458
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 1.04639e-07
  norm       = 4.86278e-08
  norm       = 8.84599
  Prefactor  = 6.27856
  norm       = 2.4771
  Prefactor  = 3.9968e-09
  Normalizat = 1.31584
  Prefactor  = 0.776997
 **********
 **   18 **HESSE 
 **********

 FCN=   18558.49     FROM HESSE     STATUS=OK           546 CALLS     2923 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7818        3.1109        .41747E-03   -1.5660    
   2  norm          5.7820        9.9271        .41728E-03   -1.5660    
   3  Prefactor     4.4191        1.5954        .47885E-03   -1.5666    
   4  Prefactor     .11435E-07    12.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.6502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5083        1.8704        .53952E-03   -1.5671    
   7  Prefactor     42.772        45.496        .15260E-03   -1.5577    
   8  Prefactor     .15308        3.0368        .77828E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6996        3.4881        .46392E-03   -1.5665    
  10  Prefactor     .45769E-06    69.522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    3.3963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28144E-07    29.353        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10675E-06    5.4266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19151E-07    7.2781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7951        9.1696        .31992E-03   -1.5645    
  16  Prefactor     3.1146        7.8010        .57494E-03   -1.5673    
  17  Prefactor      .0000        2.7179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .45144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.9866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10464E-06    5.7767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .48628E-07    7.9033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8460        .61907        .33677E-03   -1.5648    
  23  Prefactor     6.2786        4.6010        .40050E-03   -1.5658    
  24  norm          2.4771        .96862        .64938E-03   -1.5676    
  25  Prefactor     .39968E-08    4.5672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3158        .12459        .63001E-01   -.83095    
  27  Prefactor     .77700        .95142E-01    .62794E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19664e-06
Minuit parameter uncertainties:
  1  3.11094
  2  9.9271
  3  1.59542
  4  0.000766337
  5  2.59733e-06
  6  1.8704
  7  45.4961
  8  1.36361
  9  3.48813
  10  0.0112818
  11  4.58903e-05
  12  0.00181716
  13  0.00152229
  14  0.000746896
  15  9.16962
  16  7.80106
  17  1.61531e-05
  18  6.88943e-07
  19  5.54659e-06
  20  0.00155505
  21  0.00124
  22  0.619066
  23  4.60104
  24  0.968623
  25  0.000269388
  26  0.124616
  27  0.095162
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  4.700e+00  3.488e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  7.770e-01  9.516e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.316e+00  1.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.55
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 9.52e-06 +/- 7.06e-06

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) = 18558.4560091
delta logL = 0.0317100288958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18558.453467
delta logL = 0.0342521691164

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18558.45     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9105        79.378        .45379E-03   -.94840E-03
   2  Index         1.9175        5.9426        .26293        .22340E-04
   3  Normalizat    1.3218        .63479E-01    .62880E-01    .86790E-05
   4  Prefactor     .77470        .34448E-01    .62879E-01    .38855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91051
  Index      = 1.91751
  Normalizat = 1.3218
  Prefactor  = 0.7747
 **********
 **   18 **HESSE 
 **********

 FCN=   18558.45     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9105        3.8015        .18152E-04   -1.5664    
   2  Index         1.9175        .72594        .12869E-01   -.66429    
   3  Normalizat    1.3218        .14192        .27812E-03   -.82918    
   4  Prefactor     .77470        .11130        .27813E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94086e-10
Minuit parameter uncertainties:
  1  3.80152
  2  0.730122
  3  0.141965
  4  0.111333
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) = 18558.4534655
delta logL = 0.034253659931

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  4.911e+00  3.802e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  1.918e+00  7.301e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  7.747e-01  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.322e+00  1.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.61
Ra Dec: 180.055 2.017
Photon Index (Free Index): 1.92 +/- 0.73
Photon Flux (Free Index): 1.29e-08 +/- 1.86e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.19e-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/60351871/cmap_HighResolution_755481601_756086401_4FGL_J1200.2+0201_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='1.10e-05', photon_flux_error='1.31e-08', dlogl='3.43e-02', energy_flux='9.52e-06', photon_flux2='1.29e-08', job_status='DONE', time_completed='2024-12-17 00:41:33.123236', photon_index_error2='0.73', photon_index2='1.92', ts='6.55', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='1.32', time_epoch_completed='1734424893.12', return_code='0', job_id='60351871', GAL2='0.77', EG2='1.32', return_code2='0', energy_flux_error='7.06e-06', photon_flux_error2='1.86e-08', ts2='6.61', photon_index='2.11' WHERE bin_id='854' AND source_name='4FGL J1200.2+0201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:41:33 PST 2024

