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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin316
RA = 28.1614, Dec = 1.7894
tmin = 321235201, tmax = 321494401
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='896884', job_status='RUN', time_executed='2021-08-14 19:34:27.855955', time_epoch_executed='1628994867.86' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896884/ft1_4FGL_J0152.6+0147_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896884/ft2_4FGL_J0152.6+0147_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896884/ft1_4FGL_J0152.6+0147_daily_bin316.fits outfile=/scratch/kocevski/896884/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin316.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=321235201.0 tmax=321494401.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.59
user 3.34
sys 8.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896884/ft1_filtered_4FGL_J0152.6+0147_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/896884/ft2_4FGL_J0152.6+0147_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/896884/ltcube_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.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/896884/ft2_4FGL_J0152.6+0147_daily_bin316.fits
.....................!
real 21.26
user 11.84
sys 9.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896884/ft1_filtered_4FGL_J0152.6+0147_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/896884/ft2_4FGL_J0152.6+0147_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/896884/ltcube_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.fits outfile=/scratch/kocevski/896884/expmap_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.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/896884/ltcube_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.fits
.....................!
real 202.58
user 185.02
sys 15.57

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/896884/ft1_filtered_4FGL_J0152.6+0147_daily_bin316.fits scfile=/scratch/kocevski/896884/ft2_4FGL_J0152.6+0147_daily_bin316.fits outfile=/scratch/kocevski/896884/cmap_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.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 8.35
user 0.41
sys 7.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896884/ft1_filtered_4FGL_J0152.6+0147_daily_bin316.fits scfile=/scratch/kocevski/896884/ft2_4FGL_J0152.6+0147_daily_bin316.fits outfile=/scratch/kocevski/896884/cmap_HighResolution_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.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 8.26
user 0.39
sys 7.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12727       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0396       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1544       1.0000         .10000E-03   10000.    
    10 'norm      '    18.773       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16468       1.0000         .10000E-03   10000.    
    12 'norm      '    19.427       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1686       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.887       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6231       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95927       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4827.866     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1717 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10293E-03    15.989       -.26606E-05** at limit **
   2  norm          4.6711        2.0242       -.39151E-07   -.71070E-04
   3  Prefactor     .10026E-03    25.005        .17311E-05** at limit **
   4  Prefactor     .10000E-03    2.5439        .34557E-06** at limit **
   5  Prefactor     .10000E-03    4.7163        .40551E-07** at limit **
   6  Prefactor     .10309E-03    2177.9       -.51816E-04** at limit **
   7  norm          7.0388        6.7958       -.12415E-06   -.11239E-02
   8  Prefactor     .10192E-03    21.270       -.37267E-05** at limit **
   9  Prefactor     4.1542        6.4008       -.44132E-06   -.31112E-03
  10  norm          18.815        10.084       -.21429E-06   -.54927E-02
  11  Prefactor     .12919        50.143        .54931E-06   -.44468E-03
  12  norm          19.422        7.3356       -.76692E-06   -.44954E-03
  13  Prefactor     .10000E-03    .90020        .28770E-07** at limit **
  14  norm          1.1684        .78309       -.15347E-07   -.51965E-05
  15  Prefactor     23.857        20.977       -.28855E-06   -.43639E-02
  16  Prefactor     .10001E-03    23.149       -.38729E-06** at limit **
  17  Prefactor     .10000E-03    8.7586        .93967E-07** at limit **
  18  Prefactor     8.6309        1.2930        .74542E-07    .23948E-02
  19  Normalizat    .95925        .23013       -.81513E-06    .27751E-04
  20  Prefactor     .93892        .18859        .13463E-05    .91682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102932
  norm       = 4.67112
  Prefactor  = 0.000100262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103092
  norm       = 7.03883
  Prefactor  = 0.000101917
  Prefactor  = 4.15422
  norm       = 18.8153
  Prefactor  = 0.129187
  norm       = 19.4215
  Prefactor  = 0.0001
  norm       = 1.1684
  Prefactor  = 23.8568
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 8.63086
  Normalizat = 0.959246
  Prefactor  = 0.938923
 **********
 **   18 **HESSE 
 **********

 FCN=   4827.866     FROM HESSE     STATUS=OK           339 CALLS     2056 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10293E-03    30.361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6711        2.0256        .46555E-02   -1.5276    
   3  Prefactor     .10026E-03    26.249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10309E-03    48.684        .15167       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.0388        6.8158        .37799E-02   -1.5177    
   8  Prefactor     .10192E-03    32.003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1542        6.4298        .49437E-02   -1.5300    
  10  norm          18.815        17.055        .23110E-02   -1.4840    
  11  Prefactor     .12919        6.8268        .57113E-01   -1.5636    
  12  norm          19.422        7.3887        .22718E-02   -1.4826    
  13  Prefactor     .10000E-03    .89453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1684        .79400        .10622E-01   -1.5492    
  15  Prefactor     23.857        23.200        .20490E-02   -1.4731    
  16  Prefactor     .10001E-03    23.250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7305        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6309        14.859        .34127E-02   -1.5120    
  19  Normalizat    .95925        .20110        .45655E-01   -.94409    
  20  Prefactor     .93892        .16605        .45497E-01   -.94794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35951e-07
Minuit parameter uncertainties:
  1  0.0188784
  2  2.02564
  3  0.00524457
  4  1.5035e-05
  5  2.37883e-06
  6  0.0245582
  7  6.81654
  8  0.015675
  9  6.43089
  10  17.0597
  11  1.87772
  12  7.38906
  13  6.64755e-07
  14  0.794005
  15  23.2087
  16  0.000999422
  17  6.2554e-06
  18  14.8655
  19  0.201255
  20  0.166138
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.154e+00  6.431e+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

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

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.592e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896884/likelihoodResults_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.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): 0
logL (Free Index) = 4826.9216187
delta logL = 0.944250055278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4826.85613205
delta logL = 1.00973670629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14010       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8813       1.0000          .0000       10.000    
     3 'Normalizat'    .84253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0020       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=   4826.856     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      273 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13971        1.5046        .38444E-02    .11331E-02
   2  Index         3.8824        1.9319        .74621E-01    .15200E-03
   3  Normalizat    .84256        .57158E-01    .64265E-01    .31002E-05
   4  Prefactor     1.0019        .46480E-01    .44983E-01   -.72319E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.139706
  Index      = 3.88239
  Normalizat = 0.842562
  Prefactor  = 1.00191
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.856     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13971        3.1658        .17335E-04   -1.5633    
   2  Index         3.8824        3.1447        .28784E-02   -.22543    
   3  Normalizat    .84256        .21627        .28427E-03   -.98509    
   4  Prefactor     1.0019        .17338        .21493E-03   -.92666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58538e-07
Minuit parameter uncertainties:
  1  1.32968
  2  3.41807
  3  0.216488
  4  0.173478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896884': 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) = 4826.85613147
delta logL = 1.00973728942

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
543   Normalization:  8.426e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 28.161 1.789
Photon Index (Free Index): 3.88 +/- 3.42
Photon Flux (Free Index): 1.12e-07 +/- 8.13e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.41e-05

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/896884/cmap_HighResolution_321235201_321494401_4FGL_J0152.6+0147_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', comment='SUCCESS', energy_flux2='1.72e-05', dlogl='1.01e+00', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-08-14 19:45:16.878363', photon_index_error2='3.42', photon_index2='3.88', ts='0.53', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.41e-05', EG='0.96', time_epoch_completed='1628995516.88', return_code='0', job_id='896884', GAL2='1.00', EG2='0.84', return_code2='102', photon_flux_error2='8.13e-08', ts2='2.80', photon_index='1.98' WHERE bin_id='316' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:45:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 896884: <4FGL_J0152.6+0147_daily_bin316> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin316> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:29 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:32:11 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:32:11 2021
Terminated at Sat Aug 14 19:45:19 2021
Results reported at Sat Aug 14 19:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin316 28.1614 1.7894 321235201 321494401 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 :                                   765.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            890 sec.

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

