/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 155 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 6524
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1476
RA = 312.478, Dec = 10.0407
tmin = 621907201, tmax = 622166401
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='164692', job_status='RUN', time_executed='2021-09-25 18:59:33.173572', time_epoch_executed='1632621573.17' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164692

Creating custom pfile directory:
/scratch/kocevski/164692/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=621907201.0 && nMetStart<622166401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=621907201.0 && nMetStart<622166401.0' /Data/Flight/Level1/LPA

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164692/ft1_4FGL_J2049.9+1002_daily_bin1476.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=621907201.0 && nMetStart<622166401.0' /Data/Flight/Level1/LPA

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164692/ft1_4FGL_J2049.9+1002_daily_bin1476.fits outfile=/scratch/kocevski/164692/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1476.fits ra=312.478 dec=10.0407 rad=12.0 tmin=621907201.0 tmax=622166401.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.88
user 2.67
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/164692/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1476.fits evtable="EVENTS" outfile="/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.45
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/164692/ltcube_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.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 /scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits
.....................!
real 9.86
user 9.54
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/164692/ltcube_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.fits outfile=/scratch/kocevski/164692/expmap_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.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 /scratch/kocevski/164692/ltcube_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.fits
.....................!
real 156.88
user 151.35
sys 4.40

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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 201 point sources and 2 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 J2049.9+1002 @ 312.478 10.0407

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits scfile=/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits outfile=/scratch/kocevski/164692/cmap_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.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=312.478 yref=10.0407 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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits scfile=/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits outfile=/scratch/kocevski/164692/cmap_HighResolution_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.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=312.478 yref=10.0407 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.48
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164692/Model_4FGL_J2049.9+1002_daily_bin1476.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
adding source W 51C
Working on...
/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits.....................!
real 144.47
user 143.08
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits', '/scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits', expMap='/scratch/kocevski/164692/expmap_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.fits', expCube='/scratch/kocevski/164692/ltcube_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164692/Model_4FGL_J2049.9+1002_daily_bin1476.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2049.9+1002'

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.360e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164692/ft1_filtered_4FGL_J2049.9+1002_daily_bin1476.fits
Spacecraft file(s): /scratch/kocevski/164692/ft2_4FGL_J2049.9+1002_daily_bin1476.fits
Exposure map: /scratch/kocevski/164692/expmap_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.fits
Exposure cube: /scratch/kocevski/164692/ltcube_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164692/Model_4FGL_J2049.9+1002_daily_bin1476.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) = 7815.77752063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11614E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6143       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18708E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.337       1.0000         .10000E-03   10000.    
     8 'norm      '    .12710E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2225       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11868E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .44028       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25134E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1424       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7815.715     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1993 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5950       -.39913E-05** at limit **
   2  norm          .10000E-03    2.5485       -.34862E-06** at limit **
   3  Prefactor     9.6067        1.9021        .35884E-05   -.57556E-03
   4  Prefactor     .10001E-03    26.625        .26128E-04** at limit **
   5  norm          .10000E-03    .24152       -.21240E-06** at limit **
   6  Prefactor     .10000E-03    19.154        .28742E-04** at limit **
   7  norm          10.328        1.6957       -.30117E-05   -.30661E-02
   8  norm          .10000E-03    16.851        .20738E-04** at limit **
   9  Prefactor     5.2245        1.2490       -.23851E-05   -.27560E-03
  10  Prefactor     .10001E-03    11.274        .84104E-06** at limit **
  11  Prefactor     .10000E-03    16.017        .18089E-05** at limit **
  12  Prefactor     14.282        2.7363        .24119E-05   -.55454E-03
  13  Prefactor     .10001E-03    8.6417       -.26100E-05** at limit **
  14  Prefactor     .10000E-03    6.4858       -.52883E-06** at limit **
  15  Prefactor     .14028E-03    2098.9       -.11911E-03** at limit **
  16  Prefactor     .10007E-03    28.113       -.61513E-04** at limit **
  17  norm          .44976        2.0190        .18422E-04    .12614E-02
  18  Prefactor     .36877E-03    26.484        .54329E-05** at limit **
  19  Prefactor     3.0804        2.5146       -.82660E-05   -.22462E-02
  20  Prefactor     .10000E-03    7.9433        .57636E-05** at limit **
  21  Normalizat    1.1422        .27968        .18633E-05    .15361E-03
  22  Prefactor     .82670        .93328E-01   -.27330E-05   -.18147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.60667
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 10.3283
  norm       = 0.000100002
  Prefactor  = 5.22451
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 14.2816
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000140276
  Prefactor  = 0.000100066
  norm       = 0.44976
  Prefactor  = 0.00036877
  Prefactor  = 3.08039
  Prefactor  = 0.0001
  Normalizat = 1.14224
  Prefactor  = 0.8267
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.715     FROM HESSE     STATUS=OK           402 CALLS     2395 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6067        13.828        .32310E-02   -1.5088    
   4  Prefactor     .10001E-03    27.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .23702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.670        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.328        7.8025        .31156E-02   -1.5065    
   8  norm          .10000E-03    37.403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2245        10.207        .43974E-02   -1.5251    
  10  Prefactor     .10001E-03    11.310        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.282        18.265        .26511E-02   -1.4952    
  13  Prefactor     .10001E-03    8.6740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14028E-03    34.071        .14784       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    32.810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44976        5.3122        .66943E-01   -1.5574    
  18  Prefactor     .36877E-03    19.582        .12441       -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0804        8.2416        .57883E-02   -1.5357    
  20  Prefactor     .10000E-03    7.9320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1422        .26506        .87651E-01   -.88407    
  22  Prefactor     .82670        .81612E-01    .33618E-01   -.98752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07013e-08
Minuit parameter uncertainties:
  1  0.000108613
  2  1.67085e-05
  3  13.8329
  4  0.000816137
  5  1.93865e-06
  6  0.000650166
  7  7.80324
  8  0.000501223
  9  10.2105
  10  0.000558185
  11  0.000358073
  12  18.2717
  13  0.000474203
  14  9.31043e-05
  15  0.0741298
  16  0.0029448
  17  3.09141
  18  0.145142
  19  8.24459
  20  2.73202e-06
  21  0.265366
  22  0.0816243
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.033e+01  7.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.267e-01  8.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.142e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 312.478 10.041
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.18e-05

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) = 7814.54465504
delta logL = 1.16995549091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7814.43092469
delta logL = 1.28368583506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7352       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2010       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82358       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7814.431     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      225 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7279        5.3663        .41930E-02   -.88935E-04
   2  alpha         1.2001        .46270        .43811       -.37397E-04
   3  Normalizat    1.1733        .24170        .86648E-01    .19964E-04
   4  Prefactor     .82357        .80515E-01    .33686E-01   -.24320E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.72791
  alpha      = 1.20005
  Normalizat = 1.17326
  Prefactor  = 0.823567
 **********
 **   18 **HESSE 
 **********

 FCN=   7814.431     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7279        8.4526        .16772E-03   -1.5229    
   2  alpha         1.2001        .77380        .17972E-01   -.54683    
   3  Normalizat    1.1733        .27957        .38370E-03   -.87433    
   4  Prefactor     .82357        .93418E-01    .14884E-03   -.98865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18849e-09
Minuit parameter uncertainties:
  1  8.45432
  2  0.791817
  3  0.279929
  4  0.0934358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164692': No such file or directory
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) = 7814.43092383
delta logL = 1.28368669793

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  5.728e+00  8.454e+00  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  1.200e+00  7.918e-01  0.000e+00  5.000e+00 ( 1.000e+00)
409         beta:  1.463e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.236e-01  9.344e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.173e+00  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.44
Ra Dec: 312.478 10.041
Photon Index (Free Index): 1.20 +/- 0.79
Photon Flux (Free Index): 1.34e-08 +/- 1.87e-08
Energy Flux (Free Index): 2.89e-05 +/- 3.32e-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 /scratch/kocevski/164692/cmap_HighResolution_621907201_622166401_4FGL_J2049.9+1002_daily_bin1476.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/164692

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='2.89e-05', photon_flux_error='3.71e-08', dlogl='1.28e+00', energy_flux='1.56e-05', photon_flux2='1.34e-08', job_status='DONE', time_completed='2021-09-25 19:11:03.736157', photon_index_error2='0.79', photon_index2='1.20', ts='5.87', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.32e-05', EG='1.14', time_epoch_completed='1632622263.74', return_code='0', job_id='164692', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='1.87e-08', ts2='8.44', photon_index='2.39' WHERE bin_id='1476' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 19:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 164692: <4FGL_J2049.9+1002_daily_bin1476> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1476> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 18:55:25 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:56:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 18:56:51 2021
Terminated at Sat Sep 25 19:11:04 2021
Results reported at Sat Sep 25 19:11:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1476 312.478 10.0407 621907201 622166401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2049.9+1002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   645.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            939 sec.

The output (if any) is above this job summary.

