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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1602
RA = 224.673, Dec = 37.3726
tmin = 654566401, tmax = 654825601
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='856649', job_status='RUN', time_executed='2021-10-02 00:03:46.656817', time_epoch_executed='1633158226.66' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856649/ft1_4FGL_J1458.6+3722_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856649/ft1_4FGL_J1458.6+3722_daily_bin1602.fits outfile=/scratch/kocevski/856649/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1602.fits ra=224.673 dec=37.3726 rad=12.0 tmin=654566401.0 tmax=654825601.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 5.01
user 4.71
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.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/856649/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.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.70
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/856649/ltcube_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.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/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits
.....................!
real 11.61
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856649/ltcube_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.fits outfile=/scratch/kocevski/856649/expmap_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.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/856649/ltcube_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.fits
.....................!
real 190.63
user 185.57
sys 4.75

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1458.6+3722 @ 224.673 37.3726

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits scfile=/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits outfile=/scratch/kocevski/856649/cmap_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.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=224.673 yref=37.3726 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits scfile=/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits outfile=/scratch/kocevski/856649/cmap_HighResolution_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.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=224.673 yref=37.3726 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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856649/Model_4FGL_J1458.6+3722_daily_bin1602.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/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits.....................!
real 47.59
user 46.31
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits', '/scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits', expMap='/scratch/kocevski/856649/expmap_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.fits', expCube='/scratch/kocevski/856649/ltcube_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856649/Model_4FGL_J1458.6+3722_daily_bin1602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1458.6+3722'

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.413e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/856649/ft1_filtered_4FGL_J1458.6+3722_daily_bin1602.fits
Spacecraft file(s): /scratch/kocevski/856649/ft2_4FGL_J1458.6+3722_daily_bin1602.fits
Exposure map: /scratch/kocevski/856649/expmap_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.fits
Exposure cube: /scratch/kocevski/856649/ltcube_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856649/Model_4FGL_J1458.6+3722_daily_bin1602.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) = 6122.10479618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5075       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.804       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3187       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6840       1.0000         .10000E-03   10000.    
    18 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .98330       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3453       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1705       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4940       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    53.152       1.0000         .10000E-03   10000.    
    28 'norm      '    .74688E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1341       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6122.042     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4226 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4622        37.740       -.16266E-07    .77723E-06
   2  Prefactor     .10000E-03    7.8150       -.85252E-07** at limit **
   3  Prefactor     .10000E-03    21.949       -.32976E-06** at limit **
   4  norm          3.9853        4.0262       -.19510E-07    .21048E-04
   5  Prefactor     .10000E-03    9.2577       -.57421E-07** at limit **
   6  Prefactor     .10000E-03    7.8396       -.97442E-07** at limit **
   7  Prefactor     8.5069        4.9490       -.41636E-07   -.57679E-06
   8  norm          .10000E-03    5.8751       -.29301E-07** at limit **
   9  Prefactor     10.239        30.139        .38812E-06    .28483E-04
  10  norm          .10000E-03    4.0122       -.52336E-07** at limit **
  11  Prefactor     .10000E-03    13.812       -.31781E-06** at limit **
  12  Prefactor     .10000E-03    24.005       -.46390E-06** at limit **
  13  norm          .10000E-03    4.0985       -.12649E-07** at limit **
  14  Prefactor     24.802        19.445        .10508E-06    .12461E-03
  15  Prefactor     .54608        10.029        .39669E-07    .69604E-03
  16  Prefactor     6.3201        5.8087        .44260E-07    .15311E-03
  17  norm          1.6839        1.5762        .45961E-06    .20297E-02
  18  norm          .10000E-03    2.9687       -.31596E-06** at limit **
  19  Prefactor     .90197        12.422       -.49662E-06    .96689E-04
  20  Prefactor     1.2519        727.48        .82522E-05    .30184E-04
  21  Prefactor     2.1704        5.9707       -.16670E-06    .21931E-03
  22  Prefactor     .10000E-03    30.704       -.19663E-06** at limit **
  23  Prefactor     2.5689        18.921        .26433E-05    .18836E-03
  24  norm          .10000E-03    .21032        .31148E-08** at limit **
  25  Prefactor     .10000E-03    1.6875        .16065E-07** at limit **
  26  Prefactor     .10000E-03    9.4605       -.25268E-07** at limit **
  27  Prefactor     53.168        30.033       -.64208E-06    .41432E-03
  28  norm          .10219E-03    57.659       -.50144E-05** at limit **
  29  Prefactor     .10000E-03    17.685        .46213E-06** at limit **
  30  Normalizat    1.1342        .19698       -.10756E-05    .59300E-03
  31  Prefactor     .97528        .19051        .18180E-05    .51939E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.98529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.50694
  norm       = 0.0001
  Prefactor  = 10.2391
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.8023
  Prefactor  = 0.546084
  Prefactor  = 6.32011
  norm       = 1.6839
  norm       = 0.0001
  Prefactor  = 0.901969
  Prefactor  = 1.25191
  Prefactor  = 2.17044
  Prefactor  = 0.0001
  Prefactor  = 2.56886
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.168
  norm       = 0.000102186
  Prefactor  = 0.0001
  Normalizat = 1.13417
  Prefactor  = 0.975278
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.042     FROM HESSE     STATUS=OK           628 CALLS     4854 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4622        38.060        .26046E-03   -1.5394    
   2  Prefactor     .10000E-03    7.8246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9853        4.0212        .15171E-03   -1.5309    
   5  Prefactor     .10000E-03    9.3051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5069        4.9636        .12624E-03   -1.5125    
   8  norm          .10000E-03    5.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.239        30.338        .12524E-03   -1.5068    
  10  norm          .10000E-03    4.0718        .15304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1054        .15467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.802        19.529        .80432E-04   -1.4712    
  15  Prefactor     .54608        12.184        .22917E-02   -1.5560    
  16  Prefactor     6.3201        5.8109        .79841E-03   -1.5205    
  17  norm          1.6839        1.5903        .87081E-04   -1.5448    
  18  norm          .10000E-03    3.0472        .26302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .90197        74.311        .31166E-02   -1.5518    
  20  Prefactor     1.2519        747.23        .37757E-02   -1.5484    
  21  Prefactor     2.1704        5.9594        .13976E-02   -1.5413    
  22  Prefactor     .10000E-03    31.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5689        41.861        .25881E-03   -1.5387    
  24  norm          .10000E-03    .21033        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.6883        .99259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.4620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     53.168        42.404        .55014E-04   -1.4248    
  28  norm          .10219E-03    41.105        .89455E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1342        .23223        .23975E-03   -.88662    
  31  Prefactor     .97528        .21962        .26084E-03   -.93558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96632e-09
Minuit parameter uncertainties:
  1  19.3751
  2  1.01136e-05
  3  6.35874e-05
  4  4.02151
  5  1.1789e-05
  6  1.3487e-05
  7  4.96383
  8  4.02261e-06
  9  30.3836
  10  8.46153e-06
  11  4.26491e-05
  12  8.2878e-05
  13  2.85115e-06
  14  19.5337
  15  5.15952
  16  5.81141
  17  1.59034
  18  1.86024e-05
  19  16.3941
  20  61.9611
  21  5.96101
  22  2.86126e-05
  23  20.7566
  24  5.00412e-08
  25  6.40032e-07
  26  3.79045e-06
  27  42.4278
  28  0.018972
  29  5.1022e-05
  30  0.232443
  31  0.219819
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  5.461e-01  5.160e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.753e-01  2.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.134e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 224.673 37.373
Photon Flux Upper Limit: 6.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856649/likelihoodResults_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.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) = 6122.04226503
delta logL = 2.31777594308e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6122.0421557
delta logL = 0.000132506761474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54565       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2273       1.0000          .0000       10.000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   6122.042     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      266 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52984        13.384        .22912E-02    .14148E-02
   2  Index         2.2291        2.6742        .80587E-02   -.56782E-05
   3  Normalizat    1.1340        .21005        .23976E-03   -.11333E-04
   4  Prefactor     .97534        .21472        .26083E-03   -.17391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.529844
  Index      = 2.22906
  Normalizat = 1.13405
  Prefactor  = 0.975341
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.042     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52984        11.562        .45823E-03   -1.5562    
   2  Index         2.2291        2.5143        .32235E-03   -.58739    
   3  Normalizat    1.1340        .21028        .95903E-05   -.88666    
   4  Prefactor     .97534        .21490        .10433E-04   -.93556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91121e-11
Minuit parameter uncertainties:
  1  4.95075
  2  2.69972
  3  0.210437
  4  0.215091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856649': 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) = 6122.04215054
delta logL = 0.000137671510856

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  5.298e-01  4.951e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.229e+00  2.700e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.753e-01  2.151e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.134e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 224.673 37.373

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/856649/cmap_HighResolution_654566401_654825601_4FGL_J1458.6+3722_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2021-10-02 00:18:45.831962', job_id='856649', GAL2='0.98', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1633159125.83', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.38e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1602' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:18:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 856649: <4FGL_J1458.6+3722_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:03:06 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:03:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:03:08 2021
Terminated at Sat Oct  2 00:18:46 2021
Results reported at Sat Oct  2 00:18:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1602 224.673 37.3726 654566401 654825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1458.6+3722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   901.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

