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


Performing analysis on: 4FGL_J1125.9+2005_weekly_bin771
RA = 171.491, Dec = 20.0912
tmin = 705283201, tmax = 705888001
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='17489675', job_status='RUN', time_executed='2023-05-16 02:16:09.769785', time_epoch_executed='1684228569.77' WHERE source_name='4FGL J1125.9+2005' and cadence='weekly' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17489675

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17489675/ft1_4FGL_J1125.9+2005_weekly_bin771.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17489675/ft1_4FGL_J1125.9+2005_weekly_bin771.fits outfile=/lscratch/kocevski/17489675/ft1_filteredMKT_4FGL_J1125.9+2005_weekly_bin771.fits ra=171.491 dec=20.0912 rad=12.0 tmin=705283201.0 tmax=705888001.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.34
user 3.09
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.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/17489675/ft1_filteredMKT_4FGL_J1125.9+2005_weekly_bin771.fits evtable="EVENTS" outfile="/lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.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.78
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1391

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17489675/ltcube_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.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/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits
.....................!
real 16.84
user 16.49
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17489675/ltcube_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.fits outfile=/lscratch/kocevski/17489675/expmap_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.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/17489675/ltcube_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.fits
.....................!
real 60.26
user 56.57
sys 3.30

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 J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits scfile=/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits outfile=/lscratch/kocevski/17489675/cmap_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.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=171.491 yref=20.0912 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.36
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits scfile=/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits outfile=/lscratch/kocevski/17489675/cmap_HighResolution_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.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=171.491 yref=20.0912 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.37
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17489675/Model_4FGL_J1125.9+2005_weekly_bin771.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/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits.....................!
real 44.10
user 43.19
sys 0.59

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits', '/lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits', expMap='/lscratch/kocevski/17489675/expmap_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.fits', expCube='/lscratch/kocevski/17489675/ltcube_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17489675/Model_4FGL_J1125.9+2005_weekly_bin771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17489675/ft1_filtered_4FGL_J1125.9+2005_weekly_bin771.fits
Spacecraft file(s): /lscratch/kocevski/17489675/ft2_4FGL_J1125.9+2005_weekly_bin771.fits
Exposure map: /lscratch/kocevski/17489675/expmap_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.fits
Exposure cube: /lscratch/kocevski/17489675/ltcube_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17489675/Model_4FGL_J1125.9+2005_weekly_bin771.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) = 15720.99644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1877       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6646       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.663       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.7057       1.0000          .0000       .10000E+07
     5 'Prefactor '    .90467E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.2168       1.0000          .0000       .10000E+07
     7 'Prefactor '    .38376E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .34302E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.9459       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9814       1.0000          .0000       .10000E+07
    11 'norm      '    .91146E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    10.249       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16587E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .18379E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3096       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.6754       1.0000          .0000       .10000E+07
    17 'Prefactor '    .95691       1.0000          .0000       .10000E+07
    18 'norm      '    9.8647       1.0000          .0000       .10000E+07
    19 'Prefactor '    .28511E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.5281       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11069E-06   1.0000          .0000       .10000E+07
    22 'Normalizat'    .94448       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15720.92     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1474 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1877        4.0754        .18308E-06    .10424E-02
   2  Prefactor     2.6652        1.4883        .61578E-07    .18879E-02
   3  Prefactor     13.657        4.5984        .46022E-07    .10023E-01
   4  Prefactor     6.7139        5.4392        .15793E-08    .61943E-02
   5  Prefactor     .16714E-06    2.2045        .91924E-08** at limit **
   6  Prefactor     8.2148        2.5278        .79495E-07   -.63251E-02
   7  Prefactor     .22204E-09    1.1543       -.14595E-06** at limit **
   8  norm          .36894E-01    1.7196       -.13424E-06** at limit **
   9  Prefactor     3.9500        2.0739       -.31701E-07   -.53513E-03
  10  Prefactor     3.9863        4.2815       -.83720E-07    .90389E-03
  11  norm          .16653E-09    1.7150       -.19830E-06** at limit **
  12  Prefactor     10.236        2.9759        .78019E-07   -.15121E-01
  13  Prefactor     .13267E-06    3.0228        .19346E-06** at limit **
  14  Prefactor     .27756E-09    9.0033        .14674E-06** at limit **
  15  Prefactor     1.3012        1.1985       -.17674E-08   -.36370E-02
  16  Prefactor     1.6889        5.4819        .37050E-06    .17864E-01
  17  Prefactor     .95785        1.0539        .49051E-07    .32369E-02
  18  norm          9.8652        1.4911       -.20249E-07   -.28454E-02
  19  Prefactor     .17208E-08    3.0809       -.38456E-07** at limit **
  20  Prefactor     2.5467        2.6053       -.25277E-06   -.11129E-02
  21  Prefactor      .0000        .32201       -.56964E-07** at limit **
  22  Normalizat    .94432        .13633       -.12904E-05    .88367E-04
  23  Prefactor     1.0196        .13612        .33859E-05    .92573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18766
  Prefactor  = 2.66519
  Prefactor  = 13.6574
  Prefactor  = 6.71385
  Prefactor  = 1.67144e-07
  Prefactor  = 8.2148
  Prefactor  = 2.22045e-10
  norm       = 0.0368942
  Prefactor  = 3.95002
  Prefactor  = 3.98633
  norm       = 1.66533e-10
  Prefactor  = 10.2365
  Prefactor  = 1.32672e-07
  Prefactor  = 2.77556e-10
  Prefactor  = 1.3012
  Prefactor  = 1.6889
  Prefactor  = 0.957852
  norm       = 9.86522
  Prefactor  = 1.72085e-09
  Prefactor  = 2.5467
  Prefactor  = 0
  Normalizat = 0.944316
  Prefactor  = 1.01958
 **********
 **   18 **HESSE 
 **********

 FCN=   15720.92     FROM HESSE     STATUS=OK           424 CALLS     1898 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1877        4.1220        .69561E-03   -1.5678    
   2  Prefactor     2.6652        1.5027        .62413E-03   -1.5675    
   3  Prefactor     13.657        4.6131        .27072E-03   -1.5634    
   4  Prefactor     6.7139        5.5102        .38725E-03   -1.5656    
   5  Prefactor     .16714E-06    4.6591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2148        6.7897        .34951E-03   -1.5651    
   7  Prefactor     .22204E-09    2.6739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .36894E-01    .31295        .24007E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9500        2.2550        .50758E-03   -1.5668    
  10  Prefactor     3.9863        4.5287        .50523E-03   -1.5668    
  11  norm          .16653E-09    2.8304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.236        7.0485        .31274E-03   -1.5644    
  13  Prefactor     .13267E-06    4.9656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .27756E-09    8.9554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3012        10.132        .96333E-03   -1.5685    
  16  Prefactor     1.6889        6.6022        .81383E-03   -1.5682    
  17  Prefactor     .95785        1.0802        .42233E-03   -1.5688    
  18  norm          9.8652        1.5036        .31880E-03   -1.5645    
  19  Prefactor     .17208E-08    3.1955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5467        2.6418        .64216E-03   -1.5676    
  21  Prefactor      .0000        .32408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94432        .11916        .45467E-01   -.94920    
  23  Prefactor     1.0196        .11784        .42171E-01   -.92080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41302e-06
Minuit parameter uncertainties:
  1  4.122
  2  1.50267
  3  4.61306
  4  5.5102
  5  0.00176499
  6  6.78975
  7  4.73587e-05
  8  0.214906
  9  2.25496
  10  4.52868
  11  4.56066e-05
  12  7.04855
  13  0.00162325
  14  0.000104084
  15  7.26176
  16  6.60225
  17  1.08021
  18  1.50363
  19  0.000149233
  20  2.64182
  21  2.93439e-07
  22  0.119192
  23  0.117869
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.024e+01  7.049e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.020e+00  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.443e-01  1.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 8.16e-06

TS (Fixed Index): 3.42
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 6.79434332328e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00519255742009 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17489675/likelihoodResults_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.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) = 15720.6135457
delta logL = 0.306782073407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15720.6017767
delta logL = 0.318551105656

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15720.60     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      300 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3071        9.8421        .79905E-04    .49066E-02
   2  Index         2.6885        .86353        .73049E-02    .52943E-04
   3  Normalizat    .92588        .13267        .25895E-03    .14400E-04
   4  Prefactor     1.0327        .13803        .26027E-03    .13628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30707
  Index      = 2.68852
  Normalizat = 0.92588
  Prefactor  = 1.03271
 **********
 **   18 **HESSE 
 **********

 FCN=   15720.60     FROM HESSE     STATUS=OK            27 CALLS      327 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3071        6.9607        .15981E-04   -1.5658    
   2  Index         2.6885        .61174        .29220E-03   -.48058    
   3  Normalizat    .92588        .13161        .10358E-04   -.95557    
   4  Prefactor     1.0327        .13707        .10411E-04   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57325e-13
Minuit parameter uncertainties:
  1  6.96074
  2  0.613702
  3  0.131653
  4  0.13712
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) = 15720.6017746
delta logL = 0.318553203546

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  6.307e+00  6.961e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.689e+00  6.137e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.033e+00  1.371e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.259e-01  1.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 171.491 20.091
Photon Index (Free Index): 2.69 +/- 0.61
Photon Flux (Free Index): 4.13e-08 +/- 2.84e-08
Energy Flux (Free Index): 1.00e-05 +/- 6.37e-06

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/17489675/cmap_HighResolution_705283201_705888001_4FGL_J1125.9+2005_weekly_bin771.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='1.00e-05', photon_flux_error='1.96e-08', dlogl='3.19e-01', energy_flux='1.18e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2023-05-16 02:23:19.081559', photon_index_error2='0.61', photon_index2='2.69', ts='3.42', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='6.79e-08', energy_flux_error2='6.37e-06', EG='0.94', time_epoch_completed='1684228999.08', return_code='0', job_id='17489675', GAL2='1.03', EG2='0.93', return_code2='0', energy_flux_error='8.16e-06', photon_flux_error2='2.84e-08', ts2='4.08', photon_index='2.24' WHERE bin_id='771' AND source_name='4FGL J1125.9+2005' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 16 02:23:19 PDT 2023

