/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin908
RA = 28.1614, Dec = 1.7894
tmin = 474681601, tmax = 474940801
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='900004', job_status='RUN', time_executed='2021-08-14 19:45:18.055271', time_epoch_executed='1628995518.06' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900004

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900004/ft1_4FGL_J0152.6+0147_daily_bin908.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900004/ft2_4FGL_J0152.6+0147_daily_bin908.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900004/ft1_4FGL_J0152.6+0147_daily_bin908.fits outfile=/scratch/kocevski/900004/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin908.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=474681601.0 tmax=474940801.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 8.25
user 2.70
sys 4.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900004/ft2_4FGL_J0152.6+0147_daily_bin908.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/900004/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin908.fits evtable="EVENTS" outfile="/scratch/kocevski/900004/ft1_filtered_4FGL_J0152.6+0147_daily_bin908.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.07
user 0.27
sys 4.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900004/ft1_filtered_4FGL_J0152.6+0147_daily_bin908.fits" evtable="EVENTS" scfile=/scratch/kocevski/900004/ft2_4FGL_J0152.6+0147_daily_bin908.fits sctable="SC_DATA" outfile=/scratch/kocevski/900004/ltcube_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.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/900004/ft2_4FGL_J0152.6+0147_daily_bin908.fits
.....................!
real 15.76
user 10.41
sys 5.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900004/ft1_filtered_4FGL_J0152.6+0147_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/900004/ft2_4FGL_J0152.6+0147_daily_bin908.fits sctable="SC_DATA" expcube=/scratch/kocevski/900004/ltcube_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.fits outfile=/scratch/kocevski/900004/expmap_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.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/900004/ltcube_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.fits
.....................!
real 157.73
user 146.93
sys 10.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/900004/ft1_filtered_4FGL_J0152.6+0147_daily_bin908.fits scfile=/scratch/kocevski/900004/ft2_4FGL_J0152.6+0147_daily_bin908.fits outfile=/scratch/kocevski/900004/cmap_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.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 4.93
user 0.32
sys 4.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900004/ft1_filtered_4FGL_J0152.6+0147_daily_bin908.fits scfile=/scratch/kocevski/900004/ft2_4FGL_J0152.6+0147_daily_bin908.fits outfile=/scratch/kocevski/900004/cmap_HighResolution_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.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 4.89
user 0.33
sys 4.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.1746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5034       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2747       1.0000         .10000E-03   10000.    
    10 'norm      '    .10996E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3902       1.0000         .10000E-03   10000.    
    12 'norm      '    13.885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .99252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2554       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.298       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .60889       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3681       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=   6870.186     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2101 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.268       -.68058E-07** at limit **
   2  norm          7.1745        1.8744        .11060E-07   -.52707E-05
   3  Prefactor     .10000E-03    13.861        .86110E-08** at limit **
   4  Prefactor     .10000E-03    2.6208        .82271E-08** at limit **
   5  Prefactor     .10000E-03    3.0949       -.82503E-07** at limit **
   6  Prefactor     .10000E-03    11.384        .63822E-09** at limit **
   7  norm          1.5026        3.4501       -.16003E-06   -.69337E-04
   8  Prefactor     5.8150        65.461        .33487E-04    .31503E-05
   9  Prefactor     2.2757        2.9927        .11468E-07   -.56255E-05
  10  norm          .10000E-03    43.630        .57430E-07** at limit **
  11  Prefactor     1.3931        1.4736        .98035E-07   -.65202E-03
  12  norm          13.881        7.2040        .65639E-07    .21279E-04
  13  Prefactor     .10000E-03    1.1029        .46507E-07** at limit **
  14  norm          .99239        .66885        .26982E-07    .89360E-04
  15  Prefactor     .10000E-03    74.891        .57875E-06** at limit **
  16  Prefactor     1.5428        945.73       -.16798E-04    .30295E-05
  17  Prefactor     1.2539        14.197       -.47676E-07   -.18572E-04
  18  Prefactor     28.313        30.206       -.24192E-05    .94848E-05
  19  Normalizat    .60896        .16960       -.93496E-06    .14993E-04
  20  Prefactor     1.3681        .15082        .20872E-06   -.26286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.17447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50262
  Prefactor  = 5.81498
  Prefactor  = 2.27568
  norm       = 0.0001
  Prefactor  = 1.39305
  norm       = 13.881
  Prefactor  = 0.0001
  norm       = 0.992387
  Prefactor  = 0.000100001
  Prefactor  = 1.54277
  Prefactor  = 1.25386
  Prefactor  = 28.313
  Normalizat = 0.608959
  Prefactor  = 1.36814
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.186     FROM HESSE     STATUS=OK           297 CALLS     2398 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.1745        1.8746        .55884E-04   -1.5172    
   3  Prefactor     .10000E-03    13.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6469        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2712        .28403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5026        3.4116        .22681E-03   -1.5463    
   8  Prefactor     5.8150        65.485        .16643E-03   -1.5226    
   9  Prefactor     2.2757        2.9812        .15945E-03   -1.5406    
  10  norm          .10000E-03    44.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3931        10.290        .18429E-02   -1.5472    
  12  norm          13.881        7.3306        .10749E-03   -1.4963    
  13  Prefactor     .10000E-03    1.1127        .84879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .99239        .65307        .53600E-04   -1.5509    
  15  Prefactor     .10000E-03    76.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5428        952.24        .31437E-03   -1.5460    
  17  Prefactor     1.2539        14.450        .39862E-03   -1.5484    
  18  Prefactor     28.313        30.072        .75313E-04   -1.4643    
  19  Normalizat    .60896        .19243        .32878E-03   -1.0760    
  20  Prefactor     1.3681        .17472        .20065E-03   -.81303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64185e-09
Minuit parameter uncertainties:
  1  3.37902e-06
  2  1.87457
  3  1.90273e-07
  4  2.2655e-07
  5  2.91741e-05
  6  7.57483e-07
  7  3.41207
  8  39.0817
  9  2.98142
  10  2.82879e-05
  11  7.57376
  12  7.33102
  13  5.01155e-06
  14  0.653079
  15  0.00067671
  16  77.9334
  17  8.5153
  18  30.0878
  19  0.192644
  20  0.174797
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.276e+00  2.981e+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:  1.368e+00  1.748e-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:  6.090e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 9.16e-06 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/900004/likelihoodResults_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.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): 0
logL (Free Index) = 6870.17520336
delta logL = 0.0106903153401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6870.17233085
delta logL = 0.0135628233238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5234       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8348       1.0000          .0000       10.000    
     3 'Normalizat'    .61165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3671       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=   6870.172     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5251        90.015        .64291E-02    .43254E-04
   2  Index         1.8341        5.8623        .26836        .22698E-04
   3  Normalizat    .61162        .61219E-01    .74110E-01    .19627E-04
   4  Prefactor     1.3671        .42495E-01    .45408E-01   -.19061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52512
  Index      = 1.83406
  Normalizat = 0.611618
  Prefactor  = 1.36714
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.172     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5251        3.5745        .16882E-03   -1.5390    
   2  Index         1.8341        .90222        .96953E-02   -.68567    
   3  Normalizat    .61162        .18994        .32810E-03   -1.0749    
   4  Prefactor     1.3671        .16793        .20071E-03   -.81332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29418e-10
Minuit parameter uncertainties:
  1  3.57483
  2  0.910594
  3  0.190144
  4  0.167992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900004': 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) = 6870.17233045
delta logL = 0.0135632220636

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  2.525e+00  3.575e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.834e+00  9.106e-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:  1.367e+00  1.680e-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:  6.116e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.83 +/- 0.91
Photon Flux (Free Index): 1.03e-08 +/- 1.91e-08
Energy Flux (Free Index): 1.12e-05 +/- 2.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/900004/cmap_HighResolution_474681601_474940801_4FGL_J0152.6+0147_daily_bin908.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='1.12e-05', photon_flux_error='1.67e-08', dlogl='1.36e-02', energy_flux='9.16e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-08-14 19:55:10.482523', photon_index_error2='0.91', photon_index2='1.83', ts='1.21', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='6.51e-08', energy_flux_error2='2.11e-05', EG='0.61', time_epoch_completed='1628996110.48', return_code='0', job_id='900004', GAL2='1.37', EG2='0.61', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.91e-08', ts2='1.23', photon_index='1.98' WHERE bin_id='908' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 900004: <4FGL_J0152.6+0147_daily_bin908> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin908> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:40:48 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:42: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:42:20 2021
Terminated at Sat Aug 14 19:55:12 2021
Results reported at Sat Aug 14 19:55:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin908 28.1614 1.7894 474681601 474940801 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 :                                   662.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            864 sec.

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

