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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin657
RA = 28.1614, Dec = 1.7894
tmin = 409622401, tmax = 409881601
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='898544', job_status='RUN', time_executed='2021-08-14 19:41:38.390520', time_epoch_executed='1628995298.39' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898544/ft1_4FGL_J0152.6+0147_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898544/ft2_4FGL_J0152.6+0147_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898544/ft1_4FGL_J0152.6+0147_daily_bin657.fits outfile=/scratch/kocevski/898544/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin657.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=409622401.0 tmax=409881601.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 10.80
user 5.44
sys 5.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898544/ft2_4FGL_J0152.6+0147_daily_bin657.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/898544/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin657.fits evtable="EVENTS" outfile="/scratch/kocevski/898544/ft1_filtered_4FGL_J0152.6+0147_daily_bin657.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 5.55
user 0.33
sys 5.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898544/ft1_filtered_4FGL_J0152.6+0147_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/898544/ft2_4FGL_J0152.6+0147_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/898544/ltcube_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.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/898544/ft2_4FGL_J0152.6+0147_daily_bin657.fits
.....................!
real 18.27
user 12.19
sys 5.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898544/ft1_filtered_4FGL_J0152.6+0147_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/898544/ft2_4FGL_J0152.6+0147_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/898544/ltcube_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.fits outfile=/scratch/kocevski/898544/expmap_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.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/898544/ltcube_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.fits
.....................!
real 198.84
user 185.90
sys 11.55

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/898544/ft1_filtered_4FGL_J0152.6+0147_daily_bin657.fits scfile=/scratch/kocevski/898544/ft2_4FGL_J0152.6+0147_daily_bin657.fits outfile=/scratch/kocevski/898544/cmap_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.48
user 0.37
sys 5.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898544/ft1_filtered_4FGL_J0152.6+0147_daily_bin657.fits scfile=/scratch/kocevski/898544/ft2_4FGL_J0152.6+0147_daily_bin657.fits outfile=/scratch/kocevski/898544/cmap_HighResolution_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=28.1614 yref=1.7894 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.54
user 0.38
sys 4.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13716E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    10.869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1121       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.0926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.6693       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4059       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    112.67       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.364       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76958       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91730       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=   3805.025     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2020 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    855.34       -.10711E-04** at limit **
   2  norm          10.872        3.3176       -.15911E-05   -.40797E-04
   3  Prefactor     3.9510        245.76        .57071E-06   -.28307E-05
   4  Prefactor     .10000E-03    10.927        .27136E-05** at limit **
   5  Prefactor     2.8620        8.0178        .86079E-06    .25907E-07
   6  Prefactor     .10000E-03    36.694       -.41189E-07** at limit **
   7  norm          5.1139        7.7187        .36586E-06   -.48049E-05
   8  Prefactor     .10000E-03    144.49        .57846E-06** at limit **
   9  Prefactor     .10000E-03    2.3080       -.15872E-07** at limit **
  10  norm          8.0913        11.264        .54108E-07   -.14095E-05
  11  Prefactor     .10000E-03    1.9718       -.11911E-07** at limit **
  12  norm          6.6675        4.4112        .17131E-07    .19446E-06
  13  Prefactor     2.4057        2.2507        .80108E-07    .90378E-05
  14  norm          .10000E-03    .39131       -.33652E-07** at limit **
  15  Prefactor     .10000E-03    7.7892        .22540E-07** at limit **
  16  Prefactor     112.68        85.219        .18594E-06    .63998E-05
  17  Prefactor     14.363        16.384        .27161E-06    .23589E-06
  18  Prefactor     .10000E-03    17.893        .70202E-07** at limit **
  19  Normalizat    .76962        .20104       -.10858E-05   -.25767E-04
  20  Prefactor     .91734        .16411        .48079E-08   -.59616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 10.8723
  Prefactor  = 3.95102
  Prefactor  = 0.0001
  Prefactor  = 2.86195
  Prefactor  = 0.0001
  norm       = 5.11389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.09135
  Prefactor  = 0.0001
  norm       = 6.66753
  Prefactor  = 2.40566
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 112.684
  Prefactor  = 14.3629
  Prefactor  = 0.0001
  Normalizat = 0.769624
  Prefactor  = 0.917343
 **********
 **   18 **HESSE 
 **********

 FCN=   3805.025     FROM HESSE     STATUS=OK           293 CALLS     2313 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    854.97        .18183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.872        3.3108        .59256E-04   -1.5048    
   3  Prefactor     3.9510        241.27        .20394E-03   -1.5310    
   4  Prefactor     .10000E-03    11.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8620        7.9878        .24022E-03   -1.5370    
   6  Prefactor     .10000E-03    36.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1139        7.7124        .17782E-03   -1.5256    
   8  Prefactor     .10000E-03    144.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3226        .91506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.0913        11.267        .14094E-03   -1.5139    
  11  Prefactor     .10000E-03    1.9738        .84592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.6675        4.4136        .10219E-03   -1.5191    
  13  Prefactor     2.4057        2.2415        .85925E-04   -1.5398    
  14  norm          .10000E-03    .63400        .74626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7936        .16815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     112.68        85.271        .18949E-03   -1.3581    
  17  Prefactor     14.363        16.423        .10568E-03   -1.4950    
  18  Prefactor     .10000E-03    17.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .76962        .22794        .26545E-03   -1.0121    
  20  Prefactor     .91734        .18742        .20325E-03   -.95538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21913e-11
Minuit parameter uncertainties:
  1  0.00284728
  2  3.31086
  3  62.0123
  4  0.000139158
  5  7.99076
  6  3.97177e-05
  7  7.71385
  8  0.000482417
  9  2.93706e-06
  10  11.2695
  11  8.32949e-07
  12  4.4138
  13  2.24155
  14  6.99826e-06
  15  1.75356e-06
  16  85.3637
  17  16.4281
  18  1.00156e-05
  19  0.228225
  20  0.187556
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.173e-01  1.876e-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.696e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898544/likelihoodResults_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.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) = 3805.02671511
delta logL = -0.00203496795211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3805.02467995
delta logL = 1.88692411029e-07

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.9683       1.0000          .0000       10.000    
     3 'Normalizat'    .76963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91736       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3805.025     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10292E-03    121.87        .92412E-02** at limit **
   2  Index         1.7540        5.5421        .20000E-01    .23221E-04
   3  Normalizat    .76962        .37830E-01    .26545E-03   -.18780E-04
   4  Prefactor     .91734        .31580E-01    .20325E-03   -.54816E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3805.025     FROM SIMPLEX   STATUS=PROGRESS     134 CALLS      365 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    121.87        .19019E-03** at limit **
   2  Index         1.7537        5.5421        .90123E-04    .23221E-04
   3  Normalizat    .76961        .37830E-01    .84676E-05   -.18780E-04
   4  Prefactor     .91733        .31580E-01    .52782E-05   -.54816E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3805.025     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      408 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0122        .96847E-03** at limit **
   2  Index         1.5731        6.2663        .40000E-01   -.35527E-08
   3  Normalizat    .76962        .22008        .10618E-04   -.11778E-04
   4  Prefactor     .91734        .18382        .81300E-05    .66562E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.57313
  Normalizat = 0.769623
  Prefactor  = 0.917345
 **********
 **   18 **HESSE 
 **********

 FCN=   3805.025     FROM HESSE     STATUS=OK            23 CALLS      431 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6670        .19369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5731        8.0062        .16000E-02   -.75512    
   3  Normalizat    .76962        .22003        .21236E-05   -1.0121    
   4  Prefactor     .91734        .18378        .16260E-05   -.95538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01895e-11
Minuit parameter uncertainties:
  1  1.10077e-05
  2  170.806
  3  0.220288
  4  0.183904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898544': 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): 0
logL (Free Index) = 3805.02467736
delta logL = 2.77863273368e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.101e-05  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.573e+00  1.708e+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:  9.173e-01  1.839e-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.696e-01  2.203e-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/898544/cmap_HighResolution_409622401_409881601_4FGL_J0152.6+0147_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-08-14 19:51:28.088765', job_id='898544', GAL2='0.92', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1628995888.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='657' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 898544: <4FGL_J0152.6+0147_daily_bin657> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin657> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:50 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:38:20 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:38:20 2021
Terminated at Sat Aug 14 19:51:29 2021
Results reported at Sat Aug 14 19:51:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin657 28.1614 1.7894 409622401 409881601 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            939 sec.

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

