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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin598
RA = 28.1614, Dec = 1.7894
tmin = 394329601, tmax = 394588801
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='898457', job_status='RUN', time_executed='2021-08-14 19:37:53.626931', time_epoch_executed='1628995073.63' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898457

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898457/ft1_4FGL_J0152.6+0147_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898457/ft2_4FGL_J0152.6+0147_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898457/ft1_4FGL_J0152.6+0147_daily_bin598.fits outfile=/scratch/kocevski/898457/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin598.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=394329601.0 tmax=394588801.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 8.36
user 7.28
sys 1.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898457/ft1_filtered_4FGL_J0152.6+0147_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/898457/ft2_4FGL_J0152.6+0147_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/898457/ltcube_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.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/898457/ft2_4FGL_J0152.6+0147_daily_bin598.fits
.....................!
real 13.02
user 11.81
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898457/ft1_filtered_4FGL_J0152.6+0147_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/898457/ft2_4FGL_J0152.6+0147_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/898457/ltcube_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.fits outfile=/scratch/kocevski/898457/expmap_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.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/898457/ltcube_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.fits
.....................!
real 191.89
user 185.10
sys 6.22

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/898457/ft1_filtered_4FGL_J0152.6+0147_daily_bin598.fits scfile=/scratch/kocevski/898457/ft2_4FGL_J0152.6+0147_daily_bin598.fits outfile=/scratch/kocevski/898457/cmap_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.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.39
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898457/ft1_filtered_4FGL_J0152.6+0147_daily_bin598.fits scfile=/scratch/kocevski/898457/ft2_4FGL_J0152.6+0147_daily_bin598.fits outfile=/scratch/kocevski/898457/cmap_HighResolution_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.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.39
user 0.37
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.938       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3816       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    86.229       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9493       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6585       1.0000         .10000E-03   10000.    
    12 'norm      '    10.598       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5294       1.0000         .10000E-03   10000.    
    14 'norm      '    .22381E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4535       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0633       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91932       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4732.631     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2040 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.938        73.263         .0000        .36933E-04
   2  norm          8.3817        2.3609         .0000       -.23916E-04
   3  Prefactor     35.550        40.405         .0000       -.55103E-03
   4  Prefactor     .10000E-03    3.3057         .0000    ** at limit **
   5  Prefactor     .10000E-03    9.1529         .0000    ** at limit **
   6  Prefactor     .10000E-03    42.634         .0000    ** at limit **
   7  norm          3.4146        6.1660         .0000        .27518E-03
   8  Prefactor     86.229        76.723         .0000       -.18711E-03
   9  Prefactor     .10000E-03    1.5077         .0000    ** at limit **
  10  norm          3.9482        12.089         .0000        .22190E-02
  11  Prefactor     4.6591        7.5701         .0000        .46629E-02
  12  norm          10.598        5.7123         .0000        .11854E-03
  13  Prefactor     2.5294        2.3881         .0000        .28841E-03
  14  norm          .23076E-01    .50758         .0000        .90668E-03
  15  Prefactor     .10000E-03    6.2959         .0000    ** at limit **
  16  Prefactor     .10000E-03    29.275         .0000    ** at limit **
  17  Prefactor     1.4539        22.302         .0000        .63394E-02
  18  Prefactor     .10000E-03    5.8345         .0000    ** at limit **
  19  Normalizat    1.0633        .20070         .0000        .58606E-05
  20  Prefactor     .91932        .16768         .0000        .42594E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.9377
  norm       = 8.38165
  Prefactor  = 35.5503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41456
  Prefactor  = 86.2293
  Prefactor  = 0.0001
  norm       = 3.94819
  Prefactor  = 4.65908
  norm       = 10.598
  Prefactor  = 2.52941
  norm       = 0.0230756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4539
  Prefactor  = 0.0001
  Normalizat = 1.06329
  Prefactor  = 0.919324
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.631     FROM HESSE     STATUS=OK           293 CALLS     2333 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.938        73.286        .46382E-04   -1.3974    
   2  norm          8.3817        2.3634        .53848E-04   -1.5129    
   3  Prefactor     35.550        40.385        .67214E-04   -1.4515    
   4  Prefactor     .10000E-03    3.3236        .12206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4146        6.1514        .21893E-03   -1.5338    
   8  Prefactor     86.229        76.792        .43263E-04   -1.3848    
   9  Prefactor     .10000E-03    1.5103        .82492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9482        12.089        .10149E-02   -1.5311    
  11  Prefactor     4.6591        7.5701        .93230E-03   -1.5276    
  12  norm          10.598        5.7197        .11538E-03   -1.5057    
  13  Prefactor     2.5294        2.3792        .98800E-04   -1.5390    
  14  norm          .23076E-01    7.7368        .92719E-03   -1.5678    
  15  Prefactor     .10000E-03    6.2991        .16859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4539        22.397        .17861E-02   -1.5467    
  18  Prefactor     .10000E-03    5.8367        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0633        .23314        .25777E-03   -.90939    
  20  Prefactor     .91932        .19566        .22708E-03   -.95469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4614e-09
Minuit parameter uncertainties:
  1  73.3745
  2  2.36338
  3  40.4165
  4  1.46335e-06
  5  2.81492e-06
  6  4.73844e-05
  7  6.15254
  8  76.8805
  9  4.98877e-08
  10  12.0966
  11  7.57164
  12  5.71995
  13  2.37927
  14  0.843337
  15  5.39391e-06
  16  2.07588e-06
  17  11.4174
  18  3.71823e-06
  19  0.233365
  20  0.19581
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  4.989e-08  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.193e-01  1.958e-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.063e+00  2.334e-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: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898457/likelihoodResults_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.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) = 4732.63392608
delta logL = -0.00302363660285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4732.6309016
delta logL = 8.38595951791e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9580       1.0000          .0000       10.000    
     3 'Normalizat'    1.0634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91926       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=   4732.631     FROM MIGRAD    STATUS=FAILED        85 CALLS      231 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    24.958        .84854E-03** at limit **
   2  Index         1.8981        7.6730        .50000        .11765E-03
   3  Normalizat    1.0633        .20757E-01    .25777E-03    .51691E-04
   4  Prefactor     .91933        .17228E-01    .22708E-03    .12656E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4732.631     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      351 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    24.958        .23901E-03** at limit **
   2  Index         1.8981        7.6730        .67263E-03    .11765E-03
   3  Normalizat    1.0633        .20757E-01    .40202E-05    .51691E-04
   4  Prefactor     .91933        .17228E-01    .43271E-05    .12656E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4732.631     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      401 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.307        .16971E-02** at limit **
   2  Index         1.4285        7.5581        .50000       -.57094E-07
   3  Normalizat    1.0633        .21933E-01    .10311E-04   -.16059E-02
   4  Prefactor     .91932        .18205E-01    .90833E-05   -.19039E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.4285
  Normalizat = 1.06329
  Prefactor  = 0.91932
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.631     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      430 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     .10000E-03    155.99        .33942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4285        6.3429        .50000       -.79562    
   3  Normalizat    1.0633        .49789E-01    .20621E-05   -.90939    
   4  Prefactor     .91932        .41316E-01    .18167E-05   -.95469    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31396e-09
Minuit parameter uncertainties:
  1  8.78041e-06
  2  547.493
  3  0.0497911
  4  0.0413169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898457': 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) = 4732.63089314
delta logL = 9.30156511458e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  8.780e-06  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.429e+00  5.475e+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.193e-01  4.132e-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.063e+00  4.979e-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/898457/cmap_HighResolution_394329601_394588801_4FGL_J0152.6+0147_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-08-14 19:47:38.015481', job_id='898457', GAL2='0.92', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1628995658.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='9.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='598' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:47:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 898457: <4FGL_J0152.6+0147_daily_bin598> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin598 28.1614 1.7894 394329601 394588801 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            714 sec.

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

