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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin249
RA = 28.1614, Dec = 1.7894
tmin = 303868801, tmax = 304128001
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='896788', job_status='RUN', time_executed='2021-08-14 19:34:42.144457', time_epoch_executed='1628994882.14' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896788

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896788/ft1_4FGL_J0152.6+0147_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896788/ft2_4FGL_J0152.6+0147_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896788/ft1_4FGL_J0152.6+0147_daily_bin249.fits outfile=/scratch/kocevski/896788/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin249.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=303868801.0 tmax=304128001.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 3.56
user 3.25
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896788/ft2_4FGL_J0152.6+0147_daily_bin249.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/896788/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/896788/ft1_filtered_4FGL_J0152.6+0147_daily_bin249.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 0.62
user 0.32
sys 0.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896788/ft1_filtered_4FGL_J0152.6+0147_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/896788/ft2_4FGL_J0152.6+0147_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/896788/ltcube_303868801_304128001_4FGL_J0152.6+0147_daily_bin249.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/896788/ft2_4FGL_J0152.6+0147_daily_bin249.fits
.....................!
real 13.09
user 12.60
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896788/ft1_filtered_4FGL_J0152.6+0147_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/896788/ft2_4FGL_J0152.6+0147_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/896788/ltcube_303868801_304128001_4FGL_J0152.6+0147_daily_bin249.fits outfile=/scratch/kocevski/896788/expmap_303868801_304128001_4FGL_J0152.6+0147_daily_bin249.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/896788/ltcube_303868801_304128001_4FGL_J0152.6+0147_daily_bin249.fits
.....................!
real 191.41
user 185.95
sys 4.52

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/896788/ft1_filtered_4FGL_J0152.6+0147_daily_bin249.fits scfile=/scratch/kocevski/896788/ft2_4FGL_J0152.6+0147_daily_bin249.fits outfile=/scratch/kocevski/896788/cmap_303868801_304128001_4FGL_J0152.6+0147_daily_bin249.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 0.61
user 0.37
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896788/ft1_filtered_4FGL_J0152.6+0147_daily_bin249.fits scfile=/scratch/kocevski/896788/ft2_4FGL_J0152.6+0147_daily_bin249.fits outfile=/scratch/kocevski/896788/cmap_HighResolution_303868801_304128001_4FGL_J0152.6+0147_daily_bin249.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 0.62
user 0.40
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.687       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65665E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6141       1.0000         .10000E-03   10000.    
    10 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.6109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .68509E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11522E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11817E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72627       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0733       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=   5887.920     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     2452 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.784        65.647        .10113E-03    .13491E-05
   2  norm          3.3101        1.5548        .61463E-04   -.46057E-04
   3  Prefactor     .10000E-03    15.419        .18142E-02** at limit **
   4  Prefactor     .10000E-03    5.4398        .34384E-03** at limit **
   5  Prefactor     5.2360        5.6832        .17565E-03   -.44917E-04
   6  Prefactor     .10000E-03    22.176        .18142E-02** at limit **
   7  norm          .10000E-03    1.7451        .98914E-03** at limit **
   8  Prefactor     .10001E-03    76.437        .19021    ** at limit **
   9  Prefactor     4.6146        3.3903        .11760E-03   -.37219E-04
  10  norm          .10000E-03    8.0257        .18142E-02** at limit **
  11  Prefactor     .10004E-03    39.214        .35669E-02** at limit **
  12  norm          7.6093        4.3417        .11670E-03   -.17993E-03
  13  Prefactor     .10000E-03    .55328        .55563E-03** at limit **
  14  norm          .68625E-01    .71298        .90949E-03    .53305E-03
  15  Prefactor     .10000E-03    4.9801        .16720E-02** at limit **
  16  Prefactor     .10000E-03    171.96        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.9176        .14806E-02** at limit **
  18  Prefactor     .10000E-03    18.251        .36285E-03** at limit **
  19  Normalizat    .72600        .18434        .27121E-03   -.21483E-03
  20  Prefactor     1.0734        .15680        .19434E-03   -.51241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7838
  norm       = 3.31012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 4.61461
  norm       = 0.0001
  Prefactor  = 0.000100035
  norm       = 7.60926
  Prefactor  = 0.0001
  norm       = 0.0686255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.725996
  Prefactor  = 1.0734
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.920     FROM HESSE     STATUS=OK           283 CALLS     2735 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.784        65.624        .40450E-05   -1.4913    
   2  norm          3.3101        1.5548        .24585E-05   -1.5344    
   3  Prefactor     .10000E-03    15.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4401        .68769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2360        5.6830        .35131E-04   -1.5250    
   6  Prefactor     .10000E-03    22.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7452        .19783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    83.273        .17983       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6146        3.3902        .47040E-05   -1.5278    
  10  norm          .10000E-03    8.0261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    40.043        .71338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.6093        4.3409        .46681E-05   -1.5156    
  13  Prefactor     .10000E-03    .55330        .11113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68625E-01    .71189        .36380E-04   -1.5656    
  15  Prefactor     .10000E-03    4.9802        .33440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    172.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9180        .29611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.252        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .72600        .18438        .10848E-04   -1.0288    
  20  Prefactor     1.0734        .15689        .38868E-04   -.90321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11681e-09
Minuit parameter uncertainties:
  1  64.4892
  2  1.55484
  3  6.57709e-06
  4  5.50765e-06
  5  5.68363
  6  2.2359e-05
  7  1.8974e-06
  8  0.00170476
  9  3.39039
  10  3.50537e-06
  11  0.00237195
  12  4.34111
  13  4.39342e-07
  14  0.441741
  15  2.26691e-06
  16  4.78664e-06
  17  6.06193e-06
  18  3.4064e-05
  19  0.184541
  20  0.156953
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.615e+00  3.390e+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.073e+00  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  7.260e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.66
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.36e-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) = 5887.81427361
delta logL = 0.106171550859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5887.81419029
delta logL = 0.106254865956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7728       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7345       1.0000          .0000       10.000    
     3 'Normalizat'    .73323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0702       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=   5887.814     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      246 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7690        148.63        .41791E-02   -.60197E-04
   2  Index         1.7349        5.3964        .15956        .53040E-04
   3  Normalizat    .73289        .14826        .42732E-01    .73782E-05
   4  Prefactor     1.0705        .76401E-01    .38850E-01   -.38774E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.769
  Index      = 1.73487
  Normalizat = 0.73289
  Prefactor  = 1.07048
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.814     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7690        4.7676        .13331E-03   -1.5228    
   2  Index         1.7349        .52613        .80097E-02   -.71157    
   3  Normalizat    .73289        .18097        .26977E-03   -1.0261    
   4  Prefactor     1.0705        .15565        .19457E-03   -.90416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33646e-12
Minuit parameter uncertainties:
  1  4.7679
  2  0.527838
  3  0.181115
  4  0.155718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896788': 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) = 5887.81418784
delta logL = 0.106257319107

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  5.769e+00  4.768e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.735e+00  5.278e-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.070e+00  1.557e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  7.329e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 28.161 1.789
Photon Index (Free Index): 1.73 +/- 0.53
Photon Flux (Free Index): 1.95e-08 +/- 1.88e-08
Energy Flux (Free Index): 2.85e-05 +/- 3.62e-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/896788/cmap_HighResolution_303868801_304128001_4FGL_J0152.6+0147_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='2.85e-05', photon_flux_error='1.90e-08', dlogl='1.06e-01', energy_flux='1.86e-05', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-08-14 19:44:12.356238', photon_index_error2='0.53', photon_index2='1.73', ts='6.66', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.62e-05', EG='0.73', time_epoch_completed='1628995452.36', return_code='0', job_id='896788', GAL2='1.07', EG2='0.73', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='1.88e-08', ts2='6.87', photon_index='1.98' WHERE bin_id='249' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:44:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 896788: <4FGL_J0152.6+0147_daily_bin249> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin249> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 19:30:23 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:30:55 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:30:55 2021
Terminated at Sat Aug 14 19:44:13 2021
Results reported at Sat Aug 14 19:44:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin249 28.1614 1.7894 303868801 304128001 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 :                                   570.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            830 sec.

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

