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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1458
RA = 312.478, Dec = 10.0407
tmin = 617241601, tmax = 617500801
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='164667', job_status='RUN', time_executed='2021-09-25 18:58:33.314588', time_epoch_executed='1632621513.31' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164667

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164667/ft1_4FGL_J2049.9+1002_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164667/ft1_4FGL_J2049.9+1002_daily_bin1458.fits outfile=/scratch/kocevski/164667/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1458.fits ra=312.478 dec=10.0407 rad=12.0 tmin=617241601.0 tmax=617500801.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.95
user 2.70
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.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/164667/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1458.fits evtable="EVENTS" outfile="/scratch/kocevski/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/164667/ltcube_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.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/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits
.....................!
real 14.92
user 14.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/164667/ltcube_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.fits outfile=/scratch/kocevski/164667/expmap_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.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/164667/ltcube_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.fits
.....................!
real 194.20
user 188.17
sys 5.50

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/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits scfile=/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits outfile=/scratch/kocevski/164667/cmap_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits scfile=/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits outfile=/scratch/kocevski/164667/cmap_HighResolution_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164667/Model_4FGL_J2049.9+1002_daily_bin1458.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/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits.....................!
real 103.33
user 101.72
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits', '/scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits', expMap='/scratch/kocevski/164667/expmap_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.fits', expCube='/scratch/kocevski/164667/ltcube_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164667/Model_4FGL_J2049.9+1002_daily_bin1458.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/164667/ft1_filtered_4FGL_J2049.9+1002_daily_bin1458.fits
Spacecraft file(s): /scratch/kocevski/164667/ft2_4FGL_J2049.9+1002_daily_bin1458.fits
Exposure map: /scratch/kocevski/164667/expmap_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.fits
Exposure cube: /scratch/kocevski/164667/ltcube_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164667/Model_4FGL_J2049.9+1002_daily_bin1458.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4388.90551388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.727       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6034       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.385       1.0000         .10000E-03   10000.    
     8 'norm      '    7.1993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    241.72       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10277E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    97.223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    258.55       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3197       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1814       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=   4388.403     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     1956 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.850        80.118        .44042E-05   -.37538E-02
   2  norm          .10000E-03    3.3483        .50193E-06** at limit **
   3  Prefactor     .10000E-03    15.166       -.26233E-06** at limit **
   4  Prefactor     10.523        25.727       -.24242E-05    .97920E-03
   5  norm          .10000E-03    1.0274       -.33540E-05** at limit **
   6  Prefactor     .10000E-03    32.997        .28256E-06** at limit **
   7  norm          11.210        17.020        .62921E-06   -.27153E-04
   8  norm          7.5721        12.915        .12372E-05    .31178E-02
   9  Prefactor     14.381        25.286       -.35007E-05   -.12972E-02
  10  Prefactor     13.904        24.381       -.14432E-05    .10966E-02
  11  Prefactor     244.72        44.361       -.33989E-06    .63869E-01
  12  Prefactor     .10000E-03    15.838        .26350E-06** at limit **
  13  Prefactor     .10000E-03    60.795        .89713E-05** at limit **
  14  Prefactor     101.07        55.310       -.73321E-07    .10164E-03
  15  Prefactor     23.348        35.102       -.61929E-05   -.53334E-03
  16  Prefactor     280.02        324.55       -.30613E-05   -.93121E-02
  17  norm          1.3587        9.4683        .16387E-04   -.16463E-04
  18  Prefactor     .10000E-03    18.332       -.27909E-05** at limit **
  19  Prefactor     .10000E-03    55.754       -.11990E-06** at limit **
  20  Prefactor     .10000E-03    11.255       -.15428E-05** at limit **
  21  Normalizat    .10000E-01    .50567       -.37464E-05** at limit **
  22  Prefactor     1.1794        .82608E-01   -.44355E-05   -.49796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.85
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5228
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2101
  norm       = 7.57207
  Prefactor  = 14.3805
  Prefactor  = 13.9037
  Prefactor  = 244.722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.07
  Prefactor  = 23.3479
  Prefactor  = 280.019
  norm       = 1.35865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.1794
 **********
 **   18 **HESSE 
 **********

 FCN=   4388.403     FROM HESSE     STATUS=OK           392 CALLS     2348 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.850        81.191        .11850E-02   -1.3999    
   2  norm          .10000E-03    3.3434        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.523        27.623        .32329E-02   -1.5059    
   5  norm          .10000E-03    .81346        .28817E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.210        17.080        .29682E-02   -1.5038    
   8  norm          7.5721        235.94        .37374E-02   -1.5158    
   9  Prefactor     14.381        28.349        .27177E-02   -1.4949    
  10  Prefactor     13.904        24.389        .26620E-02   -1.4962    
  11  Prefactor     244.72        253.27        .65111E-03   -1.2566    
  12  Prefactor     .10000E-03    15.786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.821        .90744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     101.07        55.503        .10192E-02   -1.3694    
  15  Prefactor     23.348        35.238        .20718E-02   -1.4741    
  16  Prefactor     280.02        339.13        .63011E-03   -1.2345    
  17  norm          1.3587        9.5833        .95776E-02   -1.5475    
  18  Prefactor     .10000E-03    18.311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8790        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .28126        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1794        .99455E-01    .35085E-01   -.86968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000122651
Minuit parameter uncertainties:
  1  81.3145
  2  7.32975e-07
  3  3.65385e-06
  4  27.6569
  5  3.19533e-08
  6  3.437e-05
  7  17.0875
  8  84.9028
  9  28.3758
  10  24.4062
  11  254.413
  12  4.92569e-06
  13  7.6766e-05
  14  55.5319
  15  35.2696
  16  341.56
  17  7.21815
  18  1.55736e-05
  19  1.52952e-05
  20  8.68465e-06
  21  3.40347e-07
  22  0.0994703
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.121e+01  1.709e+01  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:  1.179e+00  9.947e-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.000e-02  3.403e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 312.478 10.041
Photon Flux Upper Limit: 2.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164667/likelihoodResults_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.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) = 4386.51084555
delta logL = 1.89228556449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4386.50922154
delta logL = 1.8939095716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.208       1.0000         .10000E-03   10000.    
     2 'alpha     '    .94846       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1782       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=   4386.509     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      200 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.952        9.2410        .29916E-02   -.22592E-03
   2  alpha         .93967        .39216        .28169        .95492E-05
   3  Normalizat    .10000E-01    .27215        .32252    ** at limit **
   4  Prefactor     1.1784        .95708E-01    .35167E-01   -.11371E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9515
  alpha      = 0.939671
  Normalizat = 0.01
  Prefactor  = 1.17835
 **********
 **   18 **HESSE 
 **********

 FCN=   4386.509     FROM HESSE     STATUS=OK            27 CALLS      227 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.952        14.604        .11967E-03   -1.5046    
   2  alpha         .93967        .62215        .12282E-02   -.67402    
   3  Normalizat    .10000E-01    .57673        .15443E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1784        .69372E-01    .13811E-03   -.87000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79592e-10
Minuit parameter uncertainties:
  1  14.6085
  2  0.633182
  3  1.61699e-05
  4  0.0693776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164667': 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) = 4386.5090698
delta logL = 1.89406131586

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.095e+01  1.461e+01  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  9.397e-01  6.332e-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:  1.178e+00  6.938e-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.000e-02  1.617e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 312.478 10.041
Photon Index (Free Index): 0.94 +/- 0.63
Photon Flux (Free Index): 2.82e-08 +/- 2.93e-08
Energy Flux (Free Index): 1.11e-04 +/- 1.23e-04

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 /scratch/kocevski/164667/cmap_HighResolution_617241601_617500801_4FGL_J2049.9+1002_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-05', comment='SUCCESS', energy_flux2='1.11e-04', dlogl='1.89e+00', photon_flux2='2.82e-08', job_status='DONE', time_completed='2021-09-25 19:09:37.019500', photon_index_error2='0.63', photon_index2='0.94', ts='0.55', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='2.46e-07', energy_flux_error2='1.23e-04', EG='0.01', time_epoch_completed='1632622177.02', return_code='0', job_id='164667', GAL2='1.18', EG2='0.01', return_code2='0', photon_flux_error2='2.93e-08', ts2='4.34', photon_index='2.39' WHERE bin_id='1458' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 19:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 164667: <4FGL_J2049.9+1002_daily_bin1458> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1458> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 18:55:24 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:56:36 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:36 2021
Terminated at Sat Sep 25 19:09:37 2021
Results reported at Sat Sep 25 19:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1458 312.478 10.0407 617241601 617500801 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 :                                   620.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            853 sec.

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

