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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin615
RA = 28.1614, Dec = 1.7894
tmin = 398736001, tmax = 398995201
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='898482', job_status='RUN', time_executed='2021-08-14 19:39:45.790158', time_epoch_executed='1628995185.79' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898482

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898482/ft1_4FGL_J0152.6+0147_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898482/ft2_4FGL_J0152.6+0147_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898482/ft1_4FGL_J0152.6+0147_daily_bin615.fits outfile=/scratch/kocevski/898482/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin615.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.81
user 5.83
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898482/ft2_4FGL_J0152.6+0147_daily_bin615.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/898482/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/898482/ft1_filtered_4FGL_J0152.6+0147_daily_bin615.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.17
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898482/ft1_filtered_4FGL_J0152.6+0147_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/898482/ft2_4FGL_J0152.6+0147_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/898482/ltcube_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.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/898482/ft2_4FGL_J0152.6+0147_daily_bin615.fits
.....................!
real 13.59
user 12.44
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898482/ft1_filtered_4FGL_J0152.6+0147_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/898482/ft2_4FGL_J0152.6+0147_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/898482/ltcube_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.fits outfile=/scratch/kocevski/898482/expmap_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.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/898482/ltcube_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.fits
.....................!
real 192.97
user 186.27
sys 6.21

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/898482/ft1_filtered_4FGL_J0152.6+0147_daily_bin615.fits scfile=/scratch/kocevski/898482/ft2_4FGL_J0152.6+0147_daily_bin615.fits outfile=/scratch/kocevski/898482/cmap_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.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.22
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898482/ft1_filtered_4FGL_J0152.6+0147_daily_bin615.fits scfile=/scratch/kocevski/898482/ft2_4FGL_J0152.6+0147_daily_bin615.fits outfile=/scratch/kocevski/898482/cmap_HighResolution_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.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.20
user 0.37
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    203.00       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    170.64       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.508       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.945       1.0000         .10000E-03   10000.    
     7 'norm      '    .16798E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30080E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.706       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3747       1.0000         .10000E-03   10000.    
    14 'norm      '    .90469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.254       1.0000         .10000E-03   10000.    
    16 'Prefactor '    165.03       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.380       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80691       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=   2170.256     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2025 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     203.03        156.94        .17013E-04    .86864E-07
   2  norm          5.1729        3.1415       -.51228E-06    .33395E-04
   3  Prefactor     170.69        164.79        .34320E-04    .13293E-04
   4  Prefactor     5.8401        27.382       -.71836E-05   -.90859E-04
   5  Prefactor     19.480        28.606       -.13901E-04   -.12997E-04
   6  Prefactor     65.955        75.499        .10007E-04    .14484E-05
   7  norm          .10000E-03    16.166        .17487E-05** at limit **
   8  Prefactor     .10000E-03    169.59       -.31173E-04** at limit **
   9  Prefactor     .10000E-03    3.5144        .18082E-07** at limit **
  10  norm          15.005        20.538       -.12563E-05   -.51576E-05
  11  Prefactor     .10000E-03    3.2976       -.44541E-07** at limit **
  12  norm          27.708        10.957        .42279E-05   -.22559E-05
  13  Prefactor     5.3753        4.3594       -.10946E-06   -.80271E-04
  14  norm          .90591        1.4731       -.66235E-08   -.37205E-03
  15  Prefactor     31.266        39.597        .10579E-04   -.40995E-05
  16  Prefactor     165.02        141.13       -.10293E-04   -.23839E-05
  17  Prefactor     11.379        17.187       -.26620E-06   -.92840E-05
  18  Prefactor     .10000E-03    12.514       -.15352E-07** at limit **
  19  Normalizat    1.0048        .32756       -.25084E-05   -.16890E-04
  20  Prefactor     .80664        .25995       -.10570E-05   -.56150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 203.028
  norm       = 5.17293
  Prefactor  = 170.686
  Prefactor  = 5.84012
  Prefactor  = 19.48
  Prefactor  = 65.9546
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0046
  Prefactor  = 0.0001
  norm       = 27.7083
  Prefactor  = 5.37528
  norm       = 0.90591
  Prefactor  = 31.2656
  Prefactor  = 165.018
  Prefactor  = 11.3788
  Prefactor  = 0.0001
  Normalizat = 1.00478
  Prefactor  = 0.806639
 **********
 **   18 **HESSE 
 **********

 FCN=   2170.256     FROM HESSE     STATUS=OK           305 CALLS     2330 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     203.03        156.99        .14182E-03   -1.2848    
   2  norm          5.1729        3.1378        .60081E-04   -1.5253    
   3  Prefactor     170.69        163.81        .15443E-03   -1.3088    
   4  Prefactor     5.8401        26.765        .16550E-03   -1.5225    
   5  Prefactor     19.480        28.610        .90682E-04   -1.4825    
   6  Prefactor     65.955        75.557        .24711E-03   -1.4082    
   7  norm          .10000E-03    55.504        .36334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    169.46        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5204        .85294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.005        20.543        .10341E-03   -1.4933    
  11  Prefactor     .10000E-03    3.2995        .82624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.708        10.961        .76111E-04   -1.4655    
  13  Prefactor     5.3753        4.3541        .82515E-04   -1.5244    
  14  norm          .90591        1.4109        .67761E-03   -1.5518    
  15  Prefactor     31.266        39.623        .71671E-04   -1.4589    
  16  Prefactor     165.02        141.09        .15699E-03   -1.3132    
  17  Prefactor     11.379        17.185        .11876E-03   -1.5033    
  18  Prefactor     .10000E-03    12.519        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0048        .37250        .27524E-03   -.92871    
  20  Prefactor     .80664        .29753        .24522E-03   -.99484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98022e-10
Minuit parameter uncertainties:
  1  157.32
  2  3.13789
  3  164.247
  4  25.0232
  5  28.6299
  6  75.6672
  7  0.000663309
  8  0.000333884
  9  2.9028e-06
  10  20.5523
  11  7.6698e-06
  12  10.9617
  13  4.35433
  14  1.4109
  15  39.6568
  16  141.378
  17  17.1929
  18  1.57806e-05
  19  0.373467
  20  0.298122
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  2.903e-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:  8.066e-01  2.981e-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.005e+00  3.735e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898482/likelihoodResults_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.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) = 2170.25773671
delta logL = -0.00129780221459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2170.2564386
delta logL = 3.02891294268e-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.9572       1.0000          .0000       10.000    
     3 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80651       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=   2170.256     FROM MIGRAD    STATUS=FAILED        87 CALLS      231 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    62.127        .87893E-03** at limit **
   2  Index         1.8886        7.9992        .50000        .51766E-04
   3  Normalizat    1.0048        .32823E-01    .27524E-03   -.10946E-04
   4  Prefactor     .80664        .26621E-01    .24522E-03    .30366E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2170.256     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      367 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    62.127        .32957E-03** at limit **
   2  Index         1.8886        7.9992        .36185E-03    .51766E-04
   3  Normalizat    1.0048        .32823E-01    .74612E-05   -.10946E-04
   4  Prefactor     .80664        .26621E-01    .77185E-05    .30366E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2170.256     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      416 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.568        .17579E-02** at limit **
   2  Index         1.3940        7.4575        .50000        .30354E-08
   3  Normalizat    1.0048        .35650E-01    .11010E-04    .15448E-03
   4  Prefactor     .80664        .28915E-01    .98090E-05    .16087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.39397
  Normalizat = 1.00478
  Prefactor  = 0.80664
 **********
 **   18 **HESSE 
 **********

 FCN=   2170.256     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      445 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    415.16        .35157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3940        6.7566        .50000       -.80554    
   3  Normalizat    1.0048        .81305E-01    .22019E-05   -.92871    
   4  Prefactor     .80664        .65936E-01    .19618E-05   -.99484    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18778e-09
Minuit parameter uncertainties:
  1  0.000356655
  2  976.585
  3  0.0813147
  4  0.0659421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898482': 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) = 2170.25643447
delta logL = 4.43933095085e-06

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  3.567e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.394e+00  9.766e+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.066e-01  6.594e-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.005e+00  8.131e-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/898482/cmap_HighResolution_398736001_398995201_4FGL_J0152.6+0147_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-14 19:47:16.801113', job_id='898482', GAL2='0.81', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1628995636.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='615' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:47:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 898482: <4FGL_J0152.6+0147_daily_bin615> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin615> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:46 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:37:43 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:43 2021
Terminated at Sat Aug 14 19:47:17 2021
Results reported at Sat Aug 14 19:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin615 28.1614 1.7894 398736001 398995201 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 :                                   458.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            691 sec.

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

