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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin861
RA = 224.673, Dec = 37.3726
tmin = 462499201, tmax = 462758401
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='918524', job_status='RUN', time_executed='2021-09-10 16:46:46.452841', time_epoch_executed='1631317606.45' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='861'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918524/ft1_4FGL_J1458.6+3722_daily_bin861.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918524/ft2_4FGL_J1458.6+3722_daily_bin861.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918524/ft1_4FGL_J1458.6+3722_daily_bin861.fits outfile=/scratch/kocevski/918524/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin861.fits ra=224.673 dec=37.3726 rad=12.0 tmin=462499201.0 tmax=462758401.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918524/ft2_4FGL_J1458.6+3722_daily_bin861.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/918524/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin861.fits evtable="EVENTS" outfile="/scratch/kocevski/918524/ft1_filtered_4FGL_J1458.6+3722_daily_bin861.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918524/ft1_filtered_4FGL_J1458.6+3722_daily_bin861.fits" evtable="EVENTS" scfile=/scratch/kocevski/918524/ft2_4FGL_J1458.6+3722_daily_bin861.fits sctable="SC_DATA" outfile=/scratch/kocevski/918524/ltcube_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.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/918524/ft2_4FGL_J1458.6+3722_daily_bin861.fits
.....................!
real 12.38
user 12.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918524/ft1_filtered_4FGL_J1458.6+3722_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/918524/ft2_4FGL_J1458.6+3722_daily_bin861.fits sctable="SC_DATA" expcube=/scratch/kocevski/918524/ltcube_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.fits outfile=/scratch/kocevski/918524/expmap_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.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/918524/ltcube_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.fits
.....................!
real 190.66
user 185.13
sys 5.15

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/918524/ft1_filtered_4FGL_J1458.6+3722_daily_bin861.fits scfile=/scratch/kocevski/918524/ft2_4FGL_J1458.6+3722_daily_bin861.fits outfile=/scratch/kocevski/918524/cmap_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.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/918524/ft1_filtered_4FGL_J1458.6+3722_daily_bin861.fits scfile=/scratch/kocevski/918524/ft2_4FGL_J1458.6+3722_daily_bin861.fits outfile=/scratch/kocevski/918524/cmap_HighResolution_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.701       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.476       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4465       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.741       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.630       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1342       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2609       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1657       1.0000         .10000E-03   10000.    
    17 'norm      '    16.186       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7061       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11753E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11315E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.855       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9296       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3140       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.002       1.0000         .10000E-03   10000.    
    28 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .64845       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2588       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=   6679.043     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     4179 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.699        13.091       -.97160E-07    .18550E-06
   2  Prefactor     4.6265        8.6699        .31922E-05   -.10761E-04
   3  Prefactor     30.453        28.841       -.87743E-06   -.23543E-03
   4  norm          4.4462        3.1926       -.56756E-07   -.23331E-04
   5  Prefactor     .10000E-03    5.2187        .21523E-07** at limit **
   6  Prefactor     .10000E-03    7.2093        .17356E-07** at limit **
   7  Prefactor     10.740        4.7719       -.13272E-07    .88787E-04
   8  norm          .10000E-03    5.8105       -.15928E-07** at limit **
   9  Prefactor     .10000E-03    24.645       -.27884E-06** at limit **
  10  norm          10.627        7.7661       -.71190E-07    .31811E-05
  11  Prefactor     .10000E-03    28.764        .32558E-06** at limit **
  12  Prefactor     .10000E-03    20.230        .64509E-07** at limit **
  13  norm          3.1368        7.9647        .51725E-06   -.15731E-04
  14  Prefactor     7.4692        17.007       -.87420E-07   -.21423E-04
  15  Prefactor     4.2616        8.7414        .29582E-06   -.50118E-05
  16  Prefactor     7.1651        7.8193        .12471E-06   -.21342E-04
  17  norm          16.185        3.4989       -.46640E-07   -.10971E-04
  18  norm          6.7085        4.9243       -.38652E-07   -.17334E-03
  19  Prefactor     .10000E-03    23.350       -.19244E-05** at limit **
  20  Prefactor     .10000E-03    38.926        .19966E-06** at limit **
  21  Prefactor     .10000E-03    4.0090        .51964E-07** at limit **
  22  Prefactor     .10000E-03    42.701       -.61509E-06** at limit **
  23  Prefactor     21.851        17.723       -.45341E-06    .20600E-04
  24  norm          2.9298        2.0739        .13784E-07   -.37412E-04
  25  Prefactor     8.3100        16.352        .10972E-06   -.13927E-04
  26  Prefactor     12.626        26.027       -.11193E-06   -.40715E-04
  27  Prefactor     26.002        21.912        .29675E-06    .19755E-05
  28  norm          .10000E-03    37.024        .89244E-06** at limit **
  29  Prefactor     .10000E-03    19.227        .27115E-06** at limit **
  30  Normalizat    .64897        .21131        .18536E-05   -.37979E-04
  31  Prefactor     1.2584        .19764       -.14646E-05    .87247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6988
  Prefactor  = 4.62645
  Prefactor  = 30.453
  norm       = 4.44619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7397
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13683
  Prefactor  = 7.46916
  Prefactor  = 4.26162
  Prefactor  = 7.1651
  norm       = 16.1851
  norm       = 6.70848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8514
  norm       = 2.9298
  Prefactor  = 8.30999
  Prefactor  = 12.6259
  Prefactor  = 26.002
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.648967
  Prefactor  = 1.25836
 **********
 **   18 **HESSE 
 **********

 FCN=   6679.043     FROM HESSE     STATUS=OK           624 CALLS     4803 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.699        13.094        .11711E-03   -1.5024    
   2  Prefactor     4.6265        8.7812        .93557E-03   -1.5278    
   3  Prefactor     30.453        29.179        .72577E-04   -1.4604    
   4  norm          4.4462        3.1933        .11989E-03   -1.5286    
   5  Prefactor     .10000E-03    5.2334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.740        4.7823        .11307E-03   -1.5052    
   8  norm          .10000E-03    5.8178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.627        7.7676        .12289E-03   -1.5056    
  11  Prefactor     .10000E-03    28.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1368        7.9383        .22899E-03   -1.5354    
  14  Prefactor     7.4692        16.953        .14670E-03   -1.5161    
  15  Prefactor     4.2616        8.6947        .19519E-03   -1.5295    
  16  Prefactor     7.1651        7.8126        .14985E-03   -1.5173    
  17  norm          16.185        3.4965        .61873E-04   -1.4903    
  18  norm          6.7085        4.9059        .13877E-03   -1.5190    
  19  Prefactor     .10000E-03    23.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0215        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.851        17.579        .85678E-04   -1.4773    
  24  norm          2.9298        2.0711        .69611E-04   -1.5366    
  25  Prefactor     8.3100        16.327        .13904E-03   -1.5131    
  26  Prefactor     12.626        26.015        .11270E-03   -1.4997    
  27  Prefactor     26.002        21.806        .78560E-04   -1.4688    
  28  norm          .10000E-03    37.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    19.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .64897        .24522        .32979E-03   -1.0594    
  31  Prefactor     1.2584        .23051        .24829E-03   -.84554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53238e-10
Minuit parameter uncertainties:
  1  13.0973
  2  8.78363
  3  29.1931
  4  3.1934
  5  1.91089e-06
  6  4.85166e-06
  7  4.78246
  8  1.05554e-05
  9  5.77858e-05
  10  7.76831
  11  0.000130116
  12  3.46686e-05
  13  7.94096
  14  16.9637
  15  8.69731
  16  7.81366
  17  3.49659
  18  4.90622
  19  1.1989e-05
  20  9.66138e-05
  21  2.98293e-07
  22  0.000177074
  23  17.5827
  24  2.0711
  25  16.3353
  26  26.0388
  27  21.8129
  28  0.000133711
  29  5.93578e-05
  30  0.245631
  31  0.230696
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  4.262e+00  8.697e+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:  1.258e+00  2.307e-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.490e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/918524/likelihoodResults_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.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): 0
logL (Free Index) = 6678.86429108
delta logL = 0.178419809352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6678.81454439
delta logL = 0.22816649463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42833       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8299       1.0000          .0000       10.000    
     3 'Normalizat'    .59431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2970       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=   6678.815     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      288 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42539        5.4422        .10975E-01    .18763E-02
   2  Index         3.8331        1.8164        .13551        .13741E-03
   3  Normalizat    .59432        .30537E-01    .77460E-01    .36398E-04
   4  Prefactor     1.2969        .31266E-01    .55417E-01    .96138E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.425388
  Index      = 3.83311
  Normalizat = 0.594319
  Prefactor  = 1.29691
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.815     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42539        26.148        .57635E-04   -1.5578    
   2  Index         3.8331        6.9162        .47293E-02   -.23555    
   3  Normalizat    .59432        .18138        .34298E-03   -1.0823    
   4  Prefactor     1.2969        .18201        .24502E-03   -.83399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54939e-07
Minuit parameter uncertainties:
  1  6.67254
  2  6.56899
  3  0.181563
  4  0.182094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918524': 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) = 6678.814543
delta logL = 0.228167885729

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  4.254e-01  6.673e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.833e+00  6.569e+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:  1.297e+00  1.821e-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.943e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/918524/cmap_HighResolution_462499201_462758401_4FGL_J1458.6+3722_daily_bin861.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.97e-08', time_completed='2021-09-10 17:02:14.510251', job_id='918524', GAL2='1.30', fit_tolerance='1e-08', EG2='0.59', EG='0.65', time_epoch_completed='1631318534.51', return_code2='102', ts='0.36', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.28e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='861' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:02:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 918524: <4FGL_J1458.6+3722_daily_bin861> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin861 224.673 37.3726 462499201 462758401 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 :                                   926.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

