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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1418
RA = 224.673, Dec = 37.3726
tmin = 606873601, tmax = 607132801
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='922011', job_status='RUN', time_executed='2021-09-10 16:58:38.120311', time_epoch_executed='1631318318.12' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922011/ft1_4FGL_J1458.6+3722_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922011/ft2_4FGL_J1458.6+3722_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922011/ft1_4FGL_J1458.6+3722_daily_bin1418.fits outfile=/scratch/kocevski/922011/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1418.fits ra=224.673 dec=37.3726 rad=12.0 tmin=606873601.0 tmax=607132801.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.29
user 5.04
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922011/ft2_4FGL_J1458.6+3722_daily_bin1418.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/922011/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1418.fits evtable="EVENTS" outfile="/scratch/kocevski/922011/ft1_filtered_4FGL_J1458.6+3722_daily_bin1418.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922011/ft1_filtered_4FGL_J1458.6+3722_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/922011/ft2_4FGL_J1458.6+3722_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/922011/ltcube_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.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/922011/ft2_4FGL_J1458.6+3722_daily_bin1418.fits
.....................!
real 11.47
user 11.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922011/ft1_filtered_4FGL_J1458.6+3722_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/922011/ft2_4FGL_J1458.6+3722_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/922011/ltcube_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.fits outfile=/scratch/kocevski/922011/expmap_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.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/922011/ltcube_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.fits
.....................!
real 192.98
user 187.98
sys 4.63

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/922011/ft1_filtered_4FGL_J1458.6+3722_daily_bin1418.fits scfile=/scratch/kocevski/922011/ft2_4FGL_J1458.6+3722_daily_bin1418.fits outfile=/scratch/kocevski/922011/cmap_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922011/ft1_filtered_4FGL_J1458.6+3722_daily_bin1418.fits scfile=/scratch/kocevski/922011/ft2_4FGL_J1458.6+3722_daily_bin1418.fits outfile=/scratch/kocevski/922011/cmap_HighResolution_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.6027       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.330       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.359       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1849       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9664       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4615       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.33       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3785       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .95594       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.106       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98778       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79768       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=   5229.513     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     4066 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6293       -.18529E-05** at limit **
   2  Prefactor     .10000E-03    6.0330        .13530E-05** at limit **
   3  Prefactor     .10000E-03    7.0250       -.17486E-05** at limit **
   4  norm          4.6018        3.9239        .50571E-07    .48029E-04
   5  Prefactor     .10000E-03    30.686       -.10637E-04** at limit **
   6  Prefactor     .10000E-03    27.966        .30303E-05** at limit **
   7  Prefactor     14.329        5.2330       -.18844E-07    .24806E-04
   8  norm          .10000E-03    6.9024       -.19563E-05** at limit **
   9  Prefactor     .10000E-03    17.238       -.16477E-05** at limit **
  10  norm          .10000E-03    3.0235        .31528E-07** at limit **
  11  Prefactor     56.355        46.845       -.38282E-05    .20083E-04
  12  Prefactor     8.1825        36.700       -.72072E-05   -.10939E-04
  13  norm          .10000E-03    5.9116        .19587E-05** at limit **
  14  Prefactor     7.7332        10.329       -.12584E-05   -.96467E-03
  15  Prefactor     .10000E-03    3.4044        .24958E-07** at limit **
  16  Prefactor     2.9665        3.1502       -.77550E-07    .52506E-04
  17  norm          3.4615        1.9264        .11943E-07   -.21626E-03
  18  norm          .10000E-03    1.7484       -.17831E-07** at limit **
  19  Prefactor     .10000E-03    7.8611        .30140E-05** at limit **
  20  Prefactor     101.33        71.576       -.14965E-05    .46253E-05
  21  Prefactor     .10015E-03    4.8826        .16378E-05** at limit **
  22  Prefactor     7.3833        13.467        .20947E-06   -.13987E-03
  23  Prefactor     .10000E-03    18.790        .30000E-05** at limit **
  24  norm          .95581        .97907        .15044E-07   -.42520E-03
  25  Prefactor     .10000E-03    5.0497       -.53771E-06** at limit **
  26  Prefactor     11.100        23.324       -.72082E-05   -.13779E-04
  27  Prefactor     .10000E-03    15.336       -.38248E-05** at limit **
  28  norm          .10000E-03    14.089       -.28364E-05** at limit **
  29  Prefactor     .10000E-03    12.256        .31606E-05** at limit **
  30  Normalizat    .98785        .16980        .11193E-05   -.67614E-04
  31  Prefactor     .79761        .16833        .27581E-06   -.64566E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.60177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3294
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.355
  Prefactor  = 8.18253
  norm       = 0.0001
  Prefactor  = 7.73317
  Prefactor  = 0.0001
  Prefactor  = 2.96655
  norm       = 3.46154
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.325
  Prefactor  = 0.000100146
  Prefactor  = 7.38328
  Prefactor  = 0.0001
  norm       = 0.955811
  Prefactor  = 0.0001
  Prefactor  = 11.1002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987854
  Prefactor  = 0.797613
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.513     FROM HESSE     STATUS=OK           616 CALLS     4682 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0331        .17344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6018        3.9202        .12775E-03   -1.5279    
   5  Prefactor     .10000E-03    31.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.329        5.2417        .95385E-04   -1.4951    
   8  norm          .10000E-03    6.8986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.0426        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.355        46.736        .53435E-04   -1.4205    
  12  Prefactor     8.1825        36.617        .14014E-03   -1.5136    
  13  norm          .10000E-03    5.9514        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7332        10.746        .72095E-03   -1.5152    
  15  Prefactor     .10000E-03    3.4106        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9665        3.1525        .12895E-03   -1.5363    
  17  norm          3.4615        1.9231        .69589E-04   -1.5336    
  18  norm          .10000E-03    1.7785        .93328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.9338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     101.33        71.551        .39941E-04   -1.3691    
  21  Prefactor     .10015E-03    25.612        .30572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3833        13.420        .14765E-03   -1.5164    
  23  Prefactor     .10000E-03    19.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .95581        .93929        .68547E-03   -1.5512    
  25  Prefactor     .10000E-03    5.0729        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.100        23.238        .12022E-03   -1.5042    
  27  Prefactor     .10000E-03    15.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    14.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    12.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98785        .19773        .22075E-03   -.93438    
  31  Prefactor     .79761        .19487        .24923E-03   -.99816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90848e-09
Minuit parameter uncertainties:
  1  8.59267e-07
  2  1.97636e-06
  3  1.66577e-06
  4  3.92041
  5  0.000191561
  6  7.95127e-05
  7  5.24184
  8  4.30619e-06
  9  1.17138e-05
  10  5.67827e-06
  11  46.7661
  12  34.6543
  13  9.13442e-07
  14  10.7489
  15  3.30214e-06
  16  3.1527
  17  1.92314
  18  8.18996e-06
  19  4.72028e-05
  20  71.6122
  21  0.00386489
  22  13.4252
  23  0.000161341
  24  0.939306
  25  1.92512e-05
  26  23.257
  27  7.81363e-07
  28  4.47963e-06
  29  1.29715e-05
  30  0.197873
  31  0.195041
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.302e-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:  7.976e-01  1.950e-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:  9.879e-01  1.979e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922011/likelihoodResults_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.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) = 5229.5145278
delta logL = -0.00139405708978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5229.51313375
delta logL = -3.03225533571e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1756       1.0000          .0000       10.000    
     3 'Normalizat'    .98782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79767       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=   5229.513     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.450        .90712E-02** at limit **
   2  Index         2.1666        7.4897        .50000        .21640E-04
   3  Normalizat    .98785        .22354E-01    .46014E-01    .24959E-04
   4  Prefactor     .79761        .23028E-01    .43687E-01    .20350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16659
  Normalizat = 0.987854
  Prefactor  = 0.797613
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.513     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      231 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    527.51        .13065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1666        5.1080        .50000       -.60247    
   3  Normalizat    .98785        .68064E-01    .22075E-03   -.93438    
   4  Prefactor     .79761        .70103E-01    .24923E-03   -.99816    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.5281e-08
Minuit parameter uncertainties:
  1  2.45155e-05
  2  51.5571
  3  0.0680703
  4  0.0701106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922011': 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) = 5229.51313365
delta logL = 9.74087015493e-08

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.452e-05  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.167e+00  5.156e+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:  7.976e-01  7.011e-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:  9.879e-01  6.807e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/922011/cmap_HighResolution_606873601_607132801_4FGL_J1458.6+3722_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-10 17:11:59.045576', job_id='922011', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631319119.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='9.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1418' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:11:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 922011: <4FGL_J1458.6+3722_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1418> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 16:56:29 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:56:31 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:56:31 2021
Terminated at Fri Sep 10 17:11:59 2021
Results reported at Fri Sep 10 17:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1418 224.673 37.3726 606873601 607132801 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 :                                   797.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

