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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1414
RA = 224.673, Dec = 37.3726
tmin = 605836801, tmax = 606096001
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='922004', job_status='RUN', time_executed='2021-09-10 16:56:46.100792', time_epoch_executed='1631318206.1' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922004

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922004/ft1_4FGL_J1458.6+3722_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922004/ft2_4FGL_J1458.6+3722_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922004/ft1_4FGL_J1458.6+3722_daily_bin1414.fits outfile=/scratch/kocevski/922004/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1414.fits ra=224.673 dec=37.3726 rad=12.0 tmin=605836801.0 tmax=606096001.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.62
user 3.37
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922004/ft1_filtered_4FGL_J1458.6+3722_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/922004/ft2_4FGL_J1458.6+3722_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/922004/ltcube_605836801_606096001_4FGL_J1458.6+3722_daily_bin1414.fits outfile=/scratch/kocevski/922004/expmap_605836801_606096001_4FGL_J1458.6+3722_daily_bin1414.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/922004/ltcube_605836801_606096001_4FGL_J1458.6+3722_daily_bin1414.fits
.....................!
real 190.94
user 185.09
sys 5.47

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/922004/ft1_filtered_4FGL_J1458.6+3722_daily_bin1414.fits scfile=/scratch/kocevski/922004/ft2_4FGL_J1458.6+3722_daily_bin1414.fits outfile=/scratch/kocevski/922004/cmap_605836801_606096001_4FGL_J1458.6+3722_daily_bin1414.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=224.673 yref=37.3726 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922004/ft1_filtered_4FGL_J1458.6+3722_daily_bin1414.fits scfile=/scratch/kocevski/922004/ft2_4FGL_J1458.6+3722_daily_bin1414.fits outfile=/scratch/kocevski/922004/cmap_HighResolution_605836801_606096001_4FGL_J1458.6+3722_daily_bin1414.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .87325E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.783       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8792       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7764       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.096       1.0000         .10000E-03   10000.    
     8 'norm      '    15.024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.533       1.0000         .10000E-03   10000.    
    10 'norm      '    14.649       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.801       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63415E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8112       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9122       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.4579       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11395E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0682       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6315.060     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     3546 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8891        .10386E-05** at limit **
   2  Prefactor     .10193E-03    1045.4       -.55154E-04** at limit **
   3  Prefactor     10.780        1.7383        .20736E-06    .20635E-02
   4  norm          2.8796        3.2406        .32210E-06   -.20167E-04
   5  Prefactor     .10000E-03    5.5215       -.11138E-05** at limit **
   6  Prefactor     1.7796        6.5122       -.44295E-05    .63839E-03
   7  Prefactor     33.098        2.6274       -.16164E-06    .56170E-02
   8  norm          15.031        2.7181       -.54104E-06    .13684E-02
   9  Prefactor     42.540        2.4677       -.44450E-06   -.32110E-02
  10  norm          14.651        4.7895       -.65949E-06   -.62704E-02
  11  Prefactor     .10001E-03    16.429        .50355E-05** at limit **
  12  Prefactor     67.801        1.5259       -.19287E-06   -.66094E-03
  13  norm          4.9482        1.1177       -.26828E-06   -.12471E-02
  14  Prefactor     .10000E-03    4.5808       -.49525E-06** at limit **
  15  Prefactor     7.5676        5.2370       -.20455E-05   -.27100E-02
  16  Prefactor     .10000E-03    1.9413       -.28574E-07** at limit **
  17  norm          .10000E-03    2.3174       -.54755E-06** at limit **
  18  norm          .10000E-03    1.1736       -.56568E-06** at limit **
  19  Prefactor     .10002E-03    242.53        .56042E-04** at limit **
  20  Prefactor     .10000E-03    11.121       -.25083E-05** at limit **
  21  Prefactor     .10000E-03    5.9008       -.78727E-06** at limit **
  22  Prefactor     .10000E-03    11.652       -.32975E-06** at limit **
  23  Prefactor     6.8397        6.1797       -.13994E-05    .14049E-02
  24  norm          1.9119        1.0184       -.83311E-07    .86200E-04
  25  Prefactor     .10000E-03    5.2470        .12706E-05** at limit **
  26  Prefactor     8.4551        2.6182        .94985E-07    .29726E-02
  27  Prefactor     .10001E-03    50.965        .15602E-05** at limit **
  28  norm          .10000E-03    10.810       -.35587E-05** at limit **
  29  Prefactor     .10000E-03    7.8492       -.47471E-06** at limit **
  30  Normalizat    1.0679        .20172        .47515E-06    .62723E-04
  31  Prefactor     .71939        .19960        .16162E-05    .56415E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000101927
  Prefactor  = 10.7802
  norm       = 2.87957
  Prefactor  = 0.0001
  Prefactor  = 1.77955
  Prefactor  = 33.0978
  norm       = 15.0306
  Prefactor  = 42.54
  norm       = 14.6508
  Prefactor  = 0.000100005
  Prefactor  = 67.8014
  norm       = 4.94816
  Prefactor  = 0.0001
  Prefactor  = 7.56762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.83969
  norm       = 1.91187
  Prefactor  = 0.0001
  Prefactor  = 8.45513
  Prefactor  = 0.000100011
  norm       = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.06789
  Prefactor  = 0.719392
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.060     FROM HESSE     STATUS=OK           702 CALLS     4248 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10193E-03    11.367        .94506E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.780        21.527        .30503E-02   -1.5051    
   4  norm          2.8796        3.2829        .59883E-02   -1.5369    
   5  Prefactor     .10000E-03    5.5192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7796        17.337        .78521E-02   -1.5441    
   7  Prefactor     33.098        6.2839        .17413E-02   -1.4557    
   8  norm          15.031        13.884        .25833E-02   -1.4932    
   9  Prefactor     42.540        28.738        .15367E-02   -1.4403    
  10  norm          14.651        7.8209        .26162E-02   -1.4942    
  11  Prefactor     .10001E-03    19.173        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     67.801        37.526        .12186E-02   -1.4059    
  13  norm          4.9482        4.9243        .45198E-02   -1.5263    
  14  Prefactor     .10000E-03    4.5729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5676        5.7080        .36452E-02   -1.5158    
  16  Prefactor     .10000E-03    1.9252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0236        .24205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    8.5305        .62891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.206        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.8397        11.719        .38434E-02   -1.5185    
  24  norm          1.9119        1.0279        .75151E-02   -1.5431    
  25  Prefactor     .10000E-03    5.2043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.4551        20.571        .34460E-02   -1.5126    
  27  Prefactor     .10001E-03    51.373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    21.624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.8420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0679        .17829        .39472E-01   -.90790    
  31  Prefactor     .71939        .16948        .61892E-01   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22941e-07
Minuit parameter uncertainties:
  1  5.36695e-05
  2  0.0093632
  3  21.5428
  4  3.28312
  5  1.62209e-05
  6  11.113
  7  6.28398
  8  13.8865
  9  28.7475
  10  7.82149
  11  0.000632464
  12  37.5389
  13  4.92473
  14  5.2218e-06
  15  5.70846
  16  1.82714e-06
  17  6.33854e-07
  18  3.4641e-07
  19  0.000721641
  20  0.000229102
  21  1.62272e-05
  22  0.000107938
  23  11.7225
  24  1.02791
  25  1.27972e-05
  26  20.5884
  27  0.00150575
  28  0.000563861
  29  2.70412e-05
  30  0.178394
  31  0.169603
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  7.568e+00  5.708e+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:  7.194e-01  1.696e-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.068e+00  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.00e-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) = 6314.7436362
delta logL = 0.316559723368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6314.74255694
delta logL = 0.317638990614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.047       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6691       1.0000          .0000       10.000    
     3 'Normalizat'    1.0807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71237       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=   6314.743     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.047        8.5284        .60269E-03   -.80106E-03
   2  Index         1.6690        .58937        .10019E-01   -.16439E-03
   3  Normalizat    1.0807        .19481        .22345E-03    .10003E-03
   4  Prefactor     .71241        .19862        .27501E-03    .73955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0473
  Index      = 1.66902
  Normalizat = 1.0807
  Prefactor  = 0.712407
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.743     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.047        8.4849        .12054E-03   -1.5043    
   2  Index         1.6690        .58649        .40076E-03   -.72910    
   3  Normalizat    1.0807        .19500        .89378E-05   -.90374    
   4  Prefactor     .71241        .19883        .11000E-04   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04457e-09
Minuit parameter uncertainties:
  1  8.48577
  2  0.588936
  3  0.195128
  4  0.199026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922004': 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) = 6314.74255692
delta logL = 0.317639010086

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.105e+01  8.486e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.669e+00  5.889e-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.124e-01  1.990e-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.081e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.45
Ra Dec: 224.673 37.373
Photon Index (Free Index): 1.67 +/- 0.59
Photon Flux (Free Index): 1.74e-08 +/- 1.84e-08
Energy Flux (Free Index): 3.13e-05 +/- 4.39e-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/922004/cmap_HighResolution_605836801_606096001_4FGL_J1458.6+3722_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='3.13e-05', photon_flux_error='2.16e-08', dlogl='3.18e-01', energy_flux='1.33e-05', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-10 17:09:32.182590', photon_index_error2='0.59', photon_index2='1.67', ts='6.83', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='4.39e-05', EG='1.07', time_epoch_completed='1631318972.18', return_code='0', job_id='922004', GAL2='0.71', EG2='1.08', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='1.84e-08', ts2='7.45', photon_index='2.18' WHERE bin_id='1414' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:09:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 922004: <4FGL_J1458.6+3722_daily_bin1414> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1414> 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) <bullet0210>, 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:09:32 2021
Results reported at Fri Sep 10 17:09:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1414 224.673 37.3726 605836801 606096001 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 :                                   763.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

