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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin557
RA = 28.1614, Dec = 1.7894
tmin = 383702401, tmax = 383961601
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='898399', job_status='RUN', time_executed='2021-08-14 19:40:53.810208', time_epoch_executed='1628995253.81' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898399/ft1_4FGL_J0152.6+0147_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898399/ft2_4FGL_J0152.6+0147_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898399/ft1_4FGL_J0152.6+0147_daily_bin557.fits outfile=/scratch/kocevski/898399/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin557.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=383702401.0 tmax=383961601.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 3.76
user 3.46
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898399/ft2_4FGL_J0152.6+0147_daily_bin557.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/898399/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin557.fits evtable="EVENTS" outfile="/scratch/kocevski/898399/ft1_filtered_4FGL_J0152.6+0147_daily_bin557.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 0.47
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898399/ft1_filtered_4FGL_J0152.6+0147_daily_bin557.fits" evtable="EVENTS" scfile=/scratch/kocevski/898399/ft2_4FGL_J0152.6+0147_daily_bin557.fits sctable="SC_DATA" outfile=/scratch/kocevski/898399/ltcube_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.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/898399/ft2_4FGL_J0152.6+0147_daily_bin557.fits
.....................!
real 11.04
user 10.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898399/ft1_filtered_4FGL_J0152.6+0147_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/898399/ft2_4FGL_J0152.6+0147_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/898399/ltcube_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.fits outfile=/scratch/kocevski/898399/expmap_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.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/898399/ltcube_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.fits
.....................!
real 156.45
user 150.48
sys 5.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/898399/ft1_filtered_4FGL_J0152.6+0147_daily_bin557.fits scfile=/scratch/kocevski/898399/ft2_4FGL_J0152.6+0147_daily_bin557.fits outfile=/scratch/kocevski/898399/cmap_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.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 0.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898399/ft1_filtered_4FGL_J0152.6+0147_daily_bin557.fits scfile=/scratch/kocevski/898399/ft2_4FGL_J0152.6+0147_daily_bin557.fits outfile=/scratch/kocevski/898399/cmap_HighResolution_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.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 0.48
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11324E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32394E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2827       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2580       1.0000         .10000E-03   10000.    
    12 'norm      '    27.208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0749       1.0000         .10000E-03   10000.    
    14 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9924       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75769E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1219       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84234       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=   5333.310     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2136 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.579       -.23491E-06** at limit **
   2  norm          4.1166        2.0766       -.14276E-06   -.69536E-03
   3  Prefactor     64.002        56.390       -.25019E-05   -.23238E-03
   4  Prefactor     .10002E-03    32.100       -.73095E-06** at limit **
   5  Prefactor     .10000E-03    15.490        .47534E-06** at limit **
   6  Prefactor     .10000E-03    50.818        .94683E-06** at limit **
   7  norm          1.2841        4.8470       -.13612E-05   -.15163E-03
   8  Prefactor     11.230        57.820       -.48427E-06   -.12414E-04
   9  Prefactor     .10000E-03    1.5621        .54892E-07** at limit **
  10  norm          .10000E-03    17.540        .63834E-07** at limit **
  11  Prefactor     2.2687        6.0145       -.92621E-06   -.84701E-04
  12  norm          27.208        8.0528       -.69815E-07   -.24856E-03
  13  Prefactor     2.0745        2.3993       -.30662E-06   -.25435E-05
  14  norm          .10000E-03    .66181       -.83546E-07** at limit **
  15  Prefactor     3.9210        46.771        .32652E-05    .96847E-04
  16  Prefactor     .10000E-03    36.917       -.71638E-06** at limit **
  17  Prefactor     14.274        17.720       -.11998E-06   -.52729E-05
  18  Prefactor     .10270E-03    58.034       -.57587E-05** at limit **
  19  Normalizat    1.1218        .19544       -.48689E-06    .94946E-04
  20  Prefactor     .84211        .15804        .70055E-06    .11371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.11655
  Prefactor  = 64.0018
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.28415
  Prefactor  = 11.23
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.26874
  norm       = 27.2079
  Prefactor  = 2.07454
  norm       = 0.0001
  Prefactor  = 3.92105
  Prefactor  = 0.0001
  Prefactor  = 14.2745
  Prefactor  = 0.000102704
  Normalizat = 1.12177
  Prefactor  = 0.842109
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.310     FROM HESSE     STATUS=OK           303 CALLS     2439 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1166        2.0761        .71305E-04   -1.5302    
   3  Prefactor     64.002        56.593        .50163E-04   -1.4106    
   4  Prefactor     .10002E-03    33.911        .39351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2841        4.8210        .30401E-03   -1.5481    
   8  Prefactor     11.230        57.811        .11963E-03   -1.5038    
   9  Prefactor     .10000E-03    1.5708        .89126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2687        5.9941        .27339E-03   -1.5407    
  12  norm          27.208        8.0683        .76802E-04   -1.4664    
  13  Prefactor     2.0745        2.3789        .11399E-03   -1.5420    
  14  norm          .10000E-03    1.3309        .11380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9210        48.604        .20185E-03   -1.5312    
  16  Prefactor     .10000E-03    36.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.274        17.804        .10602E-03   -1.4952    
  18  Prefactor     .10270E-03    28.251        .99246E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1218        .22676        .25553E-03   -.89056    
  20  Prefactor     .84211        .18351        .23303E-03   -.98194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69108e-09
Minuit parameter uncertainties:
  1  0.000264368
  2  2.07613
  3  56.6409
  4  0.00167473
  5  2.08398e-05
  6  0.000359267
  7  4.82247
  8  51.0373
  9  1.84479e-07
  10  1.96282e-05
  11  5.99566
  12  8.06861
  13  2.37902
  14  6.00095e-06
  15  27.6375
  16  0.000226642
  17  17.8102
  18  0.0174891
  19  0.22696
  20  0.18364
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.845e-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.421e-01  1.836e-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.122e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898399/likelihoodResults_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.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) = 5333.3128843
delta logL = -0.00296218701806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5333.30992148
delta logL = 6.34167918179e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9571       1.0000          .0000       10.000    
     3 'Normalizat'    1.1217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84216       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=   5333.310     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      215 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8837        .90712E-02** at limit **
   2  Index         1.5129        8.1765        .50000        .24877E-06
   3  Normalizat    1.1218        .69286E-02    .57783E-01   -.15442E-03
   4  Prefactor     .84211        .55851E-02    .44263E-01   -.17037E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.51294
  Normalizat = 1.12177
  Prefactor  = 0.842109
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.310     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.573        .10224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5129        9.2264        .50000       -.77178    
   3  Normalizat    1.1218        .21899E-01    .25553E-03   -.89056    
   4  Prefactor     .84211        .17658E-01    .23303E-03   -.98194    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23763e-10
Minuit parameter uncertainties:
  1  0.000100833
  2  194.659
  3  0.0218987
  4  0.0176578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898399': 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) = 5333.30991459
delta logL = 7.5294965427e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.421e-01  1.766e-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.122e+00  2.190e-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/898399/cmap_HighResolution_383702401_383961601_4FGL_J0152.6+0147_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-08-14 19:48:49.750099', job_id='898399', GAL2='0.84', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1628995729.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='557' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:48:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 898399: <4FGL_J0152.6+0147_daily_bin557> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin557> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:40 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:37:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:37:02 2021
Terminated at Sat Aug 14 19:48:50 2021
Results reported at Sat Aug 14 19:48:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin557 28.1614 1.7894 383702401 383961601 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 :                                   474.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            790 sec.

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

