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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin344
RA = 224.673, Dec = 37.3726
tmin = 328492801, tmax = 328752001
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='915361', job_status='RUN', time_executed='2021-09-10 16:36:32.670015', time_epoch_executed='1631316992.67' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915361/ft1_4FGL_J1458.6+3722_daily_bin344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915361/ft2_4FGL_J1458.6+3722_daily_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915361/ft1_4FGL_J1458.6+3722_daily_bin344.fits outfile=/scratch/kocevski/915361/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin344.fits ra=224.673 dec=37.3726 rad=12.0 tmin=328492801.0 tmax=328752001.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.41
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915361/ft2_4FGL_J1458.6+3722_daily_bin344.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/915361/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin344.fits evtable="EVENTS" outfile="/scratch/kocevski/915361/ft1_filtered_4FGL_J1458.6+3722_daily_bin344.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.50
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915361/ft1_filtered_4FGL_J1458.6+3722_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/915361/ft2_4FGL_J1458.6+3722_daily_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/915361/ltcube_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.fits outfile=/scratch/kocevski/915361/expmap_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.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/915361/ltcube_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.fits
.....................!
real 192.75
user 187.23
sys 5.17

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/915361/ft1_filtered_4FGL_J1458.6+3722_daily_bin344.fits scfile=/scratch/kocevski/915361/ft2_4FGL_J1458.6+3722_daily_bin344.fits outfile=/scratch/kocevski/915361/cmap_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915361/ft1_filtered_4FGL_J1458.6+3722_daily_bin344.fits scfile=/scratch/kocevski/915361/ft2_4FGL_J1458.6+3722_daily_bin344.fits outfile=/scratch/kocevski/915361/cmap_HighResolution_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.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.53
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/915361/ft1_filtered_4FGL_J1458.6+3722_daily_bin344.fits', '/scratch/kocevski/915361/ft2_4FGL_J1458.6+3722_daily_bin344.fits', expMap='/scratch/kocevski/915361/expmap_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.fits', expCube='/scratch/kocevski/915361/ltcube_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/915361/Model_4FGL_J1458.6+3722_daily_bin344.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/915361/ft1_filtered_4FGL_J1458.6+3722_daily_bin344.fits
Spacecraft file(s): /scratch/kocevski/915361/ft2_4FGL_J1458.6+3722_daily_bin344.fits
Exposure map: /scratch/kocevski/915361/expmap_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.fits
Exposure cube: /scratch/kocevski/915361/ltcube_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/915361/Model_4FGL_J1458.6+3722_daily_bin344.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) = 6616.68405307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6572       1.0000         .10000E-03   10000.    
     4 'norm      '    11.494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6824       1.0000         .10000E-03   10000.    
    10 'norm      '    11.041       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.967       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3699       1.0000         .10000E-03   10000.    
    18 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12884E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12453E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3279       1.0000         .10000E-03   10000.    
    24 'norm      '    14.838       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.618       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.940       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0104       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91618       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=   6616.678     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4077 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.087        .14413E-05** at limit **
   2  Prefactor     .10000E-03    15.946       -.15489E-05** at limit **
   3  Prefactor     1.6571        89.171        .15936E-04   -.39514E-04
   4  norm          11.495        4.5976        .42518E-07    .52242E-04
   5  Prefactor     .10000E-03    10.801       -.37701E-06** at limit **
   6  Prefactor     14.625        13.857        .39701E-06    .85973E-04
   7  Prefactor     .10000E-03    1.1662       -.34165E-07** at limit **
   8  norm          .10000E-03    5.8610       -.60665E-07** at limit **
   9  Prefactor     8.6904        27.544       -.99375E-06   -.15521E-04
  10  norm          11.043        6.7167        .96492E-07    .24874E-04
  11  Prefactor     .10000E-03    22.170        .11448E-05** at limit **
  12  Prefactor     22.980        33.635       -.13235E-05   -.63628E-04
  13  norm          .10000E-03    3.0951       -.29315E-07** at limit **
  14  Prefactor     7.5395        13.725        .40427E-06    .20266E-04
  15  Prefactor     .10000E-03    3.0148       -.32313E-07** at limit **
  16  Prefactor     .10000E-03    4.6267       -.88892E-06** at limit **
  17  norm          2.3693        1.6613        .47167E-07    .55457E-04
  18  norm          .10000E-03    1.8816       -.47393E-07** at limit **
  19  Prefactor     .10000E-03    4.4371        .50687E-06** at limit **
  20  Prefactor     .10000E-03    88.279        .10901E-05** at limit **
  21  Prefactor     .10000E-03    3.8239       -.79871E-07** at limit **
  22  Prefactor     .10000E-03    32.895       -.25596E-05** at limit **
  23  Prefactor     9.3353        11.811        .13710E-05    .13100E-03
  24  norm          14.838        2.7203        .22082E-07   -.69318E-05
  25  Prefactor     18.618        13.566        .13476E-07   -.12430E-04
  26  Prefactor     .10000E-03    12.555        .74132E-06** at limit **
  27  Prefactor     .10000E-03    5.9249       -.38459E-06** at limit **
  28  norm          .10000E-03    5.2519        .68881E-06** at limit **
  29  Prefactor     13.941        21.197       -.19463E-08    .12468E-04
  30  Normalizat    1.0099        .19717       -.19579E-05    .16293E-03
  31  Prefactor     .91666        .17819        .14880E-05    .16007E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65707
  norm       = 11.4951
  Prefactor  = 0.0001
  Prefactor  = 14.6247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.69038
  norm       = 11.0431
  Prefactor  = 0.0001
  Prefactor  = 22.9799
  norm       = 0.0001
  Prefactor  = 7.53949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.36926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.33525
  norm       = 14.838
  Prefactor  = 18.6182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9412
  Normalizat = 1.0099
  Prefactor  = 0.916659
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.678     FROM HESSE     STATUS=OK           618 CALLS     4695 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6571        90.601        .16390E-02   -1.5451    
   4  norm          11.495        4.6004        .10646E-03   -1.5030    
   5  Prefactor     .10000E-03    10.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.625        13.856        .10477E-03   -1.4943    
   7  Prefactor     .10000E-03    1.1778        .85764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.6904        27.782        .13604E-03   -1.5118    
  10  norm          11.043        6.7210        .12057E-03   -1.5043    
  11  Prefactor     .10000E-03    22.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.980        33.856        .83582E-04   -1.4749    
  13  norm          .10000E-03    3.0970        .13974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5395        13.710        .14605E-03   -1.5159    
  15  Prefactor     .10000E-03    3.0239        .13786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7194        .17069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3693        1.6572        .82801E-04   -1.5400    
  18  norm          .10000E-03    1.9147        .10882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4372        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    88.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8322        .15535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.3353        11.823        .65610E-03   -1.5097    
  24  norm          14.838        2.7341        .47964E-04   -1.4937    
  25  Prefactor     18.618        13.622        .92823E-04   -1.4845    
  26  Prefactor     .10000E-03    12.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.9322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.2599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.941        21.198        .10728E-03   -1.4961    
  30  Normalizat    1.0099        .22644        .25355E-03   -.92699    
  31  Prefactor     .91666        .20526        .27098E-03   -.95561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35455e-10
Minuit parameter uncertainties:
  1  7.02447e-05
  2  0.000108583
  3  24.5441
  4  4.60057
  5  5.58739e-05
  6  13.8595
  7  8.07929e-07
  8  8.13157e-06
  9  27.8228
  10  6.72144
  11  0.000102553
  12  33.8846
  13  2.19523e-06
  14  13.7154
  15  1.4451e-06
  16  2.97344e-05
  17  1.65727
  18  4.90573e-06
  19  1.48201e-05
  20  0.000130253
  21  3.92995e-06
  22  0.000297327
  23  11.826
  24  2.7341
  25  13.6239
  26  4.77684e-05
  27  2.02833e-05
  28  2.60526e-05
  29  21.2095
  30  0.226656
  31  0.205434
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.445e-06  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.167e-01  2.054e-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.010e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/915361/likelihoodResults_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.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): 102
logL (Free Index) = 6616.67967063
delta logL = -0.00157188559388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6616.67809873
delta logL = 1.39480107464e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1802       1.0000          .0000       10.000    
     3 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91666       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.

 FCN=   6616.678     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    138.72        .90712E-02** at limit **
   2  Index         2.1756        5.8357        .50000        .12297E-04
   3  Normalizat    1.0099        .30633E-01    .46291E-01    .17700E-03
   4  Prefactor     .91666        .31499E-01    .45217E-01    .24877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17563
  Normalizat = 1.0099
  Prefactor  = 0.91666
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.678     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    366.68        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1756        8.3529        .50000       -.60028    
   3  Normalizat    1.0099        .56756E-01    .25355E-03   -.92699    
   4  Prefactor     .91666        .58367E-01    .27098E-03   -.95561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.06687e-08
Minuit parameter uncertainties:
  1  0.000539273
  2  45.7039
  3  0.0567594
  4  0.0583711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915361': 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): 102
logL (Free Index) = 6616.67809872
delta logL = 2.76977516478e-08

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.393e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.176e+00  4.570e+01  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.167e-01  5.837e-02  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.010e+00  5.676e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.673 37.373

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/915361/cmap_HighResolution_328492801_328752001_4FGL_J1458.6+3722_daily_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-10 16:52:03.667592', job_id='915361', GAL2='0.92', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631317923.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='344' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 915361: <4FGL_J1458.6+3722_daily_bin344> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin344> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 16:36:13 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:36:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 16:36:14 2021
Terminated at Fri Sep 10 16:52:04 2021
Results reported at Fri Sep 10 16:52:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin344 224.673 37.3726 328492801 328752001 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 :                                   929.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

