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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin245
RA = 28.1614, Dec = 1.7894
tmin = 302832001, tmax = 303091201
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='896783', job_status='RUN', time_executed='2021-08-14 19:35:29.888784', time_epoch_executed='1628994929.89' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896783/ft1_4FGL_J0152.6+0147_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896783/ft2_4FGL_J0152.6+0147_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896783/ft1_4FGL_J0152.6+0147_daily_bin245.fits outfile=/scratch/kocevski/896783/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin245.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=302832001.0 tmax=303091201.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 12.20
user 3.26
sys 7.99

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896783/ft2_4FGL_J0152.6+0147_daily_bin245.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/896783/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin245.fits evtable="EVENTS" outfile="/scratch/kocevski/896783/ft1_filtered_4FGL_J0152.6+0147_daily_bin245.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.86
user 0.35
sys 8.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896783/ft1_filtered_4FGL_J0152.6+0147_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/896783/ft2_4FGL_J0152.6+0147_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/896783/ltcube_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.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/896783/ft2_4FGL_J0152.6+0147_daily_bin245.fits
.....................!
real 24.24
user 14.34
sys 9.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896783/ft1_filtered_4FGL_J0152.6+0147_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/896783/ft2_4FGL_J0152.6+0147_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/896783/ltcube_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.fits outfile=/scratch/kocevski/896783/expmap_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.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/896783/ltcube_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.fits
.....................!
real 204.53
user 186.84
sys 15.17

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/896783/ft1_filtered_4FGL_J0152.6+0147_daily_bin245.fits scfile=/scratch/kocevski/896783/ft2_4FGL_J0152.6+0147_daily_bin245.fits outfile=/scratch/kocevski/896783/cmap_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.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 7.55
user 0.38
sys 7.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896783/ft1_filtered_4FGL_J0152.6+0147_daily_bin245.fits scfile=/scratch/kocevski/896783/ft2_4FGL_J0152.6+0147_daily_bin245.fits outfile=/scratch/kocevski/896783/cmap_HighResolution_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.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.43
user 0.38
sys 7.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9028       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11255E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2051       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1742       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3802       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11959E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26603E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63443       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73885       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0962       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.

 FCN=   4780.668     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     2351 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.874        .18142E-02** at limit **
   2  norm          1.9030        1.5166        .73561E-04    .71571E-03
   3  Prefactor     .10000E-03    28.165        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.6697        .11011E-02** at limit **
   5  Prefactor     3.2036        5.7876        .21834E-03    .18989E-03
   6  Prefactor     .10000E-03    43.085        .18142E-02** at limit **
   7  norm          4.1745        4.9869        .16455E-03   -.40141E-04
   8  Prefactor     .10000E-03    29.677        .18142E-02** at limit **
   9  Prefactor     .10000E-03    4.8248        .14661E-02** at limit **
  10  norm          14.162        14.109        .10644E-03   -.14035E-04
  11  Prefactor     .10000E-03    1.6436        .86533E-03** at limit **
  12  norm          20.550        7.8972        .88374E-04   -.64450E-04
  13  Prefactor     1.3796        1.5451        .88346E-04    .34101E-03
  14  norm          1.5305        .87634        .47121E-04    .11002E-03
  15  Prefactor     .10000E-03    8.7005        .18142E-02** at limit **
  16  Prefactor     .10005E-03    49.503        .16507    ** at limit **
  17  Prefactor     .10000E-03    4.5704        .14429E-02** at limit **
  18  Prefactor     .63812        110.41        .50841E-02    .37439E-03
  19  Normalizat    .73899        .22049        .28848E-03   -.57537E-05
  20  Prefactor     1.0960        .18969        .20144E-03   -.58253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2036
  Prefactor  = 0.0001
  norm       = 4.17454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1624
  Prefactor  = 0.0001
  norm       = 20.5499
  Prefactor  = 1.37958
  norm       = 1.53052
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 0.63812
  Normalizat = 0.738987
  Prefactor  = 1.09598
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.668     FROM HESSE     STATUS=OK           283 CALLS     2634 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9030        1.5165        .29425E-05   -1.5432    
   3  Prefactor     .10000E-03    28.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6699        .22022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2036        5.7875        .87336E-05   -1.5350    
   6  Prefactor     .10000E-03    43.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1745        4.9868        .65820E-05   -1.5299    
   8  Prefactor     .10000E-03    29.677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8276        .29322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.162        14.109        .21288E-04   -1.4955    
  11  Prefactor     .10000E-03    1.6436        .17307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.550        7.8967        .35350E-05   -1.4801    
  13  Prefactor     1.3796        1.5451        .17669E-04   -1.5473    
  14  norm          1.5305        .87634        .18848E-05   -1.5461    
  15  Prefactor     .10000E-03    8.7010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10005E-03    49.533        .16493       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5705        .28857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .63812        111.45        .20336E-03   -1.5548    
  19  Normalizat    .73899        .22046        .11539E-04   -1.0237    
  20  Prefactor     1.0960        .18921        .40287E-04   -.89595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59644e-09
Minuit parameter uncertainties:
  1  1.93964e-05
  2  1.51652
  3  0.000117409
  4  3.41708e-06
  5  5.78851
  6  3.2967e-05
  7  4.98728
  8  8.11083e-05
  9  4.38753e-05
  10  14.1119
  11  1.2768e-05
  12  7.89714
  13  1.54513
  14  0.876344
  15  3.16829e-05
  16  0.00306498
  17  1.27357e-05
  18  16.8967
  19  0.22073
  20  0.189326
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  4.388e-05  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:  1.096e+00  1.893e-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:  7.390e-01  2.207e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896783/likelihoodResults_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.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) = 4780.66858183
delta logL = -0.000987817862551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4780.66759408
delta logL = -7.13407644071e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9873       1.0000          .0000       10.000    
     3 'Normalizat'    .73897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0960       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=   4780.668     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.767        .90712E-02** at limit **
   2  Index         1.9905        5.5438        .50000       -.54424E-05
   3  Normalizat    .73898        .10460E-01    .65205E-01    .23828E-04
   4  Prefactor     1.0960        .87854E-02    .37740E-01    .13572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99048
  Normalizat = 0.738981
  Prefactor  = 1.09599
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.668     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    846.08        .14664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9905        5.9923        .50000       -.64588    
   3  Normalizat    .73898        .95260E-01    .28848E-03   -1.0237    
   4  Prefactor     1.0960        .80026E-01    .20144E-03   -.89595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76205e-09
Minuit parameter uncertainties:
  1  0.000302473
  2  53.6757
  3  0.0952811
  4  0.0800349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896783': 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) = 4780.667594
delta logL = 9.55878931563e-09

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.025e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.990e+00  5.368e+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:  1.096e+00  8.003e-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:  7.390e-01  9.528e-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/896783/cmap_HighResolution_302832001_303091201_4FGL_J0152.6+0147_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-08-14 19:46:50.814292', job_id='896783', GAL2='1.10', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1628995610.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='9.56e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='245' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:46:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 896783: <4FGL_J0152.6+0147_daily_bin245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin245 28.1614 1.7894 302832001 303091201 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 :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            990 sec.

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

