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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1215
RA = 312.478, Dec = 10.0407
tmin = 554256001, tmax = 554515201
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='163181', job_status='RUN', time_executed='2021-09-25 18:55:01.909208', time_epoch_executed='1632621301.91' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163181/ft1_4FGL_J2049.9+1002_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163181/ft2_4FGL_J2049.9+1002_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163181/ft1_4FGL_J2049.9+1002_daily_bin1215.fits outfile=/scratch/kocevski/163181/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1215.fits ra=312.478 dec=10.0407 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.04
user 3.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163181/ft1_filtered_4FGL_J2049.9+1002_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/163181/ft2_4FGL_J2049.9+1002_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/163181/ltcube_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.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/163181/ft2_4FGL_J2049.9+1002_daily_bin1215.fits
.....................!
real 14.04
user 13.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163181/ft1_filtered_4FGL_J2049.9+1002_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/163181/ft2_4FGL_J2049.9+1002_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/163181/ltcube_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.fits outfile=/scratch/kocevski/163181/expmap_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.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/163181/ltcube_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.fits
.....................!
real 191.30
user 185.98
sys 4.64

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/163181/ft1_filtered_4FGL_J2049.9+1002_daily_bin1215.fits scfile=/scratch/kocevski/163181/ft2_4FGL_J2049.9+1002_daily_bin1215.fits outfile=/scratch/kocevski/163181/cmap_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163181/ft1_filtered_4FGL_J2049.9+1002_daily_bin1215.fits scfile=/scratch/kocevski/163181/ft2_4FGL_J2049.9+1002_daily_bin1215.fits outfile=/scratch/kocevski/163181/cmap_HighResolution_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19889E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6479       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5931       1.0000         .10000E-03   10000.    
     8 'norm      '    171.15       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    68.219       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.148       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2593       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84969       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4496.800     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     3111 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1217        .14808E-02** at limit **
   2  norm          .10000E-03    8.8017        .18142E-02** at limit **
   3  Prefactor     .10000E-03    31.192        .18142E-02** at limit **
   4  Prefactor     .10004E-03    80.066        .10883    ** at limit **
   5  norm          2.6464        2.0416        .63560E-04   -.46737E-03
   6  Prefactor     .10000E-03    71.678        .18142E-02** at limit **
   7  norm          2.5934        44.532        .25339E-03   -.78383E-04
   8  norm          171.18        189.77        .15420E-03   -.48232E-04
   9  Prefactor     .10000E-03    60.366        .18142E-02** at limit **
  10  Prefactor     .10001E-03    156.94        .18142E-02** at limit **
  11  Prefactor     .10000E-03    40.774        .18142E-02** at limit **
  12  Prefactor     15.553        42.534        .10169E-03   -.89372E-04
  13  Prefactor     .10000E-03    26.817        .18142E-02** at limit **
  14  Prefactor     .10000E-03    24.118        .18142E-02** at limit **
  15  Prefactor     .10000E-03    48.624        .18142E-02** at limit **
  16  Prefactor     68.266        137.88        .48597E-04   -.77481E-04
  17  norm          .10000E-03    10.837        .18142E-02** at limit **
  18  Prefactor     50.227        52.359        .56596E-04   -.79507E-04
  19  Prefactor     2.7922        30.226        .24210E-03   -.13425E-03
  20  Prefactor     22.169        50.396        .85111E-04    .72130E-05
  21  Normalizat    1.2591        .48349        .43875E-03   -.12738E-03
  22  Prefactor     .84974        .13888        .15953E-03    .50884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100039
  norm       = 2.64644
  Prefactor  = 0.000100003
  norm       = 2.59341
  norm       = 171.185
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 15.5526
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 68.2655
  norm       = 0.0001
  Prefactor  = 50.2267
  Prefactor  = 2.7922
  Prefactor  = 22.1692
  Normalizat = 1.2591
  Prefactor  = 0.849737
 **********
 **   18 **HESSE 
 **********

 FCN=   4496.800     FROM HESSE     STATUS=OK           330 CALLS     3441 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1220        .29615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    74.442        .11364       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6464        2.0371        .25424E-05   -1.5383    
   6  Prefactor     .10000E-03    71.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5934        44.499        .10135E-04   -1.5386    
   8  norm          171.18        189.77        .30840E-04   -1.3084    
   9  Prefactor     .10000E-03    60.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    156.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.553        42.533        .20338E-04   -1.4919    
  13  Prefactor     .10000E-03    26.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     68.266        137.90        .97193E-05   -1.4054    
  17  norm          .10000E-03    10.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     50.227        52.360        .11319E-04   -1.4289    
  19  Prefactor     2.7922        30.191        .96841E-05   -1.5374    
  20  Prefactor     22.169        50.381        .34045E-05   -1.4766    
  21  Normalizat    1.2591        .48389        .17550E-04   -.84796    
  22  Prefactor     .84974        .13900        .31906E-04   -.97920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4738e-09
Minuit parameter uncertainties:
  1  7.38592e-06
  2  9.82356e-07
  3  0.000479217
  4  0.00339243
  5  2.03715
  6  0.000906506
  7  21.5037
  8  190.449
  9  8.58935e-05
  10  0.00222054
  11  0.000334978
  12  42.6165
  13  0.000427139
  14  0.000159853
  15  0.000615493
  16  138.549
  17  8.62138e-06
  18  52.4076
  19  18.3746
  20  50.4776
  21  0.485641
  22  0.139054
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  2.593e+00  2.150e+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:  8.497e-01  1.391e-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.259e+00  4.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/163181/likelihoodResults_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.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) = 4496.6632888
delta logL = 0.136585660366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4496.63748314
delta logL = 0.162391312357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5794       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6010       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86141       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4496.637     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      259 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5794        13.329        .18810E-03    .23691E-02
   2  alpha         3.6012        1.6435        .95760E-02    .16825E-04
   3  Normalizat    1.1812        .46470        .45061E-03   -.50459E-07
   4  Prefactor     .86142        .13802        .15846E-03    .28699E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.57942
  alpha      = 3.60123
  Normalizat = 1.18122
  Prefactor  = 0.861425
 **********
 **   18 **HESSE 
 **********

 FCN=   4496.637     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5794        12.367        .75241E-05   -1.5280    
   2  alpha         3.6012        1.5491        .19152E-02    .45615    
   3  Normalizat    1.1812        .46529        .18025E-04   -.87185    
   4  Prefactor     .86142        .13813        .63383E-05   -.97502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88864e-08
Minuit parameter uncertainties:
  1  12.3742
  2  1.70978
  3  0.466933
  4  0.138183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163181': 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) = 4496.63748312
delta logL = 0.162391340014

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.579e+00  1.237e+01  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  3.601e+00  1.710e+00  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.614e-01  1.382e-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.181e+00  4.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/163181/cmap_HighResolution_554256001_554515201_4FGL_J2049.9+1002_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-05', job_status='DONE', photon_flux_upper_limit='2.49e-07', time_completed='2021-09-25 19:06:35.952465', job_id='163181', GAL2='0.86', fit_tolerance='1e-08', EG2='1.18', EG='1.26', time_epoch_completed='1632621995.95', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.62e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1215' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 19:06:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 163181: <4FGL_J2049.9+1002_daily_bin1215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1215 312.478 10.0407 554256001 554515201 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            972 sec.

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

