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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin465
RA = 28.1614, Dec = 1.7894
tmin = 359856001, tmax = 360115201
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='898264', job_status='RUN', time_executed='2021-08-14 19:38:08.771686', time_epoch_executed='1628995088.77' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898264

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898264/ft1_4FGL_J0152.6+0147_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898264/ft1_4FGL_J0152.6+0147_daily_bin465.fits outfile=/scratch/kocevski/898264/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin465.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=359856001.0 tmax=360115201.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.23
user 3.04
sys 1.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.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/898264/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin465.fits evtable="EVENTS" outfile="/scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.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 1.52
user 0.34
sys 1.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits" evtable="EVENTS" scfile=/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits sctable="SC_DATA" outfile=/scratch/kocevski/898264/ltcube_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.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/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits
.....................!
real 13.94
user 12.46
sys 1.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/898264/ltcube_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.fits outfile=/scratch/kocevski/898264/expmap_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.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/898264/ltcube_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.fits
.....................!
real 195.45
user 187.65
sys 7.15

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

Setting source of interest to:
4FGL J0152.6+0147 @ 28.1614 1.7894

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits scfile=/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits outfile=/scratch/kocevski/898264/cmap_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.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=28.1614 yref=1.7894 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 1.51
user 0.38
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits scfile=/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits outfile=/scratch/kocevski/898264/cmap_HighResolution_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.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=28.1614 yref=1.7894 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 1.60
user 0.39
sys 1.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/898264/Model_4FGL_J0152.6+0147_daily_bin465.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/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits.....................!
real 75.13
user 71.82
sys 2.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits', '/scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits', expMap='/scratch/kocevski/898264/expmap_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.fits', expCube='/scratch/kocevski/898264/ltcube_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/898264/Model_4FGL_J0152.6+0147_daily_bin465.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.6+0147'

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.406e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/898264/ft1_filtered_4FGL_J0152.6+0147_daily_bin465.fits
Spacecraft file(s): /scratch/kocevski/898264/ft2_4FGL_J0152.6+0147_daily_bin465.fits
Exposure map: /scratch/kocevski/898264/expmap_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.fits
Exposure cube: /scratch/kocevski/898264/ltcube_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/898264/Model_4FGL_J0152.6+0147_daily_bin465.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) = 6961.19765605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .86123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37869E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3185       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4539       1.0000         .10000E-03   10000.    
     8 'Prefactor '    86.313       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33858E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3717       1.0000         .10000E-03   10000.    
    12 'norm      '    15.200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7358       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.155       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97037       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6961.191     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2059 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.258        .39827E-05** at limit **
   2  norm          .86105        .85118        .18016E-06   -.11997E-03
   3  Prefactor     16.800        29.420       -.10251E-04   -.51805E-03
   4  Prefactor     .10026E-03    2.9519        .49070E-06** at limit **
   5  Prefactor     2.3174        7.6406        .13141E-05   -.66170E-04
   6  Prefactor     .10000E-03    18.059       -.34633E-05** at limit **
   7  norm          2.4536        3.7435        .10376E-06   -.37621E-04
   8  Prefactor     86.303        81.173       -.19943E-05   -.45787E-04
   9  Prefactor     .10000E-03    2.1855       -.21058E-06** at limit **
  10  norm          .10000E-03    3.5006       -.10372E-07** at limit **
  11  Prefactor     5.3716        6.3648        .19944E-06    .71181E-04
  12  norm          15.201        5.8649        .82812E-07    .45495E-03
  13  Prefactor     .10002E-03    1.0458       -.54043E-06** at limit **
  14  norm          1.7358        .72065       -.25008E-07    .12482E-03
  15  Prefactor     .10000E-03    6.4807        .87609E-06** at limit **
  16  Prefactor     46.156        50.567        .41836E-06    .65740E-04
  17  Prefactor     3.3273        8.7457        .86936E-05   -.61456E-03
  18  Prefactor     .10000E-03    9.8888        .42660E-06** at limit **
  19  Normalizat    .97034        .16247        .17330E-05   -.11244E-03
  20  Prefactor     .90586        .13368       -.97955E-06    .17775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.861046
  Prefactor  = 16.8
  Prefactor  = 0.000100262
  Prefactor  = 2.31741
  Prefactor  = 0.000100001
  norm       = 2.45364
  Prefactor  = 86.3035
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 5.37161
  norm       = 15.2006
  Prefactor  = 0.000100018
  norm       = 1.7358
  Prefactor  = 0.0001
  Prefactor  = 46.1561
  Prefactor  = 3.32727
  Prefactor  = 0.0001
  Normalizat = 0.970335
  Prefactor  = 0.905864
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.191     FROM HESSE     STATUS=OK           299 CALLS     2358 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .86105        .81606        .73831E-03   -1.5522    
   3  Prefactor     16.800        31.510        .97590E-04   -1.4888    
   4  Prefactor     .10026E-03    42.534        .26645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3174        7.6239        .26940E-03   -1.5403    
   6  Prefactor     .10000E-03    18.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4536        3.7255        .19345E-03   -1.5395    
   8  Prefactor     86.303        81.245        .43243E-04   -1.3847    
   9  Prefactor     .10000E-03    25.195        .23607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5015        .15246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3716        6.3597        .17339E-03   -1.5244    
  12  norm          15.201        5.8251        .10273E-03   -1.4928    
  13  Prefactor     .10002E-03    6.6106        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7358        .72030        .44047E-04   -1.5444    
  15  Prefactor     .10000E-03    6.4901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.156        50.368        .59018E-04   -1.4348    
  17  Prefactor     3.3273        9.2642        .11096E-02   -1.5343    
  18  Prefactor     .10000E-03    9.9349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97034        .18286        .25217E-03   -.94031    
  20  Prefactor     .90586        .15347        .21788E-03   -.95936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20398e-08
Minuit parameter uncertainties:
  1  0.000289252
  2  0.81607
  3  31.5409
  4  0.00667689
  5  7.62705
  6  0.000251061
  7  3.72582
  8  81.3499
  9  0.000397353
  10  1.88802e-06
  11  6.36055
  12  5.82529
  13  0.000693874
  14  0.720308
  15  3.44168e-05
  16  50.415
  17  9.26822
  18  1.37857e-05
  19  0.182978
  20  0.15354
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.974e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.059e-01  1.535e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.703e-01  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 5.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898264/likelihoodResults_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.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) = 6961.19150346
delta logL = -0.000187891584574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6960.31564448
delta logL = 0.875671084284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47760E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.0789       1.0000          .0000       10.000    
     3 'Normalizat'    .88352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6960.316     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48488E-01    .56262        .31903E-02   -.87061E-02
   2  Index         4.0743        1.8969        .76630E-01   -.13406E-03
   3  Normalizat    .88379        .37798E-01    .44691E-01    .36713E-04
   4  Prefactor     .94750        .31730E-01    .45608E-01    .17276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0484885
  Index      = 4.07429
  Normalizat = 0.883792
  Prefactor  = 0.947503
 **********
 **   18 **HESSE 
 **********

 FCN=   6960.316     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48488E-01    1.4739        .14485E-03   -1.5664    
   2  Index         4.0743        3.5141        .38261E-02   -.18622    
   3  Normalizat    .88379        .13955        .26285E-03   -.97032    
   4  Prefactor     .94750        .11462        .21351E-03   -.94500    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28746e-09
Minuit parameter uncertainties:
  1  0.534131
  2  3.91552
  3  0.139604
  4  0.114648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898264': 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) = 6960.31563098
delta logL = 0.875684580743

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.849e-02  5.341e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  4.074e+00  3.916e+00  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.475e-01  1.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  8.838e-01  1.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 28.161 1.789
Photon Index (Free Index): 4.07 +/- 3.92
Photon Flux (Free Index): 6.74e-08 +/- 5.35e-08
Energy Flux (Free Index): 9.97e-06 +/- 8.76e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/898264/cmap_HighResolution_359856001_360115201_4FGL_J0152.6+0147_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', comment='SUCCESS', energy_flux2='9.97e-06', dlogl='8.76e-01', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-08-14 19:49:09.092178', photon_index_error2='3.92', photon_index2='4.07', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='5.96e-08', energy_flux_error2='8.76e-06', EG='0.97', time_epoch_completed='1628995749.09', return_code='0', job_id='898264', GAL2='0.95', EG2='0.88', return_code2='102', photon_flux_error2='5.35e-08', ts2='1.92', photon_index='1.98' WHERE bin_id='465' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:49:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 898264: <4FGL_J0152.6+0147_daily_bin465> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin465> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:30 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:35:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:35:39 2021
Terminated at Sat Aug 14 19:49:10 2021
Results reported at Sat Aug 14 19:49:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin465 28.1614 1.7894 359856001 360115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.6+0147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            820 sec.

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

