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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin749
RA = 28.1614, Dec = 1.7894
tmin = 433468801, tmax = 433728001
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='899757', job_status='RUN', time_executed='2021-08-14 19:45:55.706934', time_epoch_executed='1628995555.71' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899757/ft1_4FGL_J0152.6+0147_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899757/ft2_4FGL_J0152.6+0147_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899757/ft1_4FGL_J0152.6+0147_daily_bin749.fits outfile=/scratch/kocevski/899757/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin749.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=433468801.0 tmax=433728001.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 11.86
user 5.76
sys 5.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899757/ft2_4FGL_J0152.6+0147_daily_bin749.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/899757/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/899757/ft1_filtered_4FGL_J0152.6+0147_daily_bin749.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 5.70
user 0.36
sys 5.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899757/ft1_filtered_4FGL_J0152.6+0147_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/899757/ft2_4FGL_J0152.6+0147_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/899757/ltcube_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.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/899757/ft2_4FGL_J0152.6+0147_daily_bin749.fits
.....................!
real 20.44
user 13.04
sys 6.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899757/ft1_filtered_4FGL_J0152.6+0147_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/899757/ft2_4FGL_J0152.6+0147_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/899757/ltcube_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.fits outfile=/scratch/kocevski/899757/expmap_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.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/899757/ltcube_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.fits
.....................!
real 197.04
user 185.53
sys 10.97

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/899757/ft1_filtered_4FGL_J0152.6+0147_daily_bin749.fits scfile=/scratch/kocevski/899757/ft2_4FGL_J0152.6+0147_daily_bin749.fits outfile=/scratch/kocevski/899757/cmap_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.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 5.62
user 0.37
sys 5.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899757/ft1_filtered_4FGL_J0152.6+0147_daily_bin749.fits scfile=/scratch/kocevski/899757/ft2_4FGL_J0152.6+0147_daily_bin749.fits outfile=/scratch/kocevski/899757/cmap_HighResolution_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.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 5.57
user 0.40
sys 5.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53580E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3275       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5342       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10725E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .25934E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8914       1.0000         .10000E-03   10000.    
    12 'norm      '    8.4049       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8612       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11988E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8862       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7100       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0700       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91019       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=   5076.372     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     1794 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1355.5        .12476E-04** at limit **
   2  norm          4.3236        2.0455        .12215E-06    .58383E-04
   3  Prefactor     20.561        37.083        .26104E-06   -.68121E-05
   4  Prefactor     .10000E-03    2.6952        .10365E-05** at limit **
   5  Prefactor     4.7853        8.3974       -.53405E-06    .22770E-05
   6  Prefactor     7.5291        123.97        .27474E-05   -.10541E-05
   7  norm          .10000E-03    1.7508        .97039E-07** at limit **
   8  Prefactor     .10000E-03    37.052        .98701E-07** at limit **
   9  Prefactor     .10000E-03    2.3501        .38116E-06** at limit **
  10  norm          .10000E-03    143.27        .24351E-05** at limit **
  11  Prefactor     2.8924        4.2230        .75186E-07   -.13460E-04
  12  norm          8.4058        5.3152        .15648E-06   -.24403E-04
  13  Prefactor     4.8629        2.8159        .38758E-07   -.42517E-04
  14  norm          .10000E-03    .31755        .15466E-06** at limit **
  15  Prefactor     .10000E-03    10.039        .15951E-06** at limit **
  16  Prefactor     .10000E-03    20.259        .17800E-06** at limit **
  17  Prefactor     4.9029        12.641        .10554E-05   -.10078E-04
  18  Prefactor     5.7125        14.508        .12284E-06   -.55906E-05
  19  Normalizat    1.0700        .18736       -.37103E-06   -.11603E-03
  20  Prefactor     .91018        .15969       -.13592E-05   -.61888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.32359
  Prefactor  = 20.5609
  Prefactor  = 0.0001
  Prefactor  = 4.78532
  Prefactor  = 7.52914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.89237
  norm       = 8.4058
  Prefactor  = 4.86287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.90287
  Prefactor  = 5.71255
  Normalizat = 1.06997
  Prefactor  = 0.910175
 **********
 **   18 **HESSE 
 **********

 FCN=   5076.372     FROM HESSE     STATUS=OK           307 CALLS     2101 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1342.0        .38211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3236        2.0452        .67413E-04   -1.5292    
   3  Prefactor     20.561        37.074        .88540E-04   -1.4801    
   4  Prefactor     .10000E-03    2.6925        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7853        8.3801        .18381E-03   -1.5270    
   6  Prefactor     7.5291        124.29        .14611E-03   -1.5159    
   7  norm          .10000E-03    1.7529        .92089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3753        .10681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.154        .81308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8924        4.2118        .17158E-03   -1.5368    
  12  norm          8.4058        5.3167        .12512E-03   -1.5128    
  13  Prefactor     4.8629        2.8140        .86872E-04   -1.5267    
  14  norm          .10000E-03    .64376        .77448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9029        12.648        .18197E-03   -1.5265    
  18  Prefactor     5.7125        14.510        .16810E-03   -1.5230    
  19  Normalizat    1.0700        .21975        .25003E-03   -.90722    
  20  Prefactor     .91018        .18385        .22397E-03   -.95786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95873e-11
Minuit parameter uncertainties:
  1  0.00110404
  2  2.0452
  3  37.1159
  4  1.76698e-06
  5  8.38211
  6  61.3327
  7  8.46706e-07
  8  1.82614e-05
  9  2.0855e-06
  10  1.14913e-05
  11  4.21222
  12  5.31698
  13  2.81404
  14  3.92283e-06
  15  5.61796e-06
  16  7.86334e-07
  17  12.6553
  18  14.5192
  19  0.219935
  20  0.183971
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.086e-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:  9.102e-01  1.840e-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.070e+00  2.199e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899757/likelihoodResults_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.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) = 5076.37412188
delta logL = -0.00199689187139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5076.37212496
delta logL = 3.1433046388e-08

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.9937       1.0000          .0000       10.000    
     3 'Normalizat'    1.0700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91021       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=   5076.372     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.144        .90712E-02** at limit **
   2  Index         2.0042        5.9139        .50000       -.38488E-04
   3  Normalizat    1.0700        .11232E-01    .56543E-01   -.22649E-04
   4  Prefactor     .91017        .94077E-02    .45135E-01   -.55593E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00419
  Normalizat = 1.06997
  Prefactor  = 0.910175
 **********
 **   18 **HESSE 
 **********

 FCN=   5076.372     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.532        .10721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0042        5.6505        .50000       -.64246    
   3  Normalizat    1.0700        .30709E-01    .25003E-03   -.90722    
   4  Prefactor     .91017        .25729E-01    .22397E-03   -.95786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.91326e-08
Minuit parameter uncertainties:
  1  6.12452e-05
  2  23.965
  3  0.0307092
  4  0.0257288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899757': 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) = 5076.37212481
delta logL = 1.79337803274e-07

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  6.125e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.004e+00  2.396e+01  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.102e-01  2.573e-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.070e+00  3.071e-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/899757/cmap_HighResolution_433468801_433728001_4FGL_J0152.6+0147_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-08-14 19:56:22.885489', job_id='899757', GAL2='0.91', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1628996182.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='749' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:56:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 899757: <4FGL_J0152.6+0147_daily_bin749> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin749> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:28 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:40:40 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:40:40 2021
Terminated at Sat Aug 14 19:56:24 2021
Results reported at Sat Aug 14 19:56:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin749 28.1614 1.7894 433468801 433728001 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 :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            956 sec.

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

