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


Performing analysis on: 4FGL_J0152.6+0147_daily_bin501
RA = 28.1614, Dec = 1.7894
tmin = 369187201, tmax = 369446401
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='898317', job_status='RUN', time_executed='2021-08-14 19:38:02.231096', time_epoch_executed='1628995082.23' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898317

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898317/ft1_4FGL_J0152.6+0147_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898317/ft2_4FGL_J0152.6+0147_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898317/ft1_4FGL_J0152.6+0147_daily_bin501.fits outfile=/scratch/kocevski/898317/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin501.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=369187201.0 tmax=369446401.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.43
user 3.23
sys 5.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898317/ft1_filtered_4FGL_J0152.6+0147_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/898317/ft2_4FGL_J0152.6+0147_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/898317/ltcube_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.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/898317/ft2_4FGL_J0152.6+0147_daily_bin501.fits
.....................!
real 19.81
user 14.43
sys 5.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898317/ft1_filtered_4FGL_J0152.6+0147_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/898317/ft2_4FGL_J0152.6+0147_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/898317/ltcube_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.fits outfile=/scratch/kocevski/898317/expmap_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.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/898317/ltcube_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.fits
.....................!
real 199.85
user 188.77
sys 10.37

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/898317/ft1_filtered_4FGL_J0152.6+0147_daily_bin501.fits scfile=/scratch/kocevski/898317/ft2_4FGL_J0152.6+0147_daily_bin501.fits outfile=/scratch/kocevski/898317/cmap_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.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.89
user 0.37
sys 4.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898317/ft1_filtered_4FGL_J0152.6+0147_daily_bin501.fits scfile=/scratch/kocevski/898317/ft2_4FGL_J0152.6+0147_daily_bin501.fits outfile=/scratch/kocevski/898317/cmap_HighResolution_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.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 5.49
user 0.40
sys 5.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.275       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8174       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27330E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49652       1.0000         .10000E-03   10000.    
    10 'norm      '    19.531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1571       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.293       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1507       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87329       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86143       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=   6414.739     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2028 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.276        63.378        .47336E-06   -.45315E-05
   2  norm          1.8176        1.2574       -.11338E-06   -.45272E-03
   3  Prefactor     .10000E-03    17.542        .13957E-04** at limit **
   4  Prefactor     .10002E-03    2.7235        .39096E-06** at limit **
   5  Prefactor     .10000E-03    4.3134       -.14417E-06** at limit **
   6  Prefactor     .10000E-03    15.938       -.13955E-04** at limit **
   7  norm          5.6595        4.3047        .16878E-06    .10543E-04
   8  Prefactor     53.408        53.016       -.17560E-04   -.19883E-05
   9  Prefactor     .49790        3.1083        .21925E-06   -.11033E-02
  10  norm          19.531        13.913       -.26431E-06   -.32973E-05
  11  Prefactor     .10000E-03    3.2842       -.19444E-06** at limit **
  12  norm          13.666        5.7651       -.30839E-06   -.47716E-04
  13  Prefactor     4.1574        3.0479        .15586E-05   -.12055E-03
  14  norm          2.7184        .98319        .87291E-07   -.79063E-04
  15  Prefactor     15.277        30.910       -.29515E-04   -.11500E-03
  16  Prefactor     .10000E-03    28.335       -.32851E-05** at limit **
  17  Prefactor     .10000E-03    16.526        .49618E-05** at limit **
  18  Prefactor     4.1556        31.946        .22168E-04    .58240E-04
  19  Normalizat    .87338        .16014        .22011E-05   -.23528E-03
  20  Prefactor     .86137        .13105        .75534E-09   -.10114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.2756
  norm       = 1.81759
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.65946
  Prefactor  = 53.408
  Prefactor  = 0.497901
  norm       = 19.5307
  Prefactor  = 0.0001
  norm       = 13.6663
  Prefactor  = 4.15741
  norm       = 2.71839
  Prefactor  = 15.2774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15562
  Normalizat = 0.873377
  Prefactor  = 0.861368
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.739     FROM HESSE     STATUS=OK           297 CALLS     2325 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.276        63.449        .50447E-04   -1.4115    
   2  norm          1.8176        1.2488        .70174E-04   -1.5438    
   3  Prefactor     .10000E-03    17.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    12.402        .25347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3441        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6595        4.3040        .14104E-03   -1.5232    
   8  Prefactor     53.408        52.930        .54876E-04   -1.4245    
   9  Prefactor     .49790        6.6539        .26954E-02   -1.5567    
  10  norm          19.531        13.921        .90628E-04   -1.4824    
  11  Prefactor     .10000E-03    3.3115        .14170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.666        5.7636        .10835E-03   -1.4968    
  13  Prefactor     4.1574        3.0277        .10635E-03   -1.5300    
  14  norm          2.7184        .98267        .45341E-04   -1.5378    
  15  Prefactor     15.277        30.748        .10242E-03   -1.4926    
  16  Prefactor     .10000E-03    28.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1556        31.396        .19784E-03   -1.5300    
  19  Normalizat    .87338        .18004        .25716E-03   -.97402    
  20  Prefactor     .86137        .14880        .21455E-03   -.97504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22506e-09
Minuit parameter uncertainties:
  1  63.5169
  2  1.24879
  3  2.5648e-05
  4  0.000997704
  5  5.36366e-07
  6  9.2037e-06
  7  4.30427
  8  52.9762
  9  3.64046
  10  13.9229
  11  2.90993e-06
  12  5.76379
  13  3.02781
  14  0.982681
  15  30.7795
  16  7.66046e-05
  17  0.000120074
  18  22.861
  19  0.180161
  20  0.148874
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.979e-01  3.640e+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:  8.614e-01  1.489e-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.734e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/898317/likelihoodResults_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.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) = 6414.72296742
delta logL = 0.0163226850054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.72292413
delta logL = 0.0163659757154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49794       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2898       1.0000          .0000       10.000    
     3 'Normalizat'    .87107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86171       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6414.723     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      240 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49921        5.1557        .23998E-03    .38846E-05
   2  Index         2.2926        1.9125        .11846E-01    .71036E-05
   3  Normalizat    .87103        .17624        .25747E-03   -.67557E-05
   4  Prefactor     .86171        .14640        .21450E-03   -.86392E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.499207
  Index      = 2.29256
  Normalizat = 0.871031
  Prefactor  = 0.861713
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.723     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .69E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49921        3.6626        .95993E-05   -1.5567    
   2  Index         2.2926        1.6315        .47385E-03   -.57221    
   3  Normalizat    .87103        .17639        .10299E-04   -.97486    
   4  Prefactor     .86171        .14644        .85799E-05   -.97492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90577e-14
Minuit parameter uncertainties:
  1  2.70431
  2  1.67557
  3  0.176508
  4  0.146504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898317': 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) = 6414.72292144
delta logL = 0.0163686635251

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  4.992e-01  2.704e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.293e+00  1.676e+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:  8.617e-01  1.465e-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.710e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/898317/cmap_HighResolution_369187201_369446401_4FGL_J0152.6+0147_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-08-14 19:49:34.069889', job_id='898317', GAL2='0.86', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1628995774.07', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.64e-02', ts2='0.05', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='501' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 19:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 898317: <4FGL_J0152.6+0147_daily_bin501> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin501> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 19:35:33 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:36:11 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:36:11 2021
Terminated at Sat Aug 14 19:49:35 2021
Results reported at Sat Aug 14 19:49:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin501 28.1614 1.7894 369187201 369446401 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            842 sec.

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

