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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin713
RA = 224.673, Dec = 37.3726
tmin = 424137601, tmax = 424396801
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='918282', job_status='RUN', time_executed='2021-09-10 16:46:29.301943', time_epoch_executed='1631317589.3' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918282/ft1_4FGL_J1458.6+3722_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918282/ft2_4FGL_J1458.6+3722_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918282/ft1_4FGL_J1458.6+3722_daily_bin713.fits outfile=/scratch/kocevski/918282/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin713.fits ra=224.673 dec=37.3726 rad=12.0 tmin=424137601.0 tmax=424396801.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.10
user 4.87
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918282/ft1_filtered_4FGL_J1458.6+3722_daily_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/918282/ft2_4FGL_J1458.6+3722_daily_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/918282/ltcube_424137601_424396801_4FGL_J1458.6+3722_daily_bin713.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/918282/ft2_4FGL_J1458.6+3722_daily_bin713.fits
.....................!
real 11.77
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918282/ft1_filtered_4FGL_J1458.6+3722_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/918282/ft2_4FGL_J1458.6+3722_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/918282/ltcube_424137601_424396801_4FGL_J1458.6+3722_daily_bin713.fits outfile=/scratch/kocevski/918282/expmap_424137601_424396801_4FGL_J1458.6+3722_daily_bin713.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/918282/ltcube_424137601_424396801_4FGL_J1458.6+3722_daily_bin713.fits
.....................!
real 190.40
user 185.07
sys 4.82

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918282/ft1_filtered_4FGL_J1458.6+3722_daily_bin713.fits scfile=/scratch/kocevski/918282/ft2_4FGL_J1458.6+3722_daily_bin713.fits outfile=/scratch/kocevski/918282/cmap_HighResolution_424137601_424396801_4FGL_J1458.6+3722_daily_bin713.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10970E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17156E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.585       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70772       1.0000         .10000E-03   10000.    
     8 'norm      '    46.340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11402E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    161.60       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    17 'norm      '    9.6802       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6728       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13164E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.190       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.0425       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0038       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    49.051       1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.439       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .69089       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91983       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=   1936.018     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     4154 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    44.644       -.45096E-06** at limit **
   2  Prefactor     .10000E-03    78.602        .43962E-05** at limit **
   3  Prefactor     .10000E-03    22.699       -.22139E-06** at limit **
   4  norm          11.136        10.094        .15786E-06   -.38106E-04
   5  Prefactor     .10000E-03    48.247       -.45613E-06** at limit **
   6  Prefactor     32.596        45.213       -.18213E-06    .18391E-07
   7  Prefactor     .71499        11.510        .18276E-05   -.73238E-04
   8  norm          46.346        50.099       -.48472E-06   -.45311E-05
   9  Prefactor     .10000E-03    61.957       -.12317E-05** at limit **
  10  norm          .10000E-03    21.559       -.60640E-07** at limit **
  11  Prefactor     35.270        133.13       -.22593E-06    .66081E-05
  12  Prefactor     161.64        102.61       -.26248E-05   -.21522E-04
  13  norm          .10000E-03    7.6885       -.27365E-07** at limit **
  14  Prefactor     .10000E-03    15.096        .34242E-06** at limit **
  15  Prefactor     .10000E-03    21.923       -.34785E-06** at limit **
  16  Prefactor     2.2406        12.490        .78645E-05    .19964E-04
  17  norm          9.6819        4.0858       -.75475E-07    .47352E-04
  18  norm          3.6703        4.5641        .24812E-06    .35206E-04
  19  Prefactor     .10000E-03    12.087       -.14820E-06** at limit **
  20  Prefactor     39.094        139.49        .17657E-04   -.70831E-05
  21  Prefactor     .10000E-03    14.741        .27632E-06** at limit **
  22  Prefactor     .10000E-03    7.9456        .24925E-07** at limit **
  23  Prefactor     .10000E-03    4.3757       -.17683E-07** at limit **
  24  norm          3.0434        3.3552        .20784E-07   -.15814E-04
  25  Prefactor     3.9982        30.608        .88235E-06   -.33000E-05
  26  Prefactor     .10000E-03    62.211       -.17658E-05** at limit **
  27  Prefactor     .10000E-03    31.811        .25222E-05** at limit **
  28  norm          49.054        29.262       -.31750E-06   -.46732E-04
  29  Prefactor     12.433        26.628        .60093E-06   -.47549E-06
  30  Normalizat    .69051        .32932       -.53311E-05   -.27409E-04
  31  Prefactor     .92033        .29451        .24615E-05   -.30358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1362
  Prefactor  = 0.0001
  Prefactor  = 32.5957
  Prefactor  = 0.714986
  norm       = 46.3459
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.2701
  Prefactor  = 161.644
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24057
  norm       = 9.68193
  norm       = 3.67029
  Prefactor  = 0.0001
  Prefactor  = 39.0943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04339
  Prefactor  = 3.99818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.0543
  Prefactor  = 12.4326
  Normalizat = 0.690509
  Prefactor  = 0.920332
 **********
 **   18 **HESSE 
 **********

 FCN=   1936.018     FROM HESSE     STATUS=OK           616 CALLS     4770 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    44.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.136        10.085        .12007E-03   -1.5040    
   5  Prefactor     .10000E-03    48.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.596        45.379        .70196E-04   -1.4565    
   7  Prefactor     .71499        21.756        .27193E-02   -1.5539    
   8  norm          46.346        50.104        .58900E-04   -1.4345    
   9  Prefactor     .10000E-03    61.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    21.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.270        133.13        .67499E-04   -1.4519    
  12  Prefactor     161.64        102.83        .15862E-03   -1.3158    
  13  norm          .10000E-03    7.6891        .11917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.109        .16702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2406        12.552        .13723E-02   -1.5409    
  17  norm          9.6819        4.0897        .53321E-04   -1.5086    
  18  norm          3.6703        4.5347        .50131E-03   -1.5325    
  19  Prefactor     .10000E-03    12.362        .29689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.094        139.53        .64026E-04   -1.4457    
  21  Prefactor     .10000E-03    14.837        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.9511        .12115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3780        .89896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.0434        3.3121        .59966E-04   -1.5359    
  25  Prefactor     3.9982        29.844        .20155E-03   -1.5308    
  26  Prefactor     .10000E-03    62.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          49.054        29.306        .57257E-04   -1.4306    
  29  Prefactor     12.433        26.643        .11358E-03   -1.5003    
  30  Normalizat    .69051        .37979        .27180E-03   -1.0427    
  31  Prefactor     .92033        .34348        .24155E-03   -.95434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19596e-09
Minuit parameter uncertainties:
  1  3.18263e-05
  2  4.82392e-05
  3  1.86484e-06
  4  10.0862
  5  0.000247841
  6  45.4266
  7  7.8907
  8  50.1498
  9  0.000177258
  10  0.000131557
  11  134.278
  12  102.946
  13  2.91319e-06
  14  2.18913e-05
  15  4.77493e-05
  16  10.6093
  17  4.08979
  18  4.53513
  19  1.38905e-05
  20  140.723
  21  9.82163e-06
  22  3.8627e-06
  23  1.77569e-06
  24  3.31234
  25  21.8619
  26  1.81155e-06
  27  5.25446e-05
  28  29.3147
  29  26.668
  30  0.381242
  31  0.344295
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  4.775e-05  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.203e-01  3.443e-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:  6.905e-01  3.812e-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: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918282/likelihoodResults_424137601_424396801_4FGL_J1458.6+3722_daily_bin713.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) = 1936.01792848
delta logL = -0.000215436963344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1935.37269806
delta logL = 0.645014980815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14751E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.2595       1.0000          .0000       10.000    
     3 'Normalizat'    .57041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99926       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=   1935.373     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      371 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13870E-02    .35899E-01    .41026E-03** at limit **
   2  Index         6.2843        3.0123        .74213E-01   -.79652E-04
   3  Normalizat    .57041        .78658E-01    .66726E-01   -.63100E-04
   4  Prefactor     .99923        .80545E-01    .46258E-01   -.56862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00138704
  Index      = 6.2843
  Normalizat = 0.570405
  Prefactor  = 0.999228
 **********
 **   18 **HESSE 
 **********

 FCN=   1935.373     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      402 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13870E-02    .76086E-01    .16740E-05   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2843        7.5321        .29725E-02    .25977    
   3  Normalizat    .57041        .28877        .29531E-03   -1.0926    
   4  Prefactor     .99923        .29050        .23263E-03   -.92755    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12495e-10
Minuit parameter uncertainties:
  1  0.0197915
  2  5.39715
  3  0.289534
  4  0.290955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918282': 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) = 1935.37268525
delta logL = 0.645027786127

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.387e-03  1.979e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  6.284e+00  5.397e+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.992e-01  2.910e-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:  5.704e-01  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 224.673 37.373
Photon Index (Free Index): 6.28 +/- 5.40
Photon Flux (Free Index): 1.13e-07 +/- 1.14e-07
Energy Flux (Free Index): 1.39e-05 +/- 1.49e-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/918282/cmap_HighResolution_424137601_424396801_4FGL_J1458.6+3722_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='6.45e-01', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-10 16:54:59.969948', photon_index_error2='5.40', photon_index2='6.28', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.49e-05', EG='0.69', time_epoch_completed='1631318099.97', return_code='0', job_id='918282', GAL2='1.00', EG2='0.57', return_code2='102', photon_flux_error2='1.14e-07', ts2='1.40', photon_index='2.18' WHERE bin_id='713' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:54:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 918282: <4FGL_J1458.6+3722_daily_bin713> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin713> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 16:46:15 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:46:17 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:46:17 2021
Terminated at Fri Sep 10 16:55:00 2021
Results reported at Fri Sep 10 16:55:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin713 224.673 37.3726 424137601 424396801 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 :                                   508.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            525 sec.

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

