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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin770
RA = 28.1614, Dec = 1.7894
tmin = 438912001, tmax = 439171201
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='899790', job_status='RUN', time_executed='2021-08-14 19:44:48.198918', time_epoch_executed='1628995488.2' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899790/ft1_4FGL_J0152.6+0147_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899790/ft2_4FGL_J0152.6+0147_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899790/ft1_4FGL_J0152.6+0147_daily_bin770.fits outfile=/scratch/kocevski/899790/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin770.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=438912001.0 tmax=439171201.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.28
user 5.83
sys 1.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899790/ft1_filtered_4FGL_J0152.6+0147_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/899790/ft2_4FGL_J0152.6+0147_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/899790/ltcube_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.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/899790/ft2_4FGL_J0152.6+0147_daily_bin770.fits
.....................!
real 14.92
user 13.10
sys 1.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899790/ft1_filtered_4FGL_J0152.6+0147_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/899790/ft2_4FGL_J0152.6+0147_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/899790/ltcube_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.fits outfile=/scratch/kocevski/899790/expmap_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.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/899790/ltcube_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.fits
.....................!
real 192.56
user 185.48
sys 6.63

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/899790/ft1_filtered_4FGL_J0152.6+0147_daily_bin770.fits scfile=/scratch/kocevski/899790/ft2_4FGL_J0152.6+0147_daily_bin770.fits outfile=/scratch/kocevski/899790/cmap_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.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.73
user 0.39
sys 1.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899790/ft1_filtered_4FGL_J0152.6+0147_daily_bin770.fits scfile=/scratch/kocevski/899790/ft2_4FGL_J0152.6+0147_daily_bin770.fits outfile=/scratch/kocevski/899790/cmap_HighResolution_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.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.82
user 0.42
sys 1.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17270E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    5.1364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7537       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13533E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17582E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    28.620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0269       1.0000         .10000E-03   10000.    
    14 'norm      '    .64866       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.829       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1872       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83416       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=   4431.403     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1768 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    432.62       -.97243E-04** at limit **
   2  norm          5.1394        2.7575       -.91623E-07    .46621E-03
   3  Prefactor     .10000E-03    41.948       -.17243E-05** at limit **
   4  Prefactor     6.7541        10.619        .23756E-05   -.71698E-04
   5  Prefactor     .10000E-03    24.764       -.50769E-07** at limit **
   6  Prefactor     .10000E-03    320.45        .76866E-04** at limit **
   7  norm          11.199        7.9257       -.69900E-05   -.23991E-05
   8  Prefactor     .10000E-03    216.03        .84004E-05** at limit **
   9  Prefactor     .10000E-03    2.5433       -.23842E-07** at limit **
  10  norm          .10000E-03    17.571        .16981E-06** at limit **
  11  Prefactor     .10000E-03    2.9150       -.52068E-07** at limit **
  12  norm          28.619        9.6033        .19735E-05   -.20121E-04
  13  Prefactor     7.0258        3.8898       -.91711E-06   -.16403E-03
  14  norm          .64839        .65467       -.11765E-07   -.20375E-03
  15  Prefactor     17.837        19.451        .10844E-04   -.45564E-05
  16  Prefactor     .10000E-03    37.196        .22559E-05** at limit **
  17  Prefactor     .10000E-03    11.324        .28966E-07** at limit **
  18  Prefactor     .10000E-03    8.4360       -.25868E-08** at limit **
  19  Normalizat    1.1873        .22314        .10352E-05   -.12007E-03
  20  Prefactor     .83426        .17998       -.18002E-05   -.49078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 5.13938
  Prefactor  = 0.0001
  Prefactor  = 6.75413
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 11.1989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.619
  Prefactor  = 7.02579
  norm       = 0.648394
  Prefactor  = 17.8367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18734
  Prefactor  = 0.834262
 **********
 **   18 **HESSE 
 **********

 FCN=   4431.403     FROM HESSE     STATUS=OK           287 CALLS     2055 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    434.27        .18218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.1394        2.7506        .75699E-04   -1.5255    
   3  Prefactor     .10000E-03    41.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7541        10.614        .15440E-03   -1.5188    
   5  Prefactor     .10000E-03    25.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    323.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.199        7.9313        .11972E-03   -1.5039    
   8  Prefactor     .10000E-03    217.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5560        .10366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9199        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.619        9.6143        .74888E-04   -1.4638    
  13  Prefactor     7.0258        3.8890        .91240E-04   -1.5178    
  14  norm          .64839        .63987        .52391E-04   -1.5547    
  15  Prefactor     17.837        19.464        .94854E-04   -1.4863    
  16  Prefactor     .10000E-03    37.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1873        .25991        .26065E-03   -.86995    
  20  Prefactor     .83426        .20949        .24646E-03   -.98477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14873e-10
Minuit parameter uncertainties:
  1  0.0012076
  2  2.75066
  3  6.40817e-05
  4  10.6167
  5  8.94198e-05
  6  0.00165975
  7  7.93209
  8  0.000612354
  9  1.86136e-07
  10  4.66934e-06
  11  5.92057e-06
  12  9.61486
  13  3.88914
  14  0.639881
  15  19.4704
  16  2.56481e-05
  17  2.80837e-06
  18  1.51784e-05
  19  0.26019
  20  0.209688
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.861e-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:  8.343e-01  2.097e-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.187e+00  2.602e-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: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899790/likelihoodResults_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.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) = 4431.40494285
delta logL = -0.00184360361345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4431.40309926
delta logL = -9.52877599047e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9801       1.0000          .0000       10.000    
     3 'Normalizat'    1.1873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83428       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=   4431.403     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.832        .90712E-02** at limit **
   2  Index         1.9763        7.0815        .50000        .11654E-04
   3  Normalizat    1.1873        .15815E-01    .58939E-01    .17431E-03
   4  Prefactor     .83426        .12839E-01    .44162E-01    .29340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97627
  Normalizat = 1.18734
  Prefactor  = 0.834263
 **********
 **   18 **HESSE 
 **********

 FCN=   4431.403     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      230 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    563.28        .10373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9763        6.3315        .50000       -.64945    
   3  Normalizat    1.1873        .16268        .26065E-03   -.86995    
   4  Prefactor     .83426        .13195        .24646E-03   -.98477    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2282e-07
Minuit parameter uncertainties:
  1  0.00090183
  2  59.6768
  3  0.162752
  4  0.131999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899790': 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) = 4431.40309923
delta logL = 2.2805579647e-08

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  9.018e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.976e+00  5.968e+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:  8.343e-01  1.320e-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.187e+00  1.628e-01  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/899790/cmap_HighResolution_438912001_439171201_4FGL_J0152.6+0147_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-08-14 19:53:49.939142', job_id='899790', GAL2='0.83', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1628996029.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='770' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:53:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 899790: <4FGL_J0152.6+0147_daily_bin770> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin770 28.1614 1.7894 438912001 439171201 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 :                                   559.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            800 sec.

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

