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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin134
RA = 28.1614, Dec = 1.7894
tmin = 274060801, tmax = 274320001
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='895705', job_status='RUN', time_executed='2021-08-14 19:32:14.049919', time_epoch_executed='1628994734.05' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895705

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895705/ft1_4FGL_J0152.6+0147_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895705/ft2_4FGL_J0152.6+0147_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895705/ft1_4FGL_J0152.6+0147_daily_bin134.fits outfile=/scratch/kocevski/895705/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin134.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=274060801.0 tmax=274320001.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 4.93
user 3.44
sys 1.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895705/ft1_filtered_4FGL_J0152.6+0147_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/895705/ft2_4FGL_J0152.6+0147_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/895705/ltcube_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.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/895705/ft2_4FGL_J0152.6+0147_daily_bin134.fits
.....................!
real 15.29
user 13.81
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895705/ft1_filtered_4FGL_J0152.6+0147_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/895705/ft2_4FGL_J0152.6+0147_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/895705/ltcube_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.fits outfile=/scratch/kocevski/895705/expmap_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.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/895705/ltcube_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.fits
.....................!
real 193.04
user 186.18
sys 6.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/895705/ft1_filtered_4FGL_J0152.6+0147_daily_bin134.fits scfile=/scratch/kocevski/895705/ft2_4FGL_J0152.6+0147_daily_bin134.fits outfile=/scratch/kocevski/895705/cmap_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.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.47
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895705/ft1_filtered_4FGL_J0152.6+0147_daily_bin134.fits scfile=/scratch/kocevski/895705/ft2_4FGL_J0152.6+0147_daily_bin134.fits outfile=/scratch/kocevski/895705/cmap_HighResolution_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.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.44
user 0.38
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.322       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.967       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30612E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .57349E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28085E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    120.63       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.827       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84146       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96482       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=   4805.741     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2059 TOTAL
                     EDM=   .40E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.104        72.547        .74215E-05    .41966E-05
   2  norm          5.5797        2.0058       -.11204E-06    .67770E-04
   3  Prefactor     59.012        53.350       -.10311E-05   -.48941E-07
   4  Prefactor     3.1937        5.8474        .13255E-06    .52034E-05
   5  Prefactor     17.281        14.551       -.14980E-06    .25102E-05
   6  Prefactor     .10000E-03    271.93       -.68785E-05** at limit **
   7  norm          .10000E-03    5.9992       -.13504E-06** at limit **
   8  Prefactor     .10000E-03    41.634        .11279E-05** at limit **
   9  Prefactor     .10000E-03    3.5219        .91428E-08** at limit **
  10  norm          1.6915        14.732        .51231E-05    .39010E-05
  11  Prefactor     10.161        8.2951        .62115E-07    .77101E-05
  12  norm          4.2707        4.0996        .59340E-07   -.67044E-06
  13  Prefactor     .10000E-03    .74453        .36931E-07** at limit **
  14  norm          2.6328        1.1903        .25938E-08    .55054E-05
  15  Prefactor     .10000E-03    20.584        .56860E-07** at limit **
  16  Prefactor     120.66        88.890       -.75169E-06   -.55569E-06
  17  Prefactor     14.827        18.224        .17591E-07    .59243E-06
  18  Prefactor     .10000E-03    9.3251        .30649E-07** at limit **
  19  Normalizat    .84140        .19534        .93001E-06    .29123E-04
  20  Prefactor     .96496        .16063       -.81878E-06    .63989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.1037
  norm       = 5.57966
  Prefactor  = 59.0121
  Prefactor  = 3.1937
  Prefactor  = 17.281
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.69152
  Prefactor  = 10.1608
  norm       = 4.27066
  Prefactor  = 0.0001
  norm       = 2.63282
  Prefactor  = 0.0001
  Prefactor  = 120.659
  Prefactor  = 14.8273
  Prefactor  = 0.0001
  Normalizat = 0.841398
  Prefactor  = 0.964957
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.741     FROM HESSE     STATUS=OK           297 CALLS     2356 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.104        72.647        .24641E-03   -1.4080    
   2  norm          5.5797        2.0052        .55742E-04   -1.5235    
   3  Prefactor     59.012        53.274        .52246E-04   -1.4170    
   4  Prefactor     3.1937        5.8191        .21378E-03   -1.5351    
   5  Prefactor     17.281        14.544        .96317E-04   -1.4876    
   6  Prefactor     .10000E-03    282.21        .39613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.493        .32926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.651        .21417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5981        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6915        14.749        .16171E-02   -1.5448    
  11  Prefactor     10.161        8.3012        .12569E-03   -1.5070    
  12  norm          4.2707        4.1021        .13215E-03   -1.5295    
  13  Prefactor     .10000E-03    .74963        .58378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6328        1.1890        .48170E-04   -1.5383    
  15  Prefactor     .10000E-03    20.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     120.66        88.883        .18321E-03   -1.3507    
  17  Prefactor     14.827        18.236        .10402E-03   -1.4938    
  18  Prefactor     .10000E-03    9.3446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .84140        .21967        .27450E-03   -.98551    
  20  Prefactor     .96496        .18157        .21327E-03   -.93907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26894e-11
Minuit parameter uncertainties:
  1  72.7449
  2  2.00524
  3  53.317
  4  5.82017
  5  14.5474
  6  0.000536641
  7  8.83249e-05
  8  1.9987e-06
  9  1.34688e-06
  10  9.99257
  11  8.30213
  12  4.10238
  13  5.74268e-07
  14  1.18899
  15  1.17524e-05
  16  88.9811
  17  18.243
  18  2.3145e-06
  19  0.219907
  20  0.181683
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.000e-04  1.347e-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.650e-01  1.817e-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:  8.414e-01  2.199e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895705/likelihoodResults_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.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) = 4805.74199
delta logL = -0.00132437460798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4805.74066686
delta logL = -1.2334467101e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0051       1.0000          .0000       10.000    
     3 'Normalizat'    .84121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96513       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=   4805.728     FROM MIGRAD    STATUS=FAILED       191 CALLS      340 TOTAL
                     EDM=   .15E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64134E-01    38.541        .25809E-02   -.99130E-01
   2  Index         3.1876        6.5529        .20000        .36230E-04
   3  Normalizat    .83282        .51340E-01    .27449E-03    .16774E-04
   4  Prefactor     .96802        .38150E-01    .21327E-03    .15938E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4805.728     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      434 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64134E-01    38.541        .11538E-03   -.99130E-01
   2  Index         3.1876        6.5529        .13054E-02    .36230E-04
   3  Normalizat    .83282        .51340E-01    .13948E-03    .16774E-04
   4  Prefactor     .96802        .38150E-01    .23997E-04    .15938E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4805.728     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      473 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64135E-01    1.3698        .51019E-03   -.39407E-02
   2  Index         3.1876        2.7415        .11324E-01    .15523E-03
   3  Normalizat    .83282        .21943        .10980E-04    .22572E-04
   4  Prefactor     .96802        .17813        .85309E-05    .21056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0641347
  Index      = 3.18757
  Normalizat = 0.832818
  Prefactor  = 0.968024
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.728     FROM HESSE     STATUS=OK            27 CALLS      500 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64135E-01    1.4036        .10204E-03   -1.5759    
   2  Index         3.1876        2.7601        .22649E-02   -.37093    
   3  Normalizat    .83282        .21892        .21959E-05   -.98863    
   4  Prefactor     .96802        .17763        .17062E-05   -.93803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99814e-12
Minuit parameter uncertainties:
  1  0.599615
  2  2.95406
  3  0.219153
  4  0.177736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895705': 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) = 4805.72757206
delta logL = 0.0130935606185

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  6.413e-02  5.996e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  3.188e+00  2.954e+00  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.680e-01  1.777e-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:  8.328e-01  2.192e-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/895705/cmap_HighResolution_274060801_274320001_4FGL_J0152.6+0147_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-08-14 19:41:52.943945', job_id='895705', GAL2='0.97', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1628995312.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.31e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='134' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:41:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 895705: <4FGL_J0152.6+0147_daily_bin134> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin134> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 19:25:35 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:28:07 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:28:07 2021
Terminated at Sat Aug 14 19:41:53 2021
Results reported at Sat Aug 14 19:41:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin134 28.1614 1.7894 274060801 274320001 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 :                                   590.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            978 sec.

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

