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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin827
RA = 28.1614, Dec = 1.7894
tmin = 453686401, tmax = 453945601
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='899878', job_status='RUN', time_executed='2021-08-14 19:44:28.631159', time_epoch_executed='1628995468.63' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899878/ft1_4FGL_J0152.6+0147_daily_bin827.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899878/ft2_4FGL_J0152.6+0147_daily_bin827.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899878/ft1_4FGL_J0152.6+0147_daily_bin827.fits outfile=/scratch/kocevski/899878/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin827.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=453686401.0 tmax=453945601.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.97
user 3.36
sys 3.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899878/ft1_filtered_4FGL_J0152.6+0147_daily_bin827.fits" evtable="EVENTS" scfile=/scratch/kocevski/899878/ft2_4FGL_J0152.6+0147_daily_bin827.fits sctable="SC_DATA" outfile=/scratch/kocevski/899878/ltcube_453686401_453945601_4FGL_J0152.6+0147_daily_bin827.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/899878/ft2_4FGL_J0152.6+0147_daily_bin827.fits
.....................!
real 15.88
user 11.71
sys 4.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899878/ft1_filtered_4FGL_J0152.6+0147_daily_bin827.fits evtable="EVENTS" scfile=/scratch/kocevski/899878/ft2_4FGL_J0152.6+0147_daily_bin827.fits sctable="SC_DATA" expcube=/scratch/kocevski/899878/ltcube_453686401_453945601_4FGL_J0152.6+0147_daily_bin827.fits outfile=/scratch/kocevski/899878/expmap_453686401_453945601_4FGL_J0152.6+0147_daily_bin827.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/899878/ltcube_453686401_453945601_4FGL_J0152.6+0147_daily_bin827.fits
.....................!
real 196.06
user 185.48
sys 9.33

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/899878/ft1_filtered_4FGL_J0152.6+0147_daily_bin827.fits scfile=/scratch/kocevski/899878/ft2_4FGL_J0152.6+0147_daily_bin827.fits outfile=/scratch/kocevski/899878/cmap_453686401_453945601_4FGL_J0152.6+0147_daily_bin827.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 3.78
user 0.37
sys 3.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899878/ft1_filtered_4FGL_J0152.6+0147_daily_bin827.fits scfile=/scratch/kocevski/899878/ft2_4FGL_J0152.6+0147_daily_bin827.fits outfile=/scratch/kocevski/899878/cmap_HighResolution_453686401_453945601_4FGL_J0152.6+0147_daily_bin827.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 3.79
user 0.38
sys 3.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5368       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.089       1.0000         .10000E-03   10000.    
     7 'norm      '    5.9199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23172       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4006       1.0000         .10000E-03   10000.    
    10 'norm      '    34.110       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.6048       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9732       1.0000         .10000E-03   10000.    
    14 'norm      '    .79325       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12252E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.112       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87821       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92793       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=   4738.588     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2180 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.714        .90712E-02** at limit **
   2  norm          3.5375        1.6647        .53735E-02    .84824E-04
   3  Prefactor     .10000E-03    33.743        .90712E-02** at limit **
   4  Prefactor     1.4894        8.0053        .88036E-02    .78228E-03
   5  Prefactor     .10000E-03    8.5582        .90712E-02** at limit **
   6  Prefactor     31.106        38.962        .17965E-02   -.17268E-02
   7  norm          5.9135        5.7758        .41261E-02   -.92128E-04
   8  Prefactor     2.3667        1455.6        .10122E-01    .61552E-05
   9  Prefactor     3.4021        3.3491        .54847E-02   -.82067E-04
  10  norm          34.115        22.614        .17153E-02   -.70936E-04
  11  Prefactor     .10000E-03    5.5044        .90712E-02** at limit **
  12  norm          7.6051        4.9882        .36355E-02    .71950E-04
  13  Prefactor     3.9758        3.1010        .50588E-02    .11740E-03
  14  norm          .79373        .63327        .10602E-01    .15578E-03
  15  Prefactor     19.073        40.046        .22864E-02    .53675E-04
  16  Prefactor     .10000E-03    102.72        .90712E-02** at limit **
  17  Prefactor     22.110        16.436        .21302E-02    .50147E-04
  18  Prefactor     18.120        30.008        .23528E-02   -.68267E-04
  19  Normalizat    .87727        .20619        .44622E-01    .41820E-04
  20  Prefactor     .92821        .16555        .45360E-01    .32106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.53748
  Prefactor  = 0.0001
  Prefactor  = 1.48937
  Prefactor  = 0.0001
  Prefactor  = 31.106
  norm       = 5.91351
  Prefactor  = 2.36675
  Prefactor  = 3.40208
  norm       = 34.1153
  Prefactor  = 0.0001
  norm       = 7.60509
  Prefactor  = 3.97582
  norm       = 0.793728
  Prefactor  = 19.0732
  Prefactor  = 0.0001
  Prefactor  = 22.1103
  Prefactor  = 18.1202
  Normalizat = 0.877266
  Prefactor  = 0.928211
 **********
 **   18 **HESSE 
 **********

 FCN=   4738.588     FROM HESSE     STATUS=OK           299 CALLS     2479 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5375        1.6584        .58130E-04   -1.5332    
   3  Prefactor     .10000E-03    33.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4894        7.9698        .35215E-03   -1.5464    
   5  Prefactor     .10000E-03    8.6689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.106        38.968        .71860E-04   -1.4592    
   7  norm          5.9135        5.7706        .15843E-03   -1.5222    
   8  Prefactor     2.3667        1460.3        .40486E-03   -1.5400    
   9  Prefactor     3.4021        3.3553        .12141E-03   -1.5339    
  10  norm          34.115        22.655        .68613E-04   -1.4539    
  11  Prefactor     .10000E-03    5.6056        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.6051        4.9884        .11940E-03   -1.5156    
  13  Prefactor     3.9758        3.0848        .94760E-04   -1.5309    
  14  norm          .79373        .62560        .47356E-04   -1.5530    
  15  Prefactor     19.073        39.730        .91457E-04   -1.4834    
  16  Prefactor     .10000E-03    102.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.110        16.449        .85206E-04   -1.4767    
  18  Prefactor     18.120        29.943        .94111E-04   -1.4856    
  19  Normalizat    .87727        .23620        .26541E-03   -.97264    
  20  Prefactor     .92821        .19201        .21584E-03   -.95162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4746e-08
Minuit parameter uncertainties:
  1  5.27774e-05
  2  1.65839
  3  4.81113e-05
  4  6.89178
  5  8.41272e-06
  6  38.9999
  7  5.77111
  8  120.659
  9  3.35551
  10  22.6605
  11  2.26302e-06
  12  4.98871
  13  3.08493
  14  0.625602
  15  39.7855
  16  0.000132063
  17  16.4521
  18  29.968
  19  0.236478
  20  0.192155
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.402e+00  3.356e+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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.282e-01  1.922e-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.773e-01  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.35e-05

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): 0
logL (Free Index) = 4738.47048771
delta logL = 0.117139404318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4738.46729605
delta logL = 0.120331063871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0997       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5578       1.0000          .0000       10.000    
     3 'Normalizat'    .88914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4738.467     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0996        4.2167        .13924E-03    .54966E-03
   2  Index         1.5579        .80275        .12128E-01    .48318E-04
   3  Normalizat    .88915        .22185        .26379E-03   -.36288E-04
   4  Prefactor     .92299        .18573        .21639E-03   -.42294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09963
  Index      = 1.55787
  Normalizat = 0.889146
  Prefactor  = 0.922987
 **********
 **   18 **HESSE 
 **********

 FCN=   4738.467     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0996        4.2075        .55696E-05   -1.5303    
   2  Index         1.5579        .80102        .48513E-03   -.75932    
   3  Normalizat    .88915        .22198        .10551E-04   -.96843    
   4  Prefactor     .92299        .18587        .86554E-05   -.95342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40705e-10
Minuit parameter uncertainties:
  1  4.20778
  2  0.807676
  3  0.222209
  4  0.185996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899878': 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) = 4738.46729604
delta logL = 0.12033106793

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.230e-01  1.860e-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.891e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.56 +/- 0.81
Photon Flux (Free Index): 1.02e-08 +/- 1.61e-08
Energy Flux (Free Index): 2.66e-05 +/- 4.85e-05

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/899878/cmap_HighResolution_453686401_453945601_4FGL_J0152.6+0147_daily_bin827.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='2.66e-05', photon_flux_error='1.88e-08', dlogl='1.20e-01', energy_flux='1.37e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-08-14 19:53:52.724598', photon_index_error2='0.81', photon_index2='1.56', ts='4.48', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='4.85e-05', EG='0.88', time_epoch_completed='1628996032.72', return_code='0', job_id='899878', GAL2='0.92', EG2='0.89', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='1.61e-08', ts2='4.72', photon_index='1.98' WHERE bin_id='827' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:53:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 899878: <4FGL_J0152.6+0147_daily_bin827> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin827 28.1614 1.7894 453686401 453945601 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 :                                   610.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            796 sec.

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

