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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1334
RA = 312.478, Dec = 10.0407
tmin = 585100801, tmax = 585360001
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='163371', job_status='RUN', time_executed='2021-09-25 18:56:39.863414', time_epoch_executed='1632621399.86' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163371

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163371/ft1_4FGL_J2049.9+1002_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163371/ft2_4FGL_J2049.9+1002_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163371/ft1_4FGL_J2049.9+1002_daily_bin1334.fits outfile=/scratch/kocevski/163371/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1334.fits ra=312.478 dec=10.0407 rad=12.0 tmin=585100801.0 tmax=585360001.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.02
user 2.83
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163371/ft2_4FGL_J2049.9+1002_daily_bin1334.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/163371/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/163371/ft1_filtered_4FGL_J2049.9+1002_daily_bin1334.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163371/ft1_filtered_4FGL_J2049.9+1002_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/163371/ft2_4FGL_J2049.9+1002_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/163371/ltcube_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.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/163371/ft2_4FGL_J2049.9+1002_daily_bin1334.fits
.....................!
real 14.76
user 14.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163371/ft1_filtered_4FGL_J2049.9+1002_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/163371/ft2_4FGL_J2049.9+1002_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/163371/ltcube_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.fits outfile=/scratch/kocevski/163371/expmap_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.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/163371/ltcube_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.fits
.....................!
real 190.56
user 186.22
sys 3.90

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/163371/ft1_filtered_4FGL_J2049.9+1002_daily_bin1334.fits scfile=/scratch/kocevski/163371/ft2_4FGL_J2049.9+1002_daily_bin1334.fits outfile=/scratch/kocevski/163371/cmap_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.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.42
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163371/ft1_filtered_4FGL_J2049.9+1002_daily_bin1334.fits scfile=/scratch/kocevski/163371/ft2_4FGL_J2049.9+1002_daily_bin1334.fits outfile=/scratch/kocevski/163371/cmap_HighResolution_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69228E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .26290E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    125.10       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0228       1.0000         .10000E-03   10000.    
     8 'norm      '    69.435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15770E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.923       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.058       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.740       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7168       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12150E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0249       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.375       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.515       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11012E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .17838       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0237       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=   4101.792     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1883 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.684       -.31439E-05** at limit **
   2  norm          .10000E-03    84.847       -.86010E-05** at limit **
   3  Prefactor     .10000E-03    11.728        .80501E-07** at limit **
   4  Prefactor     .10000E-03    11.518        .82587E-06** at limit **
   5  norm          .10000E-03    .44414        .19096E-06** at limit **
   6  Prefactor     127.20        135.06        .99608E-04   -.18478E-04
   7  norm          6.3329        18.187       -.26696E-04   -.19074E-03
   8  norm          69.653        6.2644       -.38701E-05    .16093E-02
   9  Prefactor     .10000E-03    20.650        .19902E-05** at limit **
  10  Prefactor     17.055        13.895       -.38698E-05   -.41697E-02
  11  Prefactor     .10000E-03    121.17        .60053E-05** at limit **
  12  Prefactor     21.342        25.717        .57098E-05   -.19754E-02
  13  Prefactor     44.890        67.105       -.40758E-04    .12711E-02
  14  Prefactor     7.3553        85.752        .62689E-04    .62344E-03
  15  Prefactor     .10000E-03    19.313       -.24376E-05** at limit **
  16  Prefactor     .10036E-03    1124.6       -.41786E-03** at limit **
  17  norm          .10000E-03    2.8484        .42317E-06** at limit **
  18  Prefactor     18.874        46.915        .17478E-03    .15344E-03
  19  Prefactor     14.584        10.926        .23318E-05   -.12916E-03
  20  Prefactor     .10000E-03    17.828        .31498E-05** at limit **
  21  Normalizat    .17485        .49115       -.11831E-03    .71525E-04
  22  Prefactor     1.0241        .14743        .36822E-05    .46385E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 127.202
  norm       = 6.33291
  norm       = 69.6527
  Prefactor  = 0.0001
  Prefactor  = 17.0547
  Prefactor  = 0.000100001
  Prefactor  = 21.342
  Prefactor  = 44.89
  Prefactor  = 7.35531
  Prefactor  = 0.0001
  Prefactor  = 0.000100363
  norm       = 0.0001
  Prefactor  = 18.8739
  Prefactor  = 14.5843
  Prefactor  = 0.0001
  Normalizat = 0.174847
  Prefactor  = 1.02408
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.792     FROM HESSE     STATUS=NOT POSDEF   392 CALLS     2275 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.995        .10493E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.4850        .60560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .40751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     127.20        198.48        .89973E-03   -1.3447    
   7  norm          6.3329        18.483        .37845E-02   -1.5205    
   8  norm          69.653        78.432        .12043E-02   -1.4037    
   9  Prefactor     .10000E-03    18.774        .10215E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.055        89.629        .24340E-02   -1.4882    
  11  Prefactor     .10000E-03    109.81        .98357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.342        77.915        .21821E-02   -1.4784    
  13  Prefactor     44.890        84.356        .15512E-02   -1.4367    
  14  Prefactor     7.3553        70.659        .33941E-02   -1.5165    
  15  Prefactor     .10000E-03    17.488        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10036E-03    1036.5        .12656E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.874        66.608        .22748E-02   -1.4839    
  19  Prefactor     14.584        24.880        .26283E-02   -1.4944    
  20  Prefactor     .10000E-03    16.547        .90780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .17485        8.4608        .23571       -1.3132    
  22  Prefactor     1.0241        .71852        .31305E-01   -.91931    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37651e-06
Minuit parameter uncertainties:
  1  0.000167007
  2  0.000162963
  3  4.65455e-06
  4  2.12011e-05
  5  8.75033e-07
  6  199.534
  7  18.4994
  8  78.5483
  9  6.05273e-05
  10  78.379
  11  0.000761333
  12  78.2899
  13  84.5812
  14  45.6651
  15  8.78757e-05
  16  0.0394719
  17  6.03057e-06
  18  66.8719
  19  24.8977
  20  9.98705e-05
  21  2.87957
  22  0.725419
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  6.333e+00  1.850e+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.024e+00  7.254e-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.748e-01  2.880e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/163371/likelihoodResults_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.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) = 4101.39196339
delta logL = 0.400205592068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4101.35708086
delta logL = 0.43508812022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8293       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9039       1.0000          .0000       5.0000    
     3 'Normalizat'    .65544E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0442       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=   4101.357     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8462        148.39        .45765E-02    .30229E-03
   2  alpha         3.9016        3.1145        .50000        .34237E-04
   3  Normalizat    .65002E-01    .91893E-01    .33009        .73634E-04
   4  Prefactor     1.0444        .40036E-01    .40261E-01    .18171E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.84617
  alpha      = 3.90156
  Normalizat = 0.0650021
  Prefactor  = 1.04439
 **********
 **   18 **HESSE 
 **********

 FCN=   4101.357     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8462        21.558        .14242E-03   -1.5268    
   2  alpha         3.9016        4.1944        .22161E-01    .59514    
   3  Normalizat    .65002E-01    1.4504        .12817E-01   -1.4223    
   4  Prefactor     1.0444        .17911        .13697E-03   -.91264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13645e-11
Minuit parameter uncertainties:
  1  20.4545
  2  3.13426
  3  0.581329
  4  0.179213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163371': 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) = 4101.3570788
delta logL = 0.435090182645

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.846e+00  2.045e+01  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  3.902e+00  3.134e+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:  1.044e+00  1.792e-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:  6.500e-02  5.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 312.478 10.041
Photon Index (Free Index): 3.90 +/- 3.13
Photon Flux (Free Index): 1.66e-07 +/- 2.04e-07
Energy Flux (Free Index): 2.68e-05 +/- 2.98e-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/163371/cmap_HighResolution_585100801_585360001_4FGL_J2049.9+1002_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-05', comment='SUCCESS', energy_flux2='2.68e-05', dlogl='4.35e-01', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-25 19:06:50.812478', photon_index_error2='3.13', photon_index2='3.90', ts='0.20', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.35e-07', energy_flux_error2='2.98e-05', EG='0.17', time_epoch_completed='1632622010.81', return_code='102', job_id='163371', GAL2='1.04', EG2='0.07', return_code2='0', photon_flux_error2='2.04e-07', ts2='1.16', photon_index='2.39' WHERE bin_id='1334' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 19:06:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 163371: <4FGL_J2049.9+1002_daily_bin1334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1334 312.478 10.0407 585100801 585360001 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 :                                   604.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             264.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            971 sec.

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

