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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1240
RA = 312.478, Dec = 10.0407
tmin = 560736001, tmax = 560995201
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='163218', job_status='RUN', time_executed='2021-09-25 18:54:28.310105', time_epoch_executed='1632621268.31' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163218/ft1_4FGL_J2049.9+1002_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163218/ft1_4FGL_J2049.9+1002_daily_bin1240.fits outfile=/scratch/kocevski/163218/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1240.fits ra=312.478 dec=10.0407 rad=12.0 tmin=560736001.0 tmax=560995201.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.79
user 3.54
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.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/163218/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/163218/ft1_filtered_4FGL_J2049.9+1002_daily_bin1240.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163218/ft1_filtered_4FGL_J2049.9+1002_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/163218/ltcube_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.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/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.fits
.....................!
real 13.32
user 12.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163218/ft1_filtered_4FGL_J2049.9+1002_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/163218/ltcube_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.fits outfile=/scratch/kocevski/163218/expmap_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.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/163218/ltcube_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.fits
.....................!
real 191.73
user 185.72
sys 4.81

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/163218/ft1_filtered_4FGL_J2049.9+1002_daily_bin1240.fits scfile=/scratch/kocevski/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.fits outfile=/scratch/kocevski/163218/cmap_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.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.55
user 0.38
sys 0.14

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163218/ft1_filtered_4FGL_J2049.9+1002_daily_bin1240.fits', '/scratch/kocevski/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.fits', expMap='/scratch/kocevski/163218/expmap_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.fits', expCube='/scratch/kocevski/163218/ltcube_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163218/Model_4FGL_J2049.9+1002_daily_bin1240.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/163218/ft1_filtered_4FGL_J2049.9+1002_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/163218/ft2_4FGL_J2049.9+1002_daily_bin1240.fits
Exposure map: /scratch/kocevski/163218/expmap_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.fits
Exposure cube: /scratch/kocevski/163218/ltcube_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163218/Model_4FGL_J2049.9+1002_daily_bin1240.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) = 1794.16584882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.076       1.0000         .10000E-03   10000.    
     2 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.832       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .94564       1.0000         .10000E-03   10000.    
     8 'norm      '    98.736       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24883E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    104.06       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    107.76       1.0000         .10000E-03   10000.    
    17 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8858       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.662       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0126       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1794.111     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     3090 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.069        29.724       -.23004E-06    .20823E-04
   2  norm          .10000E-03    157.50       -.90924E-06** at limit **
   3  Prefactor     .10000E-03    43.091        .45504E-07** at limit **
   4  Prefactor     23.848        74.150       -.15507E-05    .86034E-05
   5  norm          .10000E-03    2.2235        .22995E-06** at limit **
   6  Prefactor     .10000E-03    107.59       -.25002E-06** at limit **
   7  norm          .95269        49.521       -.23467E-05    .17909E-03
   8  norm          98.538        631.76       -.17264E-04   -.19541E-04
   9  Prefactor     .10002E-03    864.25       -.11919E-04** at limit **
  10  Prefactor     .10000E-03    328.70        .11667E-05** at limit **
  11  Prefactor     103.98        74.089       -.28386E-08   -.13571E-04
  12  Prefactor     .10000E-03    47.199       -.15534E-06** at limit **
  13  Prefactor     .10000E-03    15.242        .26754E-07** at limit **
  14  Prefactor     .10000E-03    15.754        .19813E-07** at limit **
  15  Prefactor     .10000E-03    77.478        .65704E-06** at limit **
  16  Prefactor     107.63        145.18       -.38649E-06   -.48607E-05
  17  norm          .10000E-03    40.823        .28748E-06** at limit **
  18  Prefactor     52.363        40.567       -.38889E-06    .25234E-04
  19  Prefactor     9.8797        15.245       -.26719E-06    .21989E-04
  20  Prefactor     21.656        37.015       -.43223E-06    .11258E-04
  21  Normalizat    .10000E-01    .20803        .55459E-05** at limit **
  22  Prefactor     1.0128        .11847       -.11405E-05    .21141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0689
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.8477
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.952694
  norm       = 98.5379
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  Prefactor  = 103.977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.63
  norm       = 0.0001
  Prefactor  = 52.3628
  Prefactor  = 9.87969
  Prefactor  = 21.6555
  Normalizat = 0.01
  Prefactor  = 1.01276
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.111     FROM HESSE     STATUS=OK           338 CALLS     3428 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.069        29.836        .74300E-04   -1.4629    
   2  norm          .10000E-03    157.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.848        74.516        .82053E-04   -1.4731    
   5  norm          .10000E-03    2.2795        .12328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    107.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .95269        226.07        .51571E-02   -1.5513    
   8  norm          98.538        624.99        .20228E-03   -1.3719    
   9  Prefactor     .10002E-03    795.95        .40045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    329.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     103.98        74.325        .19709E-03   -1.3665    
  12  Prefactor     .10000E-03    47.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.247        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.757        .16424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    77.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     107.63        146.14        .19371E-03   -1.3629    
  17  norm          .10000E-03    40.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.363        40.666        .55407E-04   -1.4259    
  19  Prefactor     9.8797        15.245        .12745E-03   -1.5079    
  20  Prefactor     21.656        36.999        .86058E-04   -1.4777    
  21  Normalizat    .10000E-01    .43704        .11260E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0128        .12670        .14233E-03   -.92305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92025e-09
Minuit parameter uncertainties:
  1  29.8516
  2  0.000642576
  3  0.00013355
  4  74.8094
  5  2.96415e-05
  6  0.000356442
  7  29.4627
  8  504.272
  9  0.00714004
  10  0.00129927
  11  74.3913
  12  0.000123825
  13  6.92115e-06
  14  5.07138e-06
  15  0.000195514
  16  146.631
  17  3.06118e-07
  18  40.6877
  19  15.2513
  20  37.0384
  21  2.15087e-05
  22  0.126734
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  9.527e-01  2.946e+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.013e+00  1.267e-01  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  2.151e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 312.478 10.041
Photon Flux Upper Limit: 4.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163218/likelihoodResults_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.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): 102
logL (Free Index) = 1794.10175762
delta logL = 0.00954057325339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1794.03602584
delta logL = 0.0752723554037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65998       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0037       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=   1794.036     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      294 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65935        209.40        .11907E-01    .42038E-03
   2  alpha         5.0000        4.8727        .46366    ** at limit **
   3  Normalizat    .10000E-01    .19139        .24571    ** at limit **
   4  Prefactor     1.0037        .10955        .32300E-01    .51541E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.659355
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 1.00365
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.036     FROM HESSE     STATUS=OK            33 CALLS      327 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65935        1.8342        .89955E-04   -1.5546    
   2  alpha         5.0000        4.9876        .10957        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .36214        .12232E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0037        .10658        .14275E-03   -.92608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6583e-12
Minuit parameter uncertainties:
  1  1.83438
  2  7.78035e-06
  3  8.23114e-08
  4  0.1066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163218': 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) = 1794.03602525
delta logL = 0.0752729464468

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  6.594e-01  1.834e+00  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  5.000e+00  7.780e-06  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.004e+00  1.066e-01  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  8.231e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 312.478 10.041

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/163218/cmap_HighResolution_560736001_560995201_4FGL_J2049.9+1002_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-04', job_status='DONE', photon_flux_upper_limit='4.01e-07', time_completed='2021-09-25 19:02:09.591470', job_id='163218', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632621729.59', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.53e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1240' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 19:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 163218: <4FGL_J2049.9+1002_daily_bin1240> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1240> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep 25 18:50:26 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:51:54 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:51:54 2021
Terminated at Sat Sep 25 19:02:10 2021
Results reported at Sat Sep 25 19:02:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1240 312.478 10.0407 560736001 560995201 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 :                                   459.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            704 sec.

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

