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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin505
RA = 312.478, Dec = 10.0407
tmin = 370224001, tmax = 370483201
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='159033', job_status='RUN', time_executed='2021-09-25 18:40:01.664243', time_epoch_executed='1632620401.66' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159033/ft1_4FGL_J2049.9+1002_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159033/ft2_4FGL_J2049.9+1002_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159033/ft1_4FGL_J2049.9+1002_daily_bin505.fits outfile=/scratch/kocevski/159033/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin505.fits ra=312.478 dec=10.0407 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.35
user 15.74
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159033/ft1_filtered_4FGL_J2049.9+1002_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/159033/ft2_4FGL_J2049.9+1002_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/159033/ltcube_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.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/159033/ft2_4FGL_J2049.9+1002_daily_bin505.fits
.....................!
real 11.00
user 10.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159033/ft1_filtered_4FGL_J2049.9+1002_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/159033/ft2_4FGL_J2049.9+1002_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/159033/ltcube_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.fits outfile=/scratch/kocevski/159033/expmap_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.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/159033/ltcube_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.fits
.....................!
real 191.07
user 185.87
sys 4.75

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/159033/ft1_filtered_4FGL_J2049.9+1002_daily_bin505.fits scfile=/scratch/kocevski/159033/ft2_4FGL_J2049.9+1002_daily_bin505.fits outfile=/scratch/kocevski/159033/cmap_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159033/ft1_filtered_4FGL_J2049.9+1002_daily_bin505.fits scfile=/scratch/kocevski/159033/ft2_4FGL_J2049.9+1002_daily_bin505.fits outfile=/scratch/kocevski/159033/cmap_HighResolution_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=312.478 yref=10.0407 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1468.84718265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1466.63625481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3830       1.0000         .10000E-03   10000.    
     2 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86375E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11713E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19156E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .11224E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    84.646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21278E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.518       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68871E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25863E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14343E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4011       1.0000         .10000E-03   10000.    
    17 'norm      '    .90911       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32953E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.136       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.684       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .13579       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66968       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1466.635     FROM MIGRAD    STATUS=CONVERGED    206 CALLS      487 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3830        1.0067         .0000         .0000    
   2  norm          .10000E-03    .20571       -.86015E-05** at limit **
   3  Prefactor     .10000E-03    .21028        .14718E-04** at limit **
   4  Prefactor     .10000E-03    .20571       -.21436E-04** at limit **
   5  norm          .10000E-03    .20571       -.48474E-05** at limit **
   6  Prefactor     .10000E-03    .25672        .30890E-04** at limit **
   7  norm          .10000E-03    .20571        .10790E-04** at limit **
   8  norm          85.418        1.0045       -.81085E-04   -.69091E-03
   9  Prefactor     .10001E-03    .25433       -.55358E-04** at limit **
  10  Prefactor     .10000E-03    .20571       -.27541E-05** at limit **
  11  Prefactor     .47028        .45750        .34125E-03   -.26028E-02
  12  Prefactor     66.997        1.0036        .13436E-04    .32982E-04
  13  Prefactor     .10000E-03    .21916        .45575E-04** at limit **
  14  Prefactor     .10000E-03    .24959       -.32153E-04** at limit **
  15  Prefactor     .10000E-03    .26280        .28557E-04** at limit **
  16  Prefactor     .11752        .12630        .33870E-03    .24195E-02
  17  norm          .93871        1.2439       -.36832E-04    .63628E-05
  18  Prefactor     .10000E-03    .21098        .67418E-05** at limit **
  19  Prefactor     30.217        1.0015       -.75680E-06   -.24080E-04
  20  Prefactor     19.804        1.0034       -.19833E-04   -.64672E-04
  21  Normalizat    .12722        .36014        .25609E-03   -.15474E-05
  22  Prefactor     .67107        1.0202       -.54176E-05    .10061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.38296
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 85.4179
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.470285
  Prefactor  = 66.9974
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.117523
  norm       = 0.938711
  Prefactor  = 0.0001
  Prefactor  = 30.2165
  Prefactor  = 19.8044
  Normalizat = 0.127219
  Prefactor  = 0.671072
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1466.635     FROM HESSE     STATUS=FAILED        11 CALLS      498 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     537.92        533.48         .0000       -1.5289    
   2  norm          .10000E-03    .20571       -.86015E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .21028        .14718E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .20571       -.21436E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .20571       -.48474E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .25672        .30890E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .20571        .10790E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          85.418        1.0045       -.81085E-04   -1.3857    
   9  Prefactor     .10001E-03    .25433       -.55358E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20571       -.27541E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .47028        .45750        .34125E-03   -1.5845    
  12  Prefactor     66.997        1.0036        .13436E-04   -1.4069    
  13  Prefactor     .10000E-03    .21916        .45575E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .24959       -.32153E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .26280        .28557E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11752        .12630        .33870E-03   -1.5639    
  17  norm          .93871        1.2439       -.36832E-04   -1.5514    
  18  Prefactor     .10000E-03    .21098        .67418E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.217        1.0015       -.75680E-06   -1.4608    
  20  Prefactor     19.804        1.0034       -.19833E-04   -1.4818    
  21  Normalizat    .12722        .36014        .25609E-03   -1.3537    
  22  Prefactor     .67107        1.0202       -.54176E-05   -1.0467    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.27907e-10
Minuit parameter uncertainties:
  1  1.00666
  2  1.84963e-06
  3  1.29946e-07
  4  4.267e-07
  5  4.02713e-07
  6  1.1229e-06
  7  1.43987e-07
  8  1.00453
  9  8.78217e-05
  10  3.49709e-07
  11  0.457503
  12  1.0036
  13  2.55026e-05
  14  4.49738e-06
  15  4.42965e-05
  16  0.126295
  17  1.24396
  18  1.59929e-07
  19  1.00146
  20  1.00338
  21  0.367232
  22  1.05078
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1466.63482004

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  1.440e-07  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:  6.711e-01  1.051e+00  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.272e-01  3.672e-01  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.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159033/likelihoodResults_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.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) = 1466.63503122
delta logL = -0.000211174232618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1466.63482244
delta logL = -2.39495625465e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10313E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3894       1.0000          .0000       5.0000    
     3 'Normalizat'    .12723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67107       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=   1466.635     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      287 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    872.77        .12703E-01** at limit **
   2  alpha         2.2466        3.1269        .18021        .58354E-08
   3  Normalizat    .12722        .79472E-01    .88740E-02   -.10185E-03
   4  Prefactor     .67107        .26534E-01    .13525E-03   -.73504E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.24664
  Normalizat = 0.127216
  Prefactor  = 0.671071
 **********
 **   18 **HESSE 
 **********

 FCN=   1466.635     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.921        .17861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2466        3.5417        .72085E-02   -.10152    
   3  Normalizat    .12722        .77731        .35496E-03   -1.3537    
   4  Prefactor     .67107        .20512        .27049E-04   -1.0467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54087e-10
Minuit parameter uncertainties:
  1  9.97696e-05
  2  619.06
  3  0.615684
  4  0.205352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159033': 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) = 1466.63482001
delta logL = 2.88721366815e-08

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  9.977e-05  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.247e+00  6.191e+02  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:  6.711e-01  2.054e-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.272e-01  6.157e-01  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/159033/cmap_HighResolution_370224001_370483201_4FGL_J2049.9+1002_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-04', job_status='DONE', photon_flux_upper_limit='4.76e-07', time_completed='2021-09-25 18:47:18.498159', job_id='159033', GAL2='0.67', fit_tolerance='1e-08', EG2='0.13', EG='0.13', time_epoch_completed='1632620838.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.67', dlogl='2.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='505' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 159033: <4FGL_J2049.9+1002_daily_bin505> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin505> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 18:35:29 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:36:08 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:36:08 2021
Terminated at Sat Sep 25 18:47:18 2021
Results reported at Sat Sep 25 18:47:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin505 312.478 10.0407 370224001 370483201 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 :                                   433.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            709 sec.

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

