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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1206
RA = 312.478, Dec = 10.0407
tmin = 551923201, tmax = 552182401
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='163166', job_status='RUN', time_executed='2021-09-25 18:53:43.968088', time_epoch_executed='1632621223.97' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163166/ft1_4FGL_J2049.9+1002_daily_bin1206.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163166/ft2_4FGL_J2049.9+1002_daily_bin1206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163166/ft1_4FGL_J2049.9+1002_daily_bin1206.fits outfile=/scratch/kocevski/163166/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1206.fits ra=312.478 dec=10.0407 rad=12.0 tmin=551923201.0 tmax=552182401.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.84
user 3.53
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163166/ft2_4FGL_J2049.9+1002_daily_bin1206.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/163166/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1206.fits evtable="EVENTS" outfile="/scratch/kocevski/163166/ft1_filtered_4FGL_J2049.9+1002_daily_bin1206.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.55
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163166/ft1_filtered_4FGL_J2049.9+1002_daily_bin1206.fits" evtable="EVENTS" scfile=/scratch/kocevski/163166/ft2_4FGL_J2049.9+1002_daily_bin1206.fits sctable="SC_DATA" outfile=/scratch/kocevski/163166/ltcube_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.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/163166/ft2_4FGL_J2049.9+1002_daily_bin1206.fits
.....................!
real 17.90
user 17.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163166/ft1_filtered_4FGL_J2049.9+1002_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/163166/ft2_4FGL_J2049.9+1002_daily_bin1206.fits sctable="SC_DATA" expcube=/scratch/kocevski/163166/ltcube_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.fits outfile=/scratch/kocevski/163166/expmap_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.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/163166/ltcube_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.fits
.....................!
real 197.48
user 190.80
sys 5.91

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/163166/ft1_filtered_4FGL_J2049.9+1002_daily_bin1206.fits scfile=/scratch/kocevski/163166/ft2_4FGL_J2049.9+1002_daily_bin1206.fits outfile=/scratch/kocevski/163166/cmap_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163166/ft1_filtered_4FGL_J2049.9+1002_daily_bin1206.fits scfile=/scratch/kocevski/163166/ft2_4FGL_J2049.9+1002_daily_bin1206.fits outfile=/scratch/kocevski/163166/cmap_HighResolution_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.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.61
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41938       1.0000         .10000E-03   10000.    
     2 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.043       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.356       1.0000         .10000E-03   10000.    
     5 'norm      '    .12610E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.5549       1.0000         .10000E-03   10000.    
     8 'norm      '    35.956       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20966E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11668E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3172       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.625       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1936       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8911       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .56067       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0449       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=   5779.054     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2433 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41862        8.3725        .16816E-05    .15280E-03
   2  norm          .10000E-03    11.574       -.56976E-08** at limit **
   3  Prefactor     11.043        59.957        .19493E-05    .28224E-03
   4  Prefactor     29.427        57.334       -.41473E-05    .40865E-03
   5  norm          .10000E-03    .91110        .90237E-06** at limit **
   6  Prefactor     .10000E-03    109.65        .22477E-05** at limit **
   7  norm          4.5576        9.0755        .27659E-07    .17433E-03
   8  norm          36.194        113.06        .39226E-05   -.31782E-05
   9  Prefactor     .10019E-03    218.15        .36105E-04** at limit **
  10  Prefactor     .10000E-03    36.287        .32732E-06** at limit **
  11  Prefactor     .10000E-03    16.309        .28479E-06** at limit **
  12  Prefactor     .10000E-03    12.729        .11160E-06** at limit **
  13  Prefactor     .10000E-03    13.898        .22968E-06** at limit **
  14  Prefactor     .10000E-03    15.372       -.16293E-06** at limit **
  15  Prefactor     .10000E-03    25.338       -.25802E-07** at limit **
  16  Prefactor     .10000E-03    48.914       -.71010E-06** at limit **
  17  norm          8.3170        7.7798        .26012E-06    .10368E-03
  18  Prefactor     27.608        26.676       -.10921E-05    .64470E-04
  19  Prefactor     6.1931        8.4653       -.42407E-06    .99644E-04
  20  Prefactor     8.9022        16.517        .47832E-07    .76031E-04
  21  Normalizat    .56089        .34082        .14832E-05    .38977E-03
  22  Prefactor     1.0449        .12167        .20365E-05    .92677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.418617
  norm       = 0.0001
  Prefactor  = 11.0426
  Prefactor  = 29.4271
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.55758
  norm       = 36.1943
  Prefactor  = 0.000100195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.31699
  Prefactor  = 27.6083
  Prefactor  = 6.19311
  Prefactor  = 8.90218
  Normalizat = 0.560894
  Prefactor  = 1.04493
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.054     FROM HESSE     STATUS=OK           352 CALLS     2785 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41862        36.435        .40495E-02   -1.5579    
   2  norm          .10000E-03    11.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.043        56.535        .12056E-03   -1.5043    
   4  Prefactor     29.427        57.120        .73946E-04   -1.4622    
   5  norm          .10000E-03    1.5459        .13205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    109.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5576        9.0494        .18862E-03   -1.5281    
   8  norm          36.194        117.51        .33417E-03   -1.4504    
   9  Prefactor     .10019E-03    26.408        .11717       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3170        7.7808        .13901E-03   -1.5131    
  18  Prefactor     27.608        26.664        .76222E-04   -1.4657    
  19  Prefactor     6.1931        8.4205        .16131E-03   -1.5210    
  20  Prefactor     8.9022        16.433        .13442E-03   -1.5111    
  21  Normalizat    .56089        .35874        .54311E-03   -1.0967    
  22  Prefactor     1.0449        .12730        .14877E-03   -.91247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53757e-09
Minuit parameter uncertainties:
  1  7.81481
  2  1.54638e-05
  3  50.0463
  4  57.2266
  5  0.000152571
  6  0.000292318
  7  9.05214
  8  118.274
  9  0.00454027
  10  4.73242e-05
  11  2.73556e-05
  12  4.73812e-05
  13  6.34774e-05
  14  7.66115e-05
  15  8.379e-05
  16  0.00018869
  17  7.78177
  18  26.6757
  19  8.42208
  20  16.4409
  21  0.360238
  22  0.127338
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.558e+00  9.052e+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:  1.045e+00  1.273e-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:  5.609e-01  3.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/163166/likelihoodResults_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.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) = 5778.70999218
delta logL = 0.344375775178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.69034888
delta logL = 0.364019071203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1730       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4756       1.0000          .0000       5.0000    
     3 'Normalizat'    .57770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0391       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=   5778.690     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1890        8.3494        .40395E-02   -.54275E-04
   2  alpha         1.4777        .69756        .46700       -.26732E-04
   3  Normalizat    .57805        .30893        .12070       -.68345E-04
   4  Prefactor     1.0390        .11387        .40597E-01   -.54845E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.18896
  alpha      = 1.47771
  Normalizat = 0.57805
  Prefactor  = 1.03899
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.690     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1890        8.8400        .16158E-03   -1.5210    
   2  alpha         1.4777        .83799        .22555E-01   -.42127    
   3  Normalizat    .57805        .33370        .53538E-03   -1.0892    
   4  Prefactor     1.0390        .12364        .14909E-03   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06948e-09
Minuit parameter uncertainties:
  1  8.84185
  2  0.858078
  3  0.334869
  4  0.12367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163166': 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) = 5778.69034476
delta logL = 0.364023198865

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  6.189e+00  8.842e+00  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  1.478e+00  8.581e-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.039e+00  1.237e-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:  5.781e-01  3.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 312.478 10.041
Photon Index (Free Index): 1.48 +/- 0.86
Photon Flux (Free Index): 1.49e-08 +/- 2.30e-08
Energy Flux (Free Index): 1.76e-05 +/- 2.85e-05

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/163166/cmap_HighResolution_551923201_552182401_4FGL_J2049.9+1002_daily_bin1206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-05', comment='SUCCESS', energy_flux2='1.76e-05', dlogl='3.64e-01', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-09-25 19:06:34.193016', photon_index_error2='0.86', photon_index2='1.48', ts='0.36', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='2.85e-05', EG='0.56', time_epoch_completed='1632621994.19', return_code='0', job_id='163166', GAL2='1.04', EG2='0.58', return_code2='0', photon_flux_error2='2.30e-08', ts2='1.09', photon_index='2.39' WHERE bin_id='1206' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 19:06:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 163166: <4FGL_J2049.9+1002_daily_bin1206> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1206 312.478 10.0407 551923201 552182401 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 :                                   765.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            971 sec.

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

