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


Performing analysis on: 4FGL_J0448.7-2116_daily_bin1552
RA = 72.1949, Dec = -21.2813
tmin = 641606401, tmax = 641865601
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='755146', job_status='RUN', time_executed='2021-08-21 08:57:59.342226', time_epoch_executed='1629561479.34' WHERE source_name='4FGL J0448.7-2116' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755146

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755146/ft1_4FGL_J0448.7-2116_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755146/ft1_4FGL_J0448.7-2116_daily_bin1552.fits outfile=/scratch/kocevski/755146/ft1_filteredMKT_4FGL_J0448.7-2116_daily_bin1552.fits ra=72.1949 dec=-21.2813 rad=12.0 tmin=641606401.0 tmax=641865601.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 5.40
user 2.34
sys 3.03

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.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/755146/ft1_filteredMKT_4FGL_J0448.7-2116_daily_bin1552.fits evtable="EVENTS" outfile="/scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.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 3.37
user 0.34
sys 2.98

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/755146/ltcube_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.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/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits
.....................!
real 16.92
user 13.07
sys 3.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/755146/ltcube_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.fits outfile=/scratch/kocevski/755146/expmap_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.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/755146/ltcube_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.fits
.....................!
real 194.51
user 186.04
sys 8.10

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

Setting source of interest to:
4FGL J0448.7-2116 @ 72.1949 -21.2813

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits scfile=/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits outfile=/scratch/kocevski/755146/cmap_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.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=72.1949 yref=-21.2813 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 3.11
user 0.38
sys 2.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits scfile=/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits outfile=/scratch/kocevski/755146/cmap_HighResolution_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.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=72.1949 yref=-21.2813 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 3.33
user 0.39
sys 2.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755146/Model_4FGL_J0448.7-2116_daily_bin1552.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/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits.....................!
real 123.52
user 118.61
sys 4.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits', '/scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits', expMap='/scratch/kocevski/755146/expmap_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.fits', expCube='/scratch/kocevski/755146/ltcube_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755146/Model_4FGL_J0448.7-2116_daily_bin1552.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0448.7-2116'

4FGL J0448.7-2116
   Spectrum: PowerLaw
275    Prefactor:  7.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  2.538e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  7.295e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/755146/ft1_filtered_4FGL_J0448.7-2116_daily_bin1552.fits
Spacecraft file(s): /scratch/kocevski/755146/ft2_4FGL_J0448.7-2116_daily_bin1552.fits
Exposure map: /scratch/kocevski/755146/expmap_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.fits
Exposure cube: /scratch/kocevski/755146/ltcube_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755146/Model_4FGL_J0448.7-2116_daily_bin1552.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) = 9878.19574874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73668E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .83066       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .35158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0241       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    51.221       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.011       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9878.195     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1762 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0521        .30068E-06** at limit **
   2  norm          .10000E-03    3.3484       -.37314E-07** at limit **
   3  Prefactor     .76688        40.028       -.10700E-04    .29655E-04
   4  Prefactor     1.5484        3.1859       -.15898E-05    .13532E-03
   5  Prefactor     .10000E-03    3.9934       -.37749E-07** at limit **
   6  Prefactor     .10000E-03    30.242       -.15870E-05** at limit **
   7  norm          .10000E-03    76.927       -.28583E-06** at limit **
   8  Prefactor     .10000E-03    1.0707       -.14071E-07** at limit **
   9  Prefactor     .10000E-03    16.306       -.52664E-06** at limit **
  10  norm          .34974        1.4972       -.12224E-05    .26024E-04
  11  Prefactor     .10000E-03    1.5469       -.11169E-06** at limit **
  12  norm          1.0241        .19245        .48228E-08    .50682E-03
  13  Prefactor     11.326        34.712        .21187E-05    .45203E-04
  14  Prefactor     .10000E-03    12.011       -.35214E-06** at limit **
  15  norm          51.242        51.162       -.26054E-05   -.52033E-04
  16  Prefactor     10.983        26.708        .19705E-05    .49916E-04
  17  Normalizat    1.0979        .15602        .46664E-06    .28229E-03
  18  Prefactor     1.0426        .11537        .56507E-06    .38520E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.766883
  Prefactor  = 1.54838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.349742
  Prefactor  = 0.0001
  norm       = 1.02408
  Prefactor  = 11.3263
  Prefactor  = 0.0001
  norm       = 51.242
  Prefactor  = 10.9832
  Normalizat = 1.0979
  Prefactor  = 1.04258
 **********
 **   18 **HESSE 
 **********

 FCN=   9878.195     FROM HESSE     STATUS=OK           248 CALLS     2010 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0038        .19453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.3498        .17762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .76688        42.315        .56383E-02   -1.5533    
   4  Prefactor     1.5484        3.2460        .24490E-03   -1.5459    
   5  Prefactor     .10000E-03    4.0039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    76.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0755        .10043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .34974        5.2110        .19799E-02   -1.5590    
  11  Prefactor     .10000E-03    1.5710        .12069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0241        .19251        .17908E-04   -1.5506    
  13  Prefactor     11.326        35.155        .11894E-03   -1.5035    
  14  Prefactor     .10000E-03    12.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          51.242        51.561        .56037E-04   -1.4275    
  16  Prefactor     10.983        26.983        .12073E-03   -1.5045    
  17  Normalizat    1.0979        .17913        .26851E-03   -.89819    
  18  Prefactor     1.0426        .13235        .21328E-03   -.91323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97752e-10
Minuit parameter uncertainties:
  1  0.000141062
  2  8.08202e-07
  3  11.4008
  4  3.2464
  5  2.1679e-06
  6  9.5263e-05
  7  4.39101e-05
  8  1.62151e-06
  9  3.0581e-05
  10  2.6999
  11  1.65627e-06
  12  0.192508
  13  35.219
  14  9.46577e-06
  15  51.6061
  16  27.0133
  17  0.179234
  18  0.132394
Done.

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

Extracting fit parameters...

4FGL J0448.7-2116
   Spectrum: PowerLaw
275    Prefactor:  1.000e-04  3.058e-05  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  2.538e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  7.295e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.043e+00  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.098e+00  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 72.195 -21.281
Photon Flux Upper Limit: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755146/likelihoodResults_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.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): 102
logL (Free Index) = 9878.19523955
delta logL = -0.000291463284157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9878.19495011
delta logL = -2.02321825782e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2777       1.0000          .0000       10.000    
     3 'Normalizat'    1.0979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9878.195     FROM MIGRAD    STATUS=FAILED        92 CALLS      276 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11373E-03    8.1504        .18142E-01** at limit **
   2  Index         2.8610        6.3878        .50000        .11157E-04
   3  Normalizat    1.0979        .29497E-02    .26851E-03    .32009E-04
   4  Prefactor     1.0426        .23026E-02    .21328E-03    .20042E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9878.195     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      369 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11373E-03    8.1504        .82679E-03** at limit **
   2  Index         2.8610        6.3878        .51384E-01    .11157E-04
   3  Normalizat    1.0979        .29497E-02    .33410E-04    .32009E-04
   4  Prefactor     1.0426        .23026E-02    .12590E-04    .20042E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9878.195     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      449 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    208.85        .72244E-02** at limit **
   2  Index         2.2964        8.4337        .50000       -.37699E-07
   3  Normalizat    1.0979        .13702E-01    .21481E-05   -.11855E-03
   4  Prefactor     1.0426        .10701E-01    .17063E-05   -.14925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29637
  Normalizat = 1.0979
  Prefactor  = 1.04258
 **********
 **   18 **HESSE 
 **********

 FCN=   9878.195     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      478 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1053.8        .14449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2964        6.0887        .50000       -.57130    
   3  Normalizat    1.0979        .33414E-01    .42962E-06   -.89819    
   4  Prefactor     1.0426        .26064E-01    .34125E-06   -.91323    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49745e-09
Minuit parameter uncertainties:
  1  0.00105947
  2  2092.86
  3  0.0334149
  4  0.0260641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755146': 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): 102
logL (Free Index) = 9878.19494798
delta logL = 1.11338522402e-07

Extracting fit parameters...

4FGL J0448.7-2116
   Spectrum: PowerLaw
275    Prefactor:  1.000e-04  1.059e-03  1.000e-04  1.000e+04 ( 1.000e-13)
276        Index:  2.296e+00  2.093e+03  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  7.295e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.043e+00  2.606e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.098e+00  3.341e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 72.195 -21.281

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/755146/cmap_HighResolution_641606401_641865601_4FGL_J0448.7-2116_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-08-21 09:11:15.305274', job_id='755146', GAL2='1.04', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629562275.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1552' AND source_name='4FGL J0448.7-2116' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 09:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 755146: <4FGL_J0448.7-2116_daily_bin1552> in cluster <slac> Done

Job <4FGL_J0448.7-2116_daily_bin1552> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 08:55:34 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 08:55:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 08:55:36 2021
Terminated at Sat Aug 21 09:11:16 2021
Results reported at Sat Aug 21 09:11:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0448.7-2116_daily_bin1552 72.1949 -21.2813 641606401 641865601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0448.7-2116 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   834.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

