/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 15 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1458.6+3722_daily_bin5
RA = 224.673, Dec = 37.3726
tmin = 240624001, tmax = 240883201
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='912693', job_status='RUN', time_executed='2021-09-10 16:26:32.918433', time_epoch_executed='1631316392.92' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912693

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912693/ft1_4FGL_J1458.6+3722_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912693/ft2_4FGL_J1458.6+3722_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912693/ft1_4FGL_J1458.6+3722_daily_bin5.fits outfile=/scratch/kocevski/912693/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin5.fits ra=224.673 dec=37.3726 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.17
user 0.99
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912693/ft2_4FGL_J1458.6+3722_daily_bin5.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/912693/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/912693/ft1_filtered_4FGL_J1458.6+3722_daily_bin5.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.45
user 0.27
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912693/ft1_filtered_4FGL_J1458.6+3722_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/912693/ft2_4FGL_J1458.6+3722_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/912693/ltcube_240624001_240883201_4FGL_J1458.6+3722_daily_bin5.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/912693/ft2_4FGL_J1458.6+3722_daily_bin5.fits
.....................!
real 12.61
user 11.84
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912693/ft1_filtered_4FGL_J1458.6+3722_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/912693/ft2_4FGL_J1458.6+3722_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/912693/ltcube_240624001_240883201_4FGL_J1458.6+3722_daily_bin5.fits outfile=/scratch/kocevski/912693/expmap_240624001_240883201_4FGL_J1458.6+3722_daily_bin5.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/912693/ltcube_240624001_240883201_4FGL_J1458.6+3722_daily_bin5.fits
.....................!
real 149.02
user 143.52
sys 5.14

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/912693/ft1_filtered_4FGL_J1458.6+3722_daily_bin5.fits scfile=/scratch/kocevski/912693/ft2_4FGL_J1458.6+3722_daily_bin5.fits outfile=/scratch/kocevski/912693/cmap_240624001_240883201_4FGL_J1458.6+3722_daily_bin5.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.45
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912693/ft1_filtered_4FGL_J1458.6+3722_daily_bin5.fits scfile=/scratch/kocevski/912693/ft2_4FGL_J1458.6+3722_daily_bin5.fits outfile=/scratch/kocevski/912693/cmap_HighResolution_240624001_240883201_4FGL_J1458.6+3722_daily_bin5.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.792       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .88369E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.3833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28881E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    25.114       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5886       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2679       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1541       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1682       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.419       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.057       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1160       1.0000         .10000E-03   10000.    
    24 'norm      '    6.1480       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11248E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9590       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.127       1.0000         .10000E-03   10000.    
    28 'norm      '    .31715E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.1443       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86851       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80468       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=   6436.363     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4193 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.646        19.044       -.48429E-06    .15949E-04
   2  Prefactor     .10000E-03    6.9937       -.73056E-07** at limit **
   3  Prefactor     16.799        21.588       -.25528E-05    .10258E-03
   4  norm          .10000E-03    .76555       -.50162E-09** at limit **
   5  Prefactor     .10000E-03    9.1083       -.50393E-06** at limit **
   6  Prefactor     .10026E-03    14.618        .43503E-06** at limit **
   7  Prefactor     .10000E-03    .83218       -.53557E-07** at limit **
   8  norm          7.3887        9.6666       -.20946E-05    .13732E-03
   9  Prefactor     .10010E-03    13.134       -.75539E-06** at limit **
  10  norm          .10000E-03    4.0427       -.13627E-06** at limit **
  11  Prefactor     .10000E-03    10.713        .88297E-06** at limit **
  12  Prefactor     .10000E-03    26.798        .54737E-06** at limit **
  13  norm          25.112        11.485       -.10334E-07    .47563E-04
  14  Prefactor     3.5838        12.061       -.20899E-05   -.87038E-04
  15  Prefactor     .10000E-03    7.1160       -.11447E-06** at limit **
  16  Prefactor     4.2675        4.0812       -.86302E-07   -.17894E-04
  17  norm          4.1536        1.8117       -.42055E-07   -.20434E-03
  18  norm          1.8501        2.6765       -.48506E-06   -.32727E-03
  19  Prefactor     8.1682        13.970        .76598E-06   -.25567E-03
  20  Prefactor     .10000E-03    16.384       -.37604E-06** at limit **
  21  Prefactor     19.417        9.6340       -.26668E-06   -.42738E-03
  22  Prefactor     37.054        24.319       -.32457E-06   -.74318E-04
  23  Prefactor     8.1108        22.032        .15208E-05   -.16450E-03
  24  norm          6.1486        1.5828        .27127E-07   -.19700E-02
  25  Prefactor     .10000E-03    6.6136        .13231E-05** at limit **
  26  Prefactor     2.9676        49.695       -.18264E-04   -.12059E-05
  27  Prefactor     17.129        16.526       -.18840E-07   -.15130E-03
  28  norm          .10007E-03    6.5217        .47188E-06** at limit **
  29  Prefactor     5.1420        20.326       -.18419E-05   -.30641E-04
  30  Normalizat    .86886        .16594        .20834E-06   -.10998E-03
  31  Prefactor     .80453        .16127        .11306E-05   -.16143E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.6464
  Prefactor  = 0.0001
  Prefactor  = 16.7991
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100264
  Prefactor  = 0.0001
  norm       = 7.38871
  Prefactor  = 0.000100099
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.1119
  Prefactor  = 3.58384
  Prefactor  = 0.0001
  Prefactor  = 4.2675
  norm       = 4.15359
  norm       = 1.85009
  Prefactor  = 8.16825
  Prefactor  = 0.0001
  Prefactor  = 19.4173
  Prefactor  = 37.0541
  Prefactor  = 8.1108
  norm       = 6.14865
  Prefactor  = 0.000100001
  Prefactor  = 2.96761
  Prefactor  = 17.1292
  norm       = 0.000100066
  Prefactor  = 5.14197
  Normalizat = 0.868861
  Prefactor  = 0.804527
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.363     FROM HESSE     STATUS=OK           642 CALLS     4835 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.646        19.074        .90375E-04   -1.4821    
   2  Prefactor     .10000E-03    6.9996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.799        21.538        .97739E-04   -1.4888    
   4  norm          .10000E-03    .76611        .68544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10026E-03    19.785        .78441E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .83716        .71457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.3887        9.6412        .14760E-03   -1.5164    
   9  Prefactor     .10010E-03    103.84        .54579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.891        .30818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          25.112        11.434        .79935E-04   -1.4705    
  14  Prefactor     3.5838        12.121        .21332E-03   -1.5329    
  15  Prefactor     .10000E-03    7.1975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2675        4.0810        .15403E-03   -1.5295    
  17  norm          4.1536        1.8100        .66838E-04   -1.5300    
  18  norm          1.8501        2.6432        .14460E-03   -1.5436    
  19  Prefactor     8.1682        13.516        .14028E-03   -1.5136    
  20  Prefactor     .10000E-03    16.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.417        9.6858        .45445E-03   -1.4826    
  22  Prefactor     37.054        24.154        .65837E-04   -1.4490    
  23  Prefactor     8.1108        21.256        .14073E-03   -1.5138    
  24  norm          6.1486        1.4785        .44921E-04   -1.5212    
  25  Prefactor     .10000E-03    34.098        .36069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.9676        50.899        .23607E-03   -1.5363    
  27  Prefactor     17.129        15.370        .96778E-04   -1.4880    
  28  norm          .10007E-03    40.782        .36758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.1420        20.372        .17725E-03   -1.5254    
  30  Normalizat    .86886        .19258        .23723E-03   -.97563    
  31  Prefactor     .80453        .18810        .25151E-03   -.99562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95767e-09
Minuit parameter uncertainties:
  1  19.08
  2  3.32015e-06
  3  21.5483
  4  3.93307e-07
  5  3.16527e-05
  6  0.00457415
  7  1.39081e-07
  8  9.64325
  9  0.00642469
  10  0.000102313
  11  2.96187e-05
  12  5.24503e-05
  13  11.4354
  14  12.129
  15  1.14913e-05
  16  4.08125
  17  1.81002
  18  2.64341
  19  13.5215
  20  1.25835e-05
  21  9.68657
  22  24.1605
  23  21.2757
  24  1.47847
  25  0.000429346
  26  24.6045
  27  15.3736
  28  0.00328601
  29  20.3994
  30  0.192729
  31  0.188253
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.149e-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:  8.045e-01  1.883e-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:  8.689e-01  1.927e-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: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912693/likelihoodResults_240624001_240883201_4FGL_J1458.6+3722_daily_bin5.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) = 6436.36392433
delta logL = -0.000662346632453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6436.36326325
delta logL = -1.27255407278e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13135E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2330       1.0000          .0000       10.000    
     3 'Normalizat'    .86891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80449       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=   6436.363     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      207 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    56.046        .90712E-02** at limit **
   2  Index         2.2944        6.0999        .50000       -.72699E-04
   3  Normalizat    .86886        .94077E-02    .44503E-01    .50914E-04
   4  Prefactor     .80453        .96866E-02    .43776E-01    .15087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.29443
  Normalizat = 0.868861
  Prefactor  = 0.804527
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.363     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1808.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2944        5.6371        .50000       -.57176    
   3  Normalizat    .86886        .86325E-01    .23723E-03   -.97563    
   4  Prefactor     .80453        .88848E-01    .25151E-03   -.99562    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27545e-06
Minuit parameter uncertainties:
  1  0.00911328
  2  59.7731
  3  0.0863391
  4  0.0888635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912693': 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) = 6436.36326026
delta logL = 1.72357340489e-06

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  9.113e-03  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.294e+00  5.977e+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:  8.045e-01  8.886e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.689e-01  8.634e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.673 37.373

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-10 16:38:13.723845', job_id='912693', GAL2='0.80', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631317093.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='5' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:38:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 912693: <4FGL_J1458.6+3722_daily_bin5> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin5> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 16:26:07 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:26:08 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:26:08 2021
Terminated at Fri Sep 10 16:38:14 2021
Results reported at Fri Sep 10 16:38:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin5 224.673 37.3726 240624001 240883201 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 :                                   693.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

