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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin631
RA = 28.1614, Dec = 1.7894
tmin = 402883201, tmax = 403142401
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='898505', job_status='RUN', time_executed='2021-08-14 19:38:57.102957', time_epoch_executed='1628995137.1' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898505/ft1_4FGL_J0152.6+0147_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898505/ft2_4FGL_J0152.6+0147_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898505/ft1_4FGL_J0152.6+0147_daily_bin631.fits outfile=/scratch/kocevski/898505/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin631.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=402883201.0 tmax=403142401.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 7.18
user 4.36
sys 2.66

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898505/ft1_filtered_4FGL_J0152.6+0147_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/898505/ft2_4FGL_J0152.6+0147_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/898505/ltcube_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.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/898505/ft2_4FGL_J0152.6+0147_daily_bin631.fits
.....................!
real 15.15
user 12.16
sys 2.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898505/ft1_filtered_4FGL_J0152.6+0147_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/898505/ft2_4FGL_J0152.6+0147_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/898505/ltcube_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.fits outfile=/scratch/kocevski/898505/expmap_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.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/898505/ltcube_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.fits
.....................!
real 193.93
user 185.81
sys 7.16

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/898505/ft1_filtered_4FGL_J0152.6+0147_daily_bin631.fits scfile=/scratch/kocevski/898505/ft2_4FGL_J0152.6+0147_daily_bin631.fits outfile=/scratch/kocevski/898505/cmap_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.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 2.92
user 0.38
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898505/ft1_filtered_4FGL_J0152.6+0147_daily_bin631.fits scfile=/scratch/kocevski/898505/ft2_4FGL_J0152.6+0147_daily_bin631.fits outfile=/scratch/kocevski/898505/cmap_HighResolution_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.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 2.92
user 0.41
sys 2.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    194.62       1.0000         .10000E-03   10000.    
     2 'norm      '    21.016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2940       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2422       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7362       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6773       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .85530       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.020       1.0000         .10000E-03   10000.    
    16 'Prefactor '    169.49       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .63886       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99857       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=   4588.062     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2030 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     194.63        115.25        .44229E-06    .25746E-04
   2  norm          21.016        3.6436       -.63206E-08   -.18756E-04
   3  Prefactor     10.393        56.995       -.62749E-05   -.10928E-03
   4  Prefactor     2.2973        7.5698        .77977E-06   -.21477E-04
   5  Prefactor     7.2425        12.387        .32331E-05   -.13354E-03
   6  Prefactor     .10000E-03    72.546        .15806E-06** at limit **
   7  norm          3.7362        5.5308       -.11542E-07   -.47500E-04
   8  Prefactor     .10000E-03    23.619       -.22964E-07** at limit **
   9  Prefactor     .10000E-03    1.8693        .20846E-07** at limit **
  10  norm          .10000E-03    16.307        .85180E-07** at limit **
  11  Prefactor     4.6776        5.5943        .25318E-06    .52151E-04
  12  norm          .10000E-03    2.5599        .34481E-07** at limit **
  13  Prefactor     .10000E-03    .94432        .28609E-09** at limit **
  14  norm          .85528        .72847        .22302E-07   -.85307E-05
  15  Prefactor     20.019        23.486        .73769E-07   -.12270E-04
  16  Prefactor     169.48        95.886       -.17045E-06   -.24235E-04
  17  Prefactor     .10000E-03    7.4059        .26512E-07** at limit **
  18  Prefactor     .10000E-03    8.6105        .12980E-08** at limit **
  19  Normalizat    .63875        .19064        .11936E-06   -.25500E-04
  20  Prefactor     .99867        .15732       -.42236E-06    .93639E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 194.627
  norm       = 21.0156
  Prefactor  = 10.3926
  Prefactor  = 2.2973
  Prefactor  = 7.24247
  Prefactor  = 0.0001
  norm       = 3.73621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.67759
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.855278
  Prefactor  = 20.0191
  Prefactor  = 169.482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.63875
  Prefactor  = 0.998667
 **********
 **   18 **HESSE 
 **********

 FCN=   4588.062     FROM HESSE     STATUS=OK           289 CALLS     2319 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     194.63        115.52        .14478E-03   -1.2909    
   2  norm          21.016        3.6443        .49566E-04   -1.4791    
   3  Prefactor     10.393        63.503        .12415E-03   -1.5063    
   4  Prefactor     2.2973        7.5003        .27100E-03   -1.5405    
   5  Prefactor     7.2425        12.563        .74524E-03   -1.5170    
   6  Prefactor     .10000E-03    73.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7362        5.5230        .18871E-03   -1.5321    
   8  Prefactor     .10000E-03    23.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8780        .90431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    16.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6776        5.5943        .16864E-03   -1.5275    
  12  norm          .10000E-03    2.5934        .10579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .95304        .64210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .85528        .71921        .51338E-04   -1.5523    
  15  Prefactor     20.019        23.492        .89515E-04   -1.4813    
  16  Prefactor     169.48        95.971        .30989E-04   -1.3097    
  17  Prefactor     .10000E-03    7.4210        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .63875        .22083        .29957E-03   -1.0636    
  20  Prefactor     .99867        .18336        .20161E-03   -.92774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28059e-10
Minuit parameter uncertainties:
  1  115.657
  2  3.64433
  3  51.4606
  4  7.5034
  5  12.5673
  6  3.39059e-05
  7  5.52371
  8  5.07434e-06
  9  2.25586e-07
  10  2.55584e-06
  11  5.59494
  12  4.39536e-07
  13  5.92937e-07
  14  0.719217
  15  23.503
  16  96.0592
  17  8.33886e-07
  18  1.73499e-06
  19  0.221132
  20  0.183472
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.256e-07  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.987e-01  1.835e-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:  6.387e-01  2.211e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898505/likelihoodResults_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.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) = 4588.06410538
delta logL = -0.00250695747582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4588.06159844
delta logL = -1.89829734154e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9694       1.0000          .0000       10.000    
     3 'Normalizat'    .63888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99858       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=   4588.062     FROM MIGRAD    STATUS=FAILED        88 CALLS      234 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    34.525        .91222E-03** at limit **
   2  Index         1.9249        5.5077        .50000        .54939E-04
   3  Normalizat    .63875        .21059E-01    .29956E-03   -.31120E-05
   4  Prefactor     .99867        .17543E-01    .20161E-03   -.73306E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4588.062     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      364 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    34.525        .23014E-03** at limit **
   2  Index         1.9249        5.5077        .35526E-03    .54939E-04
   3  Normalizat    .63875        .21059E-01    .43346E-05   -.31120E-05
   4  Prefactor     .99867        .17543E-01    .34458E-05   -.73306E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4588.062     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      410 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.030        .18244E-02** at limit **
   2  Index         1.5268        8.8544        .50000       -.15277E-06
   3  Normalizat    .63875        .23047E-01    .11983E-04    .28216E-03
   4  Prefactor     .99867        .19201E-01    .80644E-05    .42151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.52682
  Normalizat = 0.638751
  Prefactor  = 0.998667
 **********
 **   18 **HESSE 
 **********

 FCN=   4588.062     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      439 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    207.14        .36489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5268        5.6517        .50000       -.76791    
   3  Normalizat    .63875        .54509E-01    .23965E-05   -1.0636    
   4  Prefactor     .99867        .45378E-01    .16129E-05   -.92774    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17898e-10
Minuit parameter uncertainties:
  1  0.000127022
  2  843.1
  3  0.0545139
  4  0.04538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898505': 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) = 4588.06159476
delta logL = 3.66454514733e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.270e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.527e+00  8.431e+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:  9.987e-01  4.538e-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:  6.388e-01  5.451e-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/898505/cmap_HighResolution_402883201_403142401_4FGL_J0152.6+0147_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-08-14 19:48:39.781282', job_id='898505', GAL2='1.00', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1628995719.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='631' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:48:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 898505: <4FGL_J0152.6+0147_daily_bin631> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin631> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:48 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:37:58 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:37:58 2021
Terminated at Sat Aug 14 19:48:40 2021
Results reported at Sat Aug 14 19:48:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin631 28.1614 1.7894 402883201 403142401 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            772 sec.

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

