/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 4 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1519
RA = 224.673, Dec = 37.3726
tmin = 633052801, tmax = 633312001
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='922174', job_status='RUN', time_executed='2021-09-10 16:56:57.532043', time_epoch_executed='1631318217.53' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922174/ft1_4FGL_J1458.6+3722_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922174/ft2_4FGL_J1458.6+3722_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922174/ft1_4FGL_J1458.6+3722_daily_bin1519.fits outfile=/scratch/kocevski/922174/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1519.fits ra=224.673 dec=37.3726 rad=12.0 tmin=633052801.0 tmax=633312001.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.58
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922174/ft1_filtered_4FGL_J1458.6+3722_daily_bin1519.fits" evtable="EVENTS" scfile=/scratch/kocevski/922174/ft2_4FGL_J1458.6+3722_daily_bin1519.fits sctable="SC_DATA" outfile=/scratch/kocevski/922174/ltcube_633052801_633312001_4FGL_J1458.6+3722_daily_bin1519.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/922174/ft2_4FGL_J1458.6+3722_daily_bin1519.fits
.....................!
real 11.69
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922174/ft1_filtered_4FGL_J1458.6+3722_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/922174/ft2_4FGL_J1458.6+3722_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/922174/ltcube_633052801_633312001_4FGL_J1458.6+3722_daily_bin1519.fits outfile=/scratch/kocevski/922174/expmap_633052801_633312001_4FGL_J1458.6+3722_daily_bin1519.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/922174/ltcube_633052801_633312001_4FGL_J1458.6+3722_daily_bin1519.fits
.....................!
real 190.22
user 185.61
sys 4.27

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/922174/ft1_filtered_4FGL_J1458.6+3722_daily_bin1519.fits scfile=/scratch/kocevski/922174/ft2_4FGL_J1458.6+3722_daily_bin1519.fits outfile=/scratch/kocevski/922174/cmap_633052801_633312001_4FGL_J1458.6+3722_daily_bin1519.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8486       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8941       1.0000         .10000E-03   10000.    
     8 'norm      '    11.288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.282       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.221       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7853       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1457       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.910       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5461       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1576       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3943       1.0000         .10000E-03   10000.    
    28 'norm      '    .11024E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95390       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .69273       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=   6103.098     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3490 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8488        16.561        .19997E-05   -.11995E-03
   2  Prefactor     9.9010        13.078       -.24646E-06   -.40464E-04
   3  Prefactor     .10000E-03    5.8677        .66097E-06** at limit **
   4  norm          1.9737        3.7233        .54211E-06   -.12153E-03
   5  Prefactor     10.300        12.751        .66335E-06    .52552E-04
   6  Prefactor     .10000E-03    16.890        .68726E-06** at limit **
   7  Prefactor     8.8947        3.7642        .75845E-07   -.51215E-04
   8  norm          11.287        12.440       -.37569E-06   -.68742E-04
   9  Prefactor     .10000E-03    4.8742       -.81523E-06** at limit **
  10  norm          .10000E-03    3.0124       -.73201E-07** at limit **
  11  Prefactor     63.669        36.213        .66970E-06    .88365E-04
  12  Prefactor     30.285        26.259        .87491E-06    .80917E-04
  13  norm          .10000E-03    2.2961        .59379E-07** at limit **
  14  Prefactor     23.225        15.160        .51460E-06    .12905E-03
  15  Prefactor     8.7855        6.1755        .11612E-07   -.18582E-04
  16  Prefactor     .10000E-03    1.8541        .24767E-07** at limit **
  17  norm          3.1460        1.6722       -.12946E-06   -.62324E-05
  18  norm          .10000E-03    .79611       -.15246E-06** at limit **
  19  Prefactor     .10000E-03    3.3977       -.52933E-06** at limit **
  20  Prefactor     12.937        99.899        .12713E-04    .12374E-03
  21  Prefactor     .10000E-03    1.8090        .38828E-07** at limit **
  22  Prefactor     .10000E-03    6.5599        .36997E-06** at limit **
  23  Prefactor     4.5521        9.2831        .67680E-05   -.61727E-03
  24  norm          .10000E-03    .35937       -.10283E-06** at limit **
  25  Prefactor     9.1591        6.8420        .11748E-05   -.32076E-03
  26  Prefactor     .10000E-03    9.2453       -.11298E-05** at limit **
  27  Prefactor     1.3652        56.275       -.13406E-04   -.20750E-03
  28  norm          .10000E-03    10.706       -.27294E-05** at limit **
  29  Prefactor     .10000E-03    13.430        .10115E-05** at limit **
  30  Normalizat    .95357        .16122       -.17729E-05    .22494E-03
  31  Prefactor     .69310        .15331       -.43953E-06    .62069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.84884
  Prefactor  = 9.90098
  Prefactor  = 0.0001
  norm       = 1.97372
  Prefactor  = 10.2998
  Prefactor  = 0.0001
  Prefactor  = 8.89467
  norm       = 11.2867
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.6689
  Prefactor  = 30.2847
  norm       = 0.0001
  Prefactor  = 23.2246
  Prefactor  = 8.78546
  Prefactor  = 0.0001
  norm       = 3.14598
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55206
  norm       = 0.0001
  Prefactor  = 9.15911
  Prefactor  = 0.0001
  Prefactor  = 1.36517
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.953566
  Prefactor  = 0.693096
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.098     FROM HESSE     STATUS=OK           614 CALLS     4104 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8488        16.618        .67373E-03   -1.5113    
   2  Prefactor     9.9010        13.061        .12735E-03   -1.5079    
   3  Prefactor     .10000E-03    5.8806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9737        3.6954        .19399E-03   -1.5427    
   5  Prefactor     10.300        12.700        .12487E-03   -1.5066    
   6  Prefactor     .10000E-03    17.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8947        3.7677        .94504E-04   -1.5111    
   8  norm          11.287        12.428        .11924E-03   -1.5036    
   9  Prefactor     .10000E-03    4.8931        .16874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.0425        .13237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.669        36.230        .50293E-04   -1.4110    
  12  Prefactor     30.285        26.272        .72809E-04   -1.4607    
  13  norm          .10000E-03    2.2965        .11561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.225        15.196        .83123E-04   -1.4744    
  15  Prefactor     8.7855        6.1753        .13523E-03   -1.5115    
  16  Prefactor     .10000E-03    1.8683        .10387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1460        1.6701        .66350E-04   -1.5353    
  18  norm          .10000E-03    .79941        .68110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4535        .14097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.937        105.04        .11148E-03   -1.4988    
  21  Prefactor     .10000E-03    1.8111        .10262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.5743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5521        9.6933        .94403E-03   -1.5281    
  24  norm          .10000E-03    .36740        .90879E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.1591        6.8555        .66220E-03   -1.5103    
  26  Prefactor     .10000E-03    9.2772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.3652        64.125        .36781E-03   -1.5474    
  28  norm          .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    13.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .95357        .19360        .21346E-03   -.94603    
  31  Prefactor     .69310        .18261        .25186E-03   -1.0380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54192e-09
Minuit parameter uncertainties:
  1  16.6269
  2  13.0649
  3  5.48707e-05
  4  3.69581
  5  12.7029
  6  2.47369e-06
  7  3.76782
  8  12.4307
  9  6.56131e-05
  10  1.04358e-05
  11  36.2425
  12  26.2822
  13  2.07691e-06
  14  15.1981
  15  6.17577
  16  5.66809e-08
  17  1.67017
  18  6.6076e-06
  19  5.2039e-05
  20  73.9041
  21  1.51127e-06
  22  2.56472e-05
  23  9.6966
  24  2.69011e-06
  25  6.85611
  26  0.000121501
  27  18.7334
  28  0.000155463
  29  0.000138075
  30  0.19374
  31  0.182764
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  8.785e+00  6.176e+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:  6.931e-01  1.828e-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.536e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.75
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.08e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6102.62861857
delta logL = 0.468984237156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6102.6041101
delta logL = 0.493492706467

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6102.604     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.139        8.7946        .60024E-03   -.23486E-05
   2  Index         1.6864        .52803        .88827E-02    .77584E-04
   3  Normalizat    .96707        .17626        .21231E-03   -.56225E-05
   4  Prefactor     .68698        .18026        .25306E-03    .20036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1388
  Index      = 1.68642
  Normalizat = 0.967074
  Prefactor  = 0.686981
 **********
 **   18 **HESSE 
 **********

 FCN=   6102.604     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.139        8.8499        .24010E-04   -1.5040    
   2  Index         1.6864        .53144        .17765E-02   -.72444    
   3  Normalizat    .96707        .17643        .84924E-05   -.94142    
   4  Prefactor     .68698        .18044        .10122E-04   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22273e-12
Minuit parameter uncertainties:
  1  8.85096
  2  0.533243
  3  0.176537
  4  0.180595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922174': 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) = 6102.60410988
delta logL = 0.49349292685

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.114e+01  8.851e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.686e+00  5.332e-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:  6.870e-01  1.806e-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.671e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.76
Ra Dec: 224.673 37.373
Photon Index (Free Index): 1.69 +/- 0.53
Photon Flux (Free Index): 1.79e-08 +/- 2.14e-08
Energy Flux (Free Index): 3.06e-05 +/- 3.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/922174/cmap_HighResolution_633052801_633312001_4FGL_J1458.6+3722_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='3.06e-05', photon_flux_error='2.34e-08', dlogl='4.93e-01', energy_flux='1.54e-05', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-10 17:08:52.840181', photon_index_error2='0.53', photon_index2='1.69', ts='8.75', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='3.44e-05', EG='0.95', time_epoch_completed='1631318932.84', return_code='0', job_id='922174', GAL2='0.69', EG2='0.97', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.14e-08', ts2='9.76', photon_index='2.18' WHERE bin_id='1519' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 922174: <4FGL_J1458.6+3722_daily_bin1519> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1519 224.673 37.3726 633052801 633312001 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 :                                   710.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

