 **********
 **   18 **HESSE 
 **********

 FCN=   5919.707     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      315 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91183E-02    7.0871        .23152E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.7072        5.0968        .12296E-01    .14192    
   3  Normalizat    1.0510        .10398        .24848E-03   -.91340    
   4  Prefactor     .79955        .10263        .28307E-03   -.99745    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7063e-09
Minuit parameter uncertainties:
  1  0.50842
  2  30.906
  3  0.103999
  4  0.102654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5919.70688638
delta logL = 0.0236464149129

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  9.118e-03  5.084e-01  0.000e+00  1.000e+06 ( 1.000e-12)
282        Index:  5.707e+00  3.091e+01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  7.995e-01  1.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.051e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19656938/cmap_HighResolution_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2023-07-18 01:14:43.797800', job_id='19656938', GAL2='0.80', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1689668083.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.36e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1820' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:14:44 PDT 2023

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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1820
RA = 180.187, Dec = 20.1354
tmin = 711072001, tmax = 711331201
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='19658145', job_status='RUN', time_executed='2023-07-18 01:15:06.261060', time_epoch_executed='1689668106.26' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1820'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19658145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19658145/ft1_4FGL_J1200.7+2008_daily_bin1820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19658145/ft1_4FGL_J1200.7+2008_daily_bin1820.fits outfile=/lscratch/kocevski/19658145/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1820.fits ra=180.187 dec=20.1354 rad=12.0 tmin=711072001.0 tmax=711331201.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.70
user 1.69
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.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/19658145/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.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.18
sys 0.13

Number of photons that the gtmktime cut: 541

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19658145/ltcube_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.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/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits
.....................!
real 7.98
user 7.23
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19658145/ltcube_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.fits outfile=/lscratch/kocevski/19658145/expmap_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.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/19658145/ltcube_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.fits
.....................!
real 64.88
user 60.21
sys 3.85

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

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits scfile=/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits outfile=/lscratch/kocevski/19658145/cmap_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.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.187 yref=20.1354 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.90
user 0.19
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits scfile=/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits outfile=/lscratch/kocevski/19658145/cmap_HighResolution_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.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.187 yref=20.1354 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.94
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19658145/Model_4FGL_J1200.7+2008_daily_bin1820.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/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits.....................!
real 22.16
user 20.59
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits', '/lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits', expMap='/lscratch/kocevski/19658145/expmap_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.fits', expCube='/lscratch/kocevski/19658145/ltcube_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19658145/Model_4FGL_J1200.7+2008_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19658145/ft1_filtered_4FGL_J1200.7+2008_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19658145/ft2_4FGL_J1200.7+2008_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19658145/expmap_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19658145/ltcube_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19658145/Model_4FGL_J1200.7+2008_daily_bin1820.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) = 5919.73849394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39543E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.6467       1.0000          .0000       .10000E+07
     3 'Prefactor '    .46128E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    22.371       1.0000          .0000       .10000E+07
     5 'Prefactor '    .23655E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .30862       1.0000          .0000       .10000E+07
     7 'Prefactor '    17.699       1.0000          .0000       .10000E+07
     8 'norm      '    12.628       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24814E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .28303E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .55713E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .65636E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.7835       1.0000          .0000       .10000E+07
    14 'norm      '    4.2277       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.3930       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7595       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12421E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .20262E-07   1.0000          .0000       .10000E+07
    19 'norm      '    14.040       1.0000          .0000       .10000E+07
    20 'Prefactor '    13.980       1.0000          .0000       .10000E+07
    21 'Prefactor '    .21264E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5919.731     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2312 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6696        .19198E-08** at limit **
   2  Prefactor     4.6709        8.6391       -.12680E-05    .64829E-02
   3  Prefactor     .55511E-10    4.5053       -.24027E-06** at limit **
   4  Prefactor     22.565        24.041        .29564E-05    .11196E-02
   5  Prefactor      .0000        12.255        .18697E-06** at limit **
   6  Prefactor     .30155        1.4649       -.57567E-06   -.51601E-02
   7  Prefactor     17.674        12.938        .66583E-07   -.49905E-03
   8  norm          12.623        2.1804       -.67220E-07    .21168E-01
   9  Prefactor     .16653E-09    7.1149       -.29949E-06** at limit **
  10  Prefactor     .19590E-06    1.8555       -.21688E-07** at limit **
  11  Prefactor     .11102E-09    131.21        .18624E-06** at limit **
  12  Prefactor      .0000        2.0662       -.12460E-08** at limit **
  13  Prefactor     5.7858        3.6944        .43500E-08    .26887E-03
  14  norm          4.2292        2.6325        .13476E-09    .10149E-02
  15  Prefactor     3.3907        2.3295       -.29747E-09    .49780E-03
  16  Prefactor     3.7622        2.7632       -.88665E-08   -.12142E-02
  17  Prefactor     .27756E-09    5.2410        .40174E-06** at limit **
  18  norm           .0000        .10095        .16424E-08** at limit **
  19  norm          13.993        6.0037       -.97144E-08   -.25854E-03
  20  Prefactor     13.978        12.690        .28186E-07   -.33593E-03
  21  Prefactor      .0000        9.5457        .10102E-06** at limit **
  22  Normalizat    1.0704        .19083       -.36380E-05    .11195E-02
  23  Prefactor     .78747        .17994        .34382E-05    .37748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 4.67093
  Prefactor  = 5.55112e-11
  Prefactor  = 22.565
  Prefactor  = 0
  Prefactor  = 0.301551
  Prefactor  = 17.6741
  norm       = 12.6234
  Prefactor  = 1.66533e-10
  Prefactor  = 1.95899e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 5.78583
  norm       = 4.2292
  Prefactor  = 3.39073
  Prefactor  = 3.76216
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 13.9931
  Prefactor  = 13.9781
  Prefactor  = 0
  Normalizat = 1.07042
  Prefactor  = 0.787471
 **********
 **   18 **HESSE 
 **********

 FCN=   5919.731     FROM HESSE     STATUS=OK           374 CALLS     2686 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6699        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6709        8.6051        .18666E-04   -1.5665    
   3  Prefactor     .55511E-10    4.5058        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.565        24.296        .84592E-05   -1.5613    
   5  Prefactor      .0000        12.294        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .30155        2.4456        .16526E-03   -1.5697    
   7  Prefactor     17.674        12.926        .95118E-05   -1.5624    
   8  norm          12.623        2.1811        .44358E-05   -1.5637    
   9  Prefactor     .16653E-09    7.1144        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .19590E-06    44.168        .19752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    132.08        .30639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.0750        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7858        3.6958        .11040E-04   -1.5660    
  14  norm          4.2292        2.6406        .91964E-05   -1.5667    
  15  Prefactor     3.3907        2.3367        .90677E-05   -1.5671    
  16  Prefactor     3.7622        2.7522        .10194E-04   -1.5669    
  17  Prefactor     .27756E-09    5.2509        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .18319        .47150E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.993        6.0053        .10682E-04   -1.5633    
  20  Prefactor     13.978        12.685        .10705E-04   -1.5633    
  21  Prefactor      .0000        9.5756        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0704        .21855        .24642E-03   -.90707    
  23  Prefactor     .78747        .20799        .28497E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84533e-09
Minuit parameter uncertainties:
  1  4.04197e-06
  2  8.60517
  3  3.07941e-05
  4  24.2957
  5  3.16976e-05
  6  1.71752
  7  12.9259
  8  2.18106
  9  7.0251e-05
  10  0.00588267
  11  0.000249425
  12  2.82648e-06
  13  3.69581
  14  2.64058
  15  2.33673
  16  2.75223
  17  7.88689e-05
  18  5.78502e-07
  19  6.00527
  20  12.6847
  21  2.05239e-05
  22  0.218738
  23  0.208195
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.959e-07  5.883e-03  0.000e+00  1.000e+06 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  7.875e-01  2.082e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.070e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 9.40657008041e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00732559020768 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19658145/likelihoodResults_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.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) = 5919.77068621
delta logL = -0.0401534157791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5919.73053282
delta logL = -2.00561771635e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5919.707     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      284 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91183E-02    .24540        .42118E-03** at limit **
   2  Index         5.7072        2.4858        .31078       -.22198E-04
   3  Normalizat    1.0510        .14664E-01    .39357E-01   -.71024E-03
   4  Prefactor     .79955        .14842E-01    .63994E-01   -.64658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00911829
  Index      = 5.7072
  Normalizat = 1.05104
  Prefactor  = 0.799546
 **********
 **   18 **HESSE 
 **********

 FCN=   5919.707     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      315 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91183E-02    7.0871        .23152E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.7072        5.0968        .12296E-01    .14192    
   3  Normalizat    1.0510        .10398        .24848E-03   -.91340    
   4  Prefactor     .79955        .10263        .28307E-03   -.99745    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7063e-09
Minuit parameter uncertainties:
  1  0.50842
  2  30.906
  3  0.103999
  4  0.102654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5919.70688638
delta logL = 0.0236464149129

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  9.118e-03  5.084e-01  0.000e+00  1.000e+06 ( 1.000e-12)
282        Index:  5.707e+00  3.091e+01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  7.995e-01  1.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.051e+00  1.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19658145/cmap_HighResolution_711072001_711331201_4FGL_J1200.7+2008_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2023-07-18 01:22:23.892839', job_id='19658145', GAL2='0.80', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1689668543.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.36e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1820' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:22:24 PDT 2023

