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


Performing analysis on: 4FGL_J0748.0-1638_daily_bin1113
RA = 117.006, Dec = -16.6437
tmin = 527817601, tmax = 528076801
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='890541', job_status='RUN', time_executed='2021-08-28 13:36:03.195889', time_epoch_executed='1630182963.2' WHERE source_name='4FGL J0748.0-1638' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890541/ft1_4FGL_J0748.0-1638_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890541/ft1_4FGL_J0748.0-1638_daily_bin1113.fits outfile=/scratch/kocevski/890541/ft1_filteredMKT_4FGL_J0748.0-1638_daily_bin1113.fits ra=117.006 dec=-16.6437 rad=12.0 tmin=527817601.0 tmax=528076801.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 4.04
user 3.28
sys 0.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.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/890541/ft1_filteredMKT_4FGL_J0748.0-1638_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.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.69
user 0.33
sys 0.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/890541/ltcube_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.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/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits
.....................!
real 11.84
user 11.28
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/890541/ltcube_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.fits outfile=/scratch/kocevski/890541/expmap_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.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/890541/ltcube_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.fits
.....................!
real 191.48
user 185.78
sys 4.40

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
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J0748.0-1638 @ 117.006 -16.6437

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits scfile=/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits outfile=/scratch/kocevski/890541/cmap_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.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=117.006 yref=-16.6437 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.66
user 0.38
sys 0.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits scfile=/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits outfile=/scratch/kocevski/890541/cmap_HighResolution_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.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=117.006 yref=-16.6437 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.70
user 0.38
sys 0.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/890541/Model_4FGL_J0748.0-1638_daily_bin1113.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits.....................!
real 322.77
user 319.57
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits', '/scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits', expMap='/scratch/kocevski/890541/expmap_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.fits', expCube='/scratch/kocevski/890541/ltcube_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/890541/Model_4FGL_J0748.0-1638_daily_bin1113.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0748.0-1638'

4FGL J0748.0-1638
   Spectrum: LogParabola
249         norm:  3.899e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.538e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  1.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/890541/ft1_filtered_4FGL_J0748.0-1638_daily_bin1113.fits
Spacecraft file(s): /scratch/kocevski/890541/ft2_4FGL_J0748.0-1638_daily_bin1113.fits
Exposure map: /scratch/kocevski/890541/expmap_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.fits
Exposure cube: /scratch/kocevski/890541/ltcube_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/890541/Model_4FGL_J0748.0-1638_daily_bin1113.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) = 23481.6007403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6012       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.255       1.0000         .10000E-03   10000.    
     5 'norm      '    .10519E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8220       1.0000         .10000E-03   10000.    
     7 'norm      '    .83589       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1686       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9275       1.0000         .10000E-03   10000.    
    14 'norm      '    13.699       1.0000         .10000E-03   10000.    
    15 'norm      '    12.712       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1267       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1191       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99808       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23481.56     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1521 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6014        2.2823        .33998E-06   -.64564E-04
   2  Prefactor     .10000E-03    3.8362        .48152E-06** at limit **
   3  norm          4.2487        1.2406       -.14501E-08   -.14631E-03
   4  Prefactor     13.254        11.362       -.25194E-06   -.17480E-04
   5  norm          .10000E-03    21.938       -.85330E-07** at limit **
   6  norm          9.8222        7.1937        .23017E-06   -.50644E-03
   7  norm          .83614        1.6781        .23283E-06   -.83661E-03
   8  norm          .10000E-03    10.336        .53125E-06** at limit **
   9  norm          .10000E-03    1.6677       -.11626E-06** at limit **
  10  Prefactor     .10000E-03    1.8791        .67288E-07** at limit **
  11  norm          1.1682        .84271       -.63001E-07   -.29069E-03
  12  Prefactor     10.500        10.046        .38927E-06    .16055E-04
  13  Prefactor     1.9269        3.2610       -.27453E-06   -.34297E-03
  14  norm          13.698        17.714       -.15629E-05   -.41882E-04
  15  norm          12.711        12.737       -.89439E-06   -.32535E-04
  16  norm          3.1265        2.3934       -.47389E-06   -.23178E-03
  17  Normalizat    1.1191        .19283        .35625E-06   -.15827E-04
  18  Prefactor     .99807        .35341E-01   -.59513E-07    .25776E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60135
  Prefactor  = 0.0001
  norm       = 4.24865
  Prefactor  = 13.2536
  norm       = 0.0001
  norm       = 9.82221
  norm       = 0.836145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1682
  Prefactor  = 10.5004
  Prefactor  = 1.92688
  norm       = 13.6976
  norm       = 12.7114
  norm       = 3.12652
  Normalizat = 1.11913
  Prefactor  = 0.99807
 **********
 **   18 **HESSE 
 **********

 FCN=   23481.56     FROM HESSE     STATUS=OK           252 CALLS     1773 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6014        2.2817        .17919E-03   -1.5328    
   2  Prefactor     .10000E-03    3.8447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2487        1.2400        .88695E-04   -1.5296    
   4  Prefactor     13.254        11.366        .11002E-03   -1.4980    
   5  norm          .10000E-03    22.919        .41458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8222        7.9162        .63931E-03   -1.5081    
   7  norm          .83614        2.2916        .37373E-03   -1.5525    
   8  norm          .10000E-03    10.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1682        .83763        .11368E-03   -1.5492    
  12  Prefactor     10.500        10.051        .12366E-03   -1.5060    
  13  Prefactor     1.9269        3.3772        .29921E-03   -1.5430    
  14  norm          13.698        17.759        .10822E-03   -1.4968    
  15  norm          12.711        12.740        .11235E-03   -1.4995    
  16  norm          3.1265        2.4070        .20228E-03   -1.5354    
  17  Normalizat    1.1191        .20009        .63153E-03   -.89140    
  18  Prefactor     .99807        .36540E-01    .12781E-03   -.92794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9184e-10
Minuit parameter uncertainties:
  1  2.28173
  2  4.88746e-06
  3  1.24006
  4  11.3679
  5  4.17403e-06
  6  7.91701
  7  2.29186
  8  1.00983e-05
  9  1.84738e-07
  10  2.86457e-07
  11  0.837635
  12  10.0523
  13  3.37751
  14  17.7657
  15  12.7431
  16  2.40704
  17  0.200225
  18  0.0365407
Done.

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

Extracting fit parameters...

4FGL J0748.0-1638
   Spectrum: LogParabola
249         norm:  9.822e+00  7.917e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.538e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
251         beta:  1.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.981e-01  3.654e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.119e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 117.006 -16.644
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.19e-05

TS (Fixed Index): 2.11
Ra Dec: 117.006 -16.644
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890541/likelihoodResults_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.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) = 23481.4982744
delta logL = 0.0579249492221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23481.4908763
delta logL = 0.065323036426

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23481.49     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      242 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.803        305.84        .30469E-02    .83775E-04
   2  alpha         2.2886        2.5309        .41338        .29583E-04
   3  Normalizat    1.1258        .14996        .14179        .81942E-04
   4  Prefactor     .99767        .22776E-01    .28925E-01   -.38563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8027
  alpha      = 2.28861
  Normalizat = 1.12579
  Prefactor  = 0.997673
 **********
 **   18 **HESSE 
 **********

 FCN=   23481.49     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.803        8.8606        .12187E-03   -1.5050    
   2  alpha         2.2886        .67099        .33203E-01   -.84656E-01
   3  Normalizat    1.1258        .18636        .62995E-03   -.88928    
   4  Prefactor     .99767        .35953E-01    .12783E-03   -.92807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63338e-12
Minuit parameter uncertainties:
  1  8.86172
  2  0.679378
  3  0.186471
  4  0.0359534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890541': 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) = 23481.4908754
delta logL = 0.0653240131833

Extracting fit parameters...

4FGL J0748.0-1638
   Spectrum: LogParabola
249         norm:  1.080e+01  8.862e+00  1.000e-04  1.000e+04 ( 1.000e-12)
250        alpha:  2.289e+00  6.794e-01  0.000e+00  5.000e+00 ( 1.000e+00)
251         beta:  1.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
252           Eb:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.977e-01  3.595e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.126e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 117.006 -16.644
Photon Index (Free Index): 2.29 +/- 0.68
Photon Flux (Free Index): 4.44e-08 +/- 4.27e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.26e-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/890541/cmap_HighResolution_527817601_528076801_4FGL_J0748.0-1638_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='1.55e-05', photon_flux_error='4.23e-08', dlogl='6.53e-02', energy_flux='1.48e-05', photon_flux2='4.44e-08', job_status='DONE', time_completed='2021-08-28 13:57:53.122023', photon_index_error2='0.68', photon_index2='2.29', ts='2.11', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.26e-05', EG='1.12', time_epoch_completed='1630184273.12', return_code='0', job_id='890541', GAL2='1.00', EG2='1.13', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.27e-08', ts2='2.24', photon_index='2.54' WHERE bin_id='1113' AND source_name='4FGL J0748.0-1638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 13:57:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 890541: <4FGL_J0748.0-1638_daily_bin1113> in cluster <slac> Done

Job <4FGL_J0748.0-1638_daily_bin1113> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 13:35:36 2021
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 13:35:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 13:35:44 2021
Terminated at Sat Aug 28 13:57:53 2021
Results reported at Sat Aug 28 13:57:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.0-1638_daily_bin1113 117.006 -16.6437 527817601 528076801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0748.0-1638 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1303.13 sec.
    Max Memory :                                 643 MB
    Average Memory :                             383.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2932 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1329 sec.
    Turnaround time :                            1337 sec.

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

