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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin282
RA = 28.1614, Dec = 1.7894
tmin = 312422401, tmax = 312681601
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='896835', job_status='RUN', time_executed='2021-08-14 19:33:55.108025', time_epoch_executed='1628994835.11' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896835/ft1_4FGL_J0152.6+0147_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896835/ft1_4FGL_J0152.6+0147_daily_bin282.fits outfile=/scratch/kocevski/896835/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin282.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=312422401.0 tmax=312681601.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.58
user 3.67
sys 0.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.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/896835/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin282.fits evtable="EVENTS" outfile="/scratch/kocevski/896835/ft1_filtered_4FGL_J0152.6+0147_daily_bin282.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.12
user 0.33
sys 0.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896835/ft1_filtered_4FGL_J0152.6+0147_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/896835/ltcube_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.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/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits
.....................!
real 13.42
user 12.36
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896835/ft1_filtered_4FGL_J0152.6+0147_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/896835/ltcube_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.fits outfile=/scratch/kocevski/896835/expmap_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.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/896835/ltcube_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.fits
.....................!
real 191.78
user 185.59
sys 5.73

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/896835/ft1_filtered_4FGL_J0152.6+0147_daily_bin282.fits scfile=/scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits outfile=/scratch/kocevski/896835/cmap_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.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.14
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896835/ft1_filtered_4FGL_J0152.6+0147_daily_bin282.fits scfile=/scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits outfile=/scratch/kocevski/896835/cmap_HighResolution_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.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.15
user 0.38
sys 0.75

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/896835/ft1_filtered_4FGL_J0152.6+0147_daily_bin282.fits', '/scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits', expMap='/scratch/kocevski/896835/expmap_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.fits', expCube='/scratch/kocevski/896835/ltcube_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/896835/Model_4FGL_J0152.6+0147_daily_bin282.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/896835/ft1_filtered_4FGL_J0152.6+0147_daily_bin282.fits
Spacecraft file(s): /scratch/kocevski/896835/ft2_4FGL_J0152.6+0147_daily_bin282.fits
Exposure map: /scratch/kocevski/896835/expmap_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.fits
Exposure cube: /scratch/kocevski/896835/ltcube_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/896835/Model_4FGL_J0152.6+0147_daily_bin282.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) = 5534.33588659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.491       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13932       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.462       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9106       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15669E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0796       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.920       1.0000         .10000E-03   10000.    
    16 'Prefactor '    176.94       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1803       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .62728       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5534.268     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     2435 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.550        56.217        .30053E-03   -.53603E-04
   2  norm          3.4561        1.7596        .66220E-04    .12979E-03
   3  Prefactor     .10070E-03    43.355        .13502    ** at limit **
   4  Prefactor     15.276        9.1104        .10250E-03   -.17590E-03
   5  Prefactor     .10000E-03    3.2082        .13001E-02** at limit **
   6  Prefactor     15.456        25.913        .10186E-03    .85786E-04
   7  norm          2.9098        3.9483        .16806E-03   -.29967E-04
   8  Prefactor     18.030        64.972        .94948E-04   -.59964E-04
   9  Prefactor     .10000E-03    1.1543        .77984E-03** at limit **
  10  norm          .10002E-03    64.714        .51230E-02** at limit **
  11  Prefactor     .10000E-03    5.6375        .33923E-03** at limit **
  12  norm          .10000E-03    2.7225        .11899E-02** at limit **
  13  Prefactor     2.0797        2.0541        .10079E-03    .15025E-03
  14  norm          .10000E-03    .57835        .86228E-03** at limit **
  15  Prefactor     44.927        31.696        .59820E-04    .10213E-03
  16  Prefactor     176.90        96.260        .15170E-03    .41966E-05
  17  Prefactor     .10000E-03    9.7263        .18142E-02** at limit **
  18  Prefactor     .10000E-03    11.352        .18142E-02** at limit **
  19  Normalizat    1.1803        .20194        .22791E-03    .17260E-03
  20  Prefactor     .62725        .16008        .23962E-03    .44867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.5499
  norm       = 3.45614
  Prefactor  = 0.000100702
  Prefactor  = 15.2762
  Prefactor  = 0.0001
  Prefactor  = 15.4556
  norm       = 2.90975
  Prefactor  = 18.0295
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.07969
  norm       = 0.0001
  Prefactor  = 44.9266
  Prefactor  = 176.9
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18029
  Prefactor  = 0.627246
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.268     FROM HESSE     STATUS=OK           281 CALLS     2716 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.550        56.216        .12021E-04   -1.4372    
   2  norm          3.4561        1.7596        .26488E-05   -1.5336    
   3  Prefactor     .10070E-03    42.872        .13608       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.276        9.1100        .41002E-05   -1.4926    
   5  Prefactor     .10000E-03    3.2083        .26001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.456        25.912        .20371E-04   -1.4921    
   7  norm          2.9098        3.9483        .67224E-05   -1.5367    
   8  Prefactor     18.030        64.970        .18990E-04   -1.4858    
   9  Prefactor     .10000E-03    1.1543        .15597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    65.776        .10246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6377        .67846E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7231        .23798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0797        2.0540        .40315E-05   -1.5420    
  14  norm          .10000E-03    .57894        .17246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.927        31.694        .11964E-04   -1.4366    
  16  Prefactor     176.90        96.253        .60682E-05   -1.3040    
  17  Prefactor     .10000E-03    9.7280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1803        .20205        .45582E-04   -.87214    
  20  Prefactor     .62725        .16011        .47925E-04   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61466e-09
Minuit parameter uncertainties:
  1  56.2835
  2  1.75961
  3  0.0109768
  4  9.11083
  5  1.17203e-05
  6  25.9311
  7  3.94864
  8  65.2263
  9  1.14597e-06
  10  0.00243505
  11  8.76726e-06
  12  2.90415e-09
  13  2.05408
  14  2.97832e-05
  15  31.7057
  16  96.3391
  17  1.87862e-05
  18  2.2356e-05
  19  0.202182
  20  0.160225
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.146e-06  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:  6.272e-01  1.602e-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:  1.180e+00  2.022e-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: 3.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896835/likelihoodResults_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.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) = 5534.27182755
delta logL = -0.00388121135711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5534.26794558
delta logL = 7.57991074352e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9631       1.0000          .0000       10.000    
     3 'Normalizat'    1.1803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62724       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5534.268     FROM MIGRAD    STATUS=FAILED        88 CALLS      236 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10195E-03    27.904        .79487E-03** at limit **
   2  Index         1.8887        5.8297        .50000        .12564E-03
   3  Normalizat    1.1803        .21771E-01    .22791E-03   -.51829E-04
   4  Prefactor     .62724        .17271E-01    .23962E-03   -.63575E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5534.268     FROM SIMPLEX   STATUS=PROGRESS     117 CALLS      353 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    27.904        .15191E-03** at limit **
   2  Index         1.8878        5.8297        .32367E-03    .12564E-03
   3  Normalizat    1.1803        .21771E-01    .29262E-05   -.51829E-04
   4  Prefactor     .62724        .17271E-01    .39879E-05   -.63575E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5534.268     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      408 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.908        .15897E-02** at limit **
   2  Index         1.4459        8.6058        .50000       -.12164E-07
   3  Normalizat    1.1803        .22543E-01    .91163E-05   -.94778E-05
   4  Prefactor     .62724        .17886E-01    .95850E-05   -.40327E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.44589
  Normalizat = 1.18029
  Prefactor  = 0.627243
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.268     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      437 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.39        .31795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4459        7.6616        .50000       -.79067    
   3  Normalizat    1.1803        .52097E-01    .18233E-05   -.87214    
   4  Prefactor     .62724        .41312E-01    .19170E-05   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.09336e-10
Minuit parameter uncertainties:
  1  6.10453e-05
  2  672.452
  3  0.0520994
  4  0.0413135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896835': 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) = 5534.2679362
delta logL = 1.01425284811e-05

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  6.105e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.446e+00  6.725e+02  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:  6.272e-01  4.131e-02  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:  1.180e+00  5.210e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.161 1.789

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/896835/cmap_HighResolution_312422401_312681601_4FGL_J0152.6+0147_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-08-14 19:44:16.294385', job_id='896835', GAL2='0.63', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1628995456.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.01e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='282' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:44:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 896835: <4FGL_J0152.6+0147_daily_bin282> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin282> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:26 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:31:33 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:31:33 2021
Terminated at Sat Aug 14 19:44:17 2021
Results reported at Sat Aug 14 19:44:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin282 28.1614 1.7894 312422401 312681601 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            831 sec.

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

