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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin635
RA = 312.478, Dec = 10.0407
tmin = 403920001, tmax = 404179201
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='159241', job_status='RUN', time_executed='2021-09-25 18:39:06.003273', time_epoch_executed='1632620346.0' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159241

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159241/ft1_4FGL_J2049.9+1002_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159241/ft2_4FGL_J2049.9+1002_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159241/ft1_4FGL_J2049.9+1002_daily_bin635.fits outfile=/scratch/kocevski/159241/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin635.fits ra=312.478 dec=10.0407 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.11
user 9.58
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159241/ft2_4FGL_J2049.9+1002_daily_bin635.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/159241/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/159241/ft1_filtered_4FGL_J2049.9+1002_daily_bin635.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/159241/ft1_filtered_4FGL_J2049.9+1002_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/159241/ft2_4FGL_J2049.9+1002_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/159241/ltcube_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.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/159241/ft2_4FGL_J2049.9+1002_daily_bin635.fits
.....................!
real 10.25
user 9.82
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159241/ft1_filtered_4FGL_J2049.9+1002_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/159241/ft2_4FGL_J2049.9+1002_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/159241/ltcube_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.fits outfile=/scratch/kocevski/159241/expmap_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.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/159241/ltcube_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.fits
.....................!
real 194.06
user 187.03
sys 5.86

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/159241/ft1_filtered_4FGL_J2049.9+1002_daily_bin635.fits scfile=/scratch/kocevski/159241/ft2_4FGL_J2049.9+1002_daily_bin635.fits outfile=/scratch/kocevski/159241/cmap_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=312.478 yref=10.0407 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159241/ft1_filtered_4FGL_J2049.9+1002_daily_bin635.fits scfile=/scratch/kocevski/159241/ft2_4FGL_J2049.9+1002_daily_bin635.fits outfile=/scratch/kocevski/159241/cmap_HighResolution_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.267       1.0000         .10000E-03   10000.    
     5 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.286       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3664       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    200.71       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70980       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98718       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=   5137.616     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2394 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.417       -.51343E-07** at limit **
   2  norm          .10000E-03    5.0684       -.45649E-08** at limit **
   3  Prefactor     .10000E-03    7.5740       -.38329E-07** at limit **
   4  Prefactor     41.265        22.876        .49650E-06    .14855E-03
   5  norm          .10000E-03    .47455       -.19069E-06** at limit **
   6  Prefactor     .10000E-03    24.013       -.14344E-06** at limit **
   7  norm          .10000E-03    3.3084        .37339E-07** at limit **
   8  norm          .10000E-03    35.390        .15272E-05** at limit **
   9  Prefactor     .10000E-03    39.170       -.11222E-05** at limit **
  10  Prefactor     41.010        27.111        .57374E-06    .11247E-04
  11  Prefactor     13.142        51.687        .27830E-05    .16131E-05
  12  Prefactor     21.275        20.424        .42524E-06    .13359E-04
  13  Prefactor     1.1813        153.67        .12822E-04   -.46703E-05
  14  Prefactor     .10000E-03    55.492        .35422E-05** at limit **
  15  Prefactor     .10000E-03    23.983       -.10995E-06** at limit **
  16  Prefactor     200.54        166.47        .81961E-05    .67942E-05
  17  norm          2.9443        5.1128        .17244E-06    .11241E-04
  18  Prefactor     .10000E-03    14.081        .91889E-07** at limit **
  19  Prefactor     8.0416        9.2995        .26689E-06   -.11796E-05
  20  Prefactor     .10000E-03    6.7664       -.21687E-07** at limit **
  21  Normalizat    .71029        .38714       -.29997E-05    .18537E-04
  22  Prefactor     .98710        .11978        .28590E-06    .25141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.2645
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0102
  Prefactor  = 13.142
  Prefactor  = 21.2748
  Prefactor  = 1.18126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 200.542
  norm       = 2.94431
  Prefactor  = 0.0001
  Prefactor  = 8.04164
  Prefactor  = 0.0001
  Normalizat = 0.710288
  Prefactor  = 0.987099
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.616     FROM HESSE     STATUS=OK           340 CALLS     2734 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.1008        .15760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.265        21.537        .62400E-04   -1.4422    
   5  norm          .10000E-03    .73409        .89044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.3110        .12732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    35.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.010        27.107        .62581E-04   -1.4426    
  11  Prefactor     13.142        51.695        .11039E-03   -1.4983    
  12  Prefactor     21.275        20.420        .86816E-04   -1.4785    
  13  Prefactor     1.1813        154.73        .18662E-02   -1.5491    
  14  Prefactor     .10000E-03    56.547        .21118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     200.54        166.50        .14261E-03   -1.2866    
  17  norm          2.9443        5.0989        .20728E-03   -1.5365    
  18  Prefactor     .10000E-03    14.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0416        9.3159        .14136E-03   -1.5141    
  20  Prefactor     .10000E-03    6.8001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71029        .41876        .49362E-03   -1.0349    
  22  Prefactor     .98710        .13154        .14545E-03   -.93161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28232e-11
Minuit parameter uncertainties:
  1  6.77667e-06
  2  2.99613e-07
  3  1.36054e-06
  4  21.5407
  5  3.67765e-06
  6  2.15758e-06
  7  9.19272e-07
  8  1.54844e-05
  9  2.92055e-05
  10  27.1148
  11  51.8716
  12  20.4265
  13  27.11
  14  4.18955e-05
  15  3.02637e-06
  16  166.894
  17  5.09961
  18  1.15417e-05
  19  9.31762
  20  1.4193e-06
  21  0.420661
  22  0.131584
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  9.193e-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:  9.871e-01  1.316e-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:  7.103e-01  4.207e-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: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159241/likelihoodResults_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.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) = 5137.61708936
delta logL = -0.00143457533977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5137.61565477
delta logL = 2.1320374799e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3883       1.0000          .0000       5.0000    
     3 'Normalizat'    .71029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98710       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=   5137.616     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.127        .12751E-02** at limit **
   2  alpha         2.0977        3.5415        .16481       -.19797E-07
   3  Normalizat    .71029        .36390        .49358E-03   -.10964E-04
   4  Prefactor     .98710        .12625        .14545E-03   -.36579E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09773
  Normalizat = 0.710287
  Prefactor  = 0.987099
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.616     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4373        .25501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0977        3.0554        .65926E-02   -.16161    
   3  Normalizat    .71029        .36404        .19743E-04   -1.0349    
   4  Prefactor     .98710        .12630        .58181E-05   -.93161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66925e-11
Minuit parameter uncertainties:
  1  4.40081e-05
  2  277.951
  3  0.365285
  4  0.126336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159241': 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) = 5137.61565423
delta logL = 5.54030521016e-07

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.000e-04  4.401e-05  1.000e-04  1.000e+04 ( 1.000e-12)
408        alpha:  2.098e+00  2.780e+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:  9.871e-01  1.263e-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:  7.103e-01  3.653e-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/159241/cmap_HighResolution_403920001_404179201_4FGL_J2049.9+1002_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-25 18:51:42.815492', job_id='159241', GAL2='0.99', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632621102.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='635' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 159241: <4FGL_J2049.9+1002_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin635 312.478 10.0407 403920001 404179201 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 :                                   750.12 sec.
    Max Memory :                                 1227 MB
    Average Memory :                             345.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            956 sec.

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

