/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 168 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1838.8+4802_daily_bin300
RA = 279.714, Dec = 48.0412
tmin = 317088001, tmax = 317347201
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='176164', job_status='RUN', time_executed='2021-09-21 03:38:19.600149', time_epoch_executed='1632220699.6' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176164/ft1_4FGL_J1838.8+4802_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176164/ft1_4FGL_J1838.8+4802_daily_bin300.fits outfile=/scratch/kocevski/176164/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin300.fits ra=279.714 dec=48.0412 rad=12.0 tmin=317088001.0 tmax=317347201.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.90
user 3.66
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.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/176164/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin300.fits evtable="EVENTS" outfile="/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/176164/ltcube_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.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/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits
.....................!
real 14.15
user 13.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/176164/ltcube_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.fits outfile=/scratch/kocevski/176164/expmap_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.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/176164/ltcube_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.fits
.....................!
real 190.95
user 185.47
sys 4.71

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 212 point sources and 3 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 J1838.8+4802 @ 279.714 48.0412

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits scfile=/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits outfile=/scratch/kocevski/176164/cmap_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.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=279.714 yref=48.0412 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits scfile=/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits outfile=/scratch/kocevski/176164/cmap_HighResolution_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.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=279.714 yref=48.0412 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176164/Model_4FGL_J1838.8+4802_daily_bin300.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 Cocoon
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits.....................!
real 93.58
user 91.74
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits', '/scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits', expMap='/scratch/kocevski/176164/expmap_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.fits', expCube='/scratch/kocevski/176164/ltcube_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/176164/Model_4FGL_J1838.8+4802_daily_bin300.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1838.8+4802'

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  8.223e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
374        alpha:  1.764e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  4.590e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/176164/ft1_filtered_4FGL_J1838.8+4802_daily_bin300.fits
Spacecraft file(s): /scratch/kocevski/176164/ft2_4FGL_J1838.8+4802_daily_bin300.fits
Exposure map: /scratch/kocevski/176164/expmap_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.fits
Exposure cube: /scratch/kocevski/176164/ltcube_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/176164/Model_4FGL_J1838.8+4802_daily_bin300.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) = 9435.00055797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9840       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.950       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2605       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6510       1.0000         .10000E-03   10000.    
    11 'norm      '    .43072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.052       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2460       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6553       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .86967       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9434.998     FROM MIGRAD    STATUS=CONVERGED    350 CALLS     1737 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9841        5.2399       -.19706E-06   -.11325E-03
   2  norm          .10000E-03    2.1071        .15218E-07** at limit **
   3  Prefactor     28.513        36.359        .47690E-05    .24168E-03
   4  Prefactor     .10000E-03    1.6218        .22430E-07** at limit **
   5  Prefactor     .10000E-03    16.383       -.10669E-05** at limit **
   6  Prefactor     28.954        32.635       -.19410E-05   -.46702E-04
   7  Prefactor     .10000E-03    3.9533        .44701E-07** at limit **
   8  Prefactor     .10000E-03    12.569        .35507E-06** at limit **
   9  norm          5.2606        4.8440        .80471E-06    .12300E-02
  10  Prefactor     4.6499        16.943        .41872E-06    .10236E-03
  11  norm          .10015E-03    17.633       -.77219E-05** at limit **
  12  Prefactor     41.046        42.150        .27284E-05    .28656E-03
  13  norm          3.2463        4.2886        .12767E-05    .14987E-02
  14  norm          6.5384        6.6231       -.71571E-07   -.27456E-04
  15  Prefactor     .10000E-03    1.5932        .48388E-07** at limit **
  16  norm          3.6552        2.3848        .12571E-07    .63966E-04
  17  Normalizat    .86963        .21149       -.49143E-06    .20606E-03
  18  Prefactor     1.0986        .99309E-01   -.16997E-06    .17415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.98407
  norm       = 0.0001
  Prefactor  = 28.5129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.26061
  Prefactor  = 4.64987
  norm       = 0.000100146
  Prefactor  = 41.046
  norm       = 3.24627
  norm       = 6.5384
  Prefactor  = 0.0001
  norm       = 3.65524
  Normalizat = 0.869629
  Prefactor  = 1.09859
 **********
 **   18 **HESSE 
 **********

 FCN=   9434.998     FROM HESSE     STATUS=OK           244 CALLS     1981 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9841        5.2453        .14190E-03   -1.5143    
   2  norm          .10000E-03    2.1203        .13762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.513        36.803        .75017E-04   -1.4640    
   4  Prefactor     .10000E-03    1.6302        .12075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.954        32.770        .74461E-04   -1.4631    
   7  Prefactor     .10000E-03    3.9721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2606        4.9941        .87624E-03   -1.5249    
  10  Prefactor     4.6499        17.007        .18662E-03   -1.5277    
  11  norm          .10015E-03    29.100        .39547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.046        42.418        .62563E-04   -1.4426    
  13  norm          3.2463        4.5699        .11240E-02   -1.5348    
  14  norm          6.5384        6.6270        .15695E-03   -1.5197    
  15  Prefactor     .10000E-03    1.6670        .23911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6552        2.3852        .11771E-03   -1.5326    
  17  Normalizat    .86963        .24129        .39148E-03   -.97536    
  18  Prefactor     1.0986        .11408        .17287E-03   -.89512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55342e-09
Minuit parameter uncertainties:
  1  5.24562
  2  2.73271e-06
  3  36.8323
  4  2.96371e-06
  5  0.000107746
  6  32.7901
  7  4.96318e-06
  8  3.47047e-05
  9  4.99452
  10  17.0244
  11  0.00411919
  12  42.4489
  13  4.57041
  14  6.62775
  15  5.53458e-06
  16  2.38525
  17  0.24159
  18  0.114103
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  6.538e+00  6.628e+00  1.000e-04  1.000e+04 ( 1.000e-13)
374        alpha:  1.764e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  4.590e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.099e+00  1.141e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  8.696e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 279.714 48.041
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.06e-08 +/- 1.07e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.34e-05

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) = 9434.89211491
delta logL = 0.105704565733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9434.89197031
delta logL = 0.105849165182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4940       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4256       1.0000          .0000       5.0000    
     3 'Normalizat'    .87292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0982       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9434.892     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      202 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4525        10.648        .39372E-02   -.97730E-04
   2  alpha         1.4199        .91033        .47446       -.23051E-04
   3  Normalizat    .87278        .20115        .88248E-01    .45880E-04
   4  Prefactor     1.0983        .98593E-01    .37657E-01   -.31137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.45253
  alpha      = 1.41994
  Normalizat = 0.872781
  Prefactor  = 1.09826
 **********
 **   18 **HESSE 
 **********

 FCN=   9434.892     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4525        6.7853        .15749E-03   -1.5200    
   2  alpha         1.4199        .70336        .24314E-01   -.44674    
   3  Normalizat    .87278        .22730        .39082E-03   -.97423    
   4  Prefactor     1.0983        .11241        .17289E-03   -.89522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6824e-10
Minuit parameter uncertainties:
  1  6.78608
  2  0.715298
  3  0.227546
  4  0.112431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176164': 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) = 9434.89193094
delta logL = 0.105888536313

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  6.453e+00  6.786e+00  1.000e-04  1.000e+04 ( 1.000e-13)
374        alpha:  1.420e+00  7.153e-01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  4.590e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  1.098e+00  1.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  8.728e-01  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 279.714 48.041
Photon Index (Free Index): 1.42 +/- 0.72
Photon Flux (Free Index): 6.98e-09 +/- 9.19e-09
Energy Flux (Free Index): 2.36e-05 +/- 3.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/176164/cmap_HighResolution_317088001_317347201_4FGL_J1838.8+4802_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-08', energy_flux2='2.36e-05', photon_flux_error='1.07e-08', dlogl='1.06e-01', energy_flux='1.32e-05', photon_flux2='6.98e-09', job_status='DONE', time_completed='2021-09-21 03:50:37.054768', photon_index_error2='0.72', photon_index2='1.42', ts='4.48', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='3.95e-05', EG='0.87', time_epoch_completed='1632221437.05', return_code='0', job_id='176164', GAL2='1.10', EG2='0.87', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='9.19e-09', ts2='4.69', photon_index='1.76' WHERE bin_id='300' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 03:50:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 176164: <4FGL_J1838.8+4802_daily_bin300> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin300> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 21 03:35:12 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 03:35:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 03:35:22 2021
Terminated at Tue Sep 21 03:50:37 2021
Results reported at Tue Sep 21 03:50:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin300 279.714 48.0412 317088001 317347201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1838.8+4802 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.52 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             288.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            925 sec.

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

