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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1523
RA = 224.673, Dec = 37.3726
tmin = 634089601, tmax = 634348801
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='922180', job_status='RUN', time_executed='2021-09-10 16:58:46.159659', time_epoch_executed='1631318326.16' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922180/ft1_4FGL_J1458.6+3722_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922180/ft2_4FGL_J1458.6+3722_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922180/ft1_4FGL_J1458.6+3722_daily_bin1523.fits outfile=/scratch/kocevski/922180/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1523.fits ra=224.673 dec=37.3726 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.90
user 4.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922180/ft1_filtered_4FGL_J1458.6+3722_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/922180/ft2_4FGL_J1458.6+3722_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/922180/ltcube_634089601_634348801_4FGL_J1458.6+3722_daily_bin1523.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/922180/ft2_4FGL_J1458.6+3722_daily_bin1523.fits
.....................!
real 11.52
user 11.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922180/ft1_filtered_4FGL_J1458.6+3722_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/922180/ft2_4FGL_J1458.6+3722_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/922180/ltcube_634089601_634348801_4FGL_J1458.6+3722_daily_bin1523.fits outfile=/scratch/kocevski/922180/expmap_634089601_634348801_4FGL_J1458.6+3722_daily_bin1523.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/922180/ltcube_634089601_634348801_4FGL_J1458.6+3722_daily_bin1523.fits
.....................!
real 190.12
user 184.98
sys 4.79

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/922180/ft1_filtered_4FGL_J1458.6+3722_daily_bin1523.fits scfile=/scratch/kocevski/922180/ft2_4FGL_J1458.6+3722_daily_bin1523.fits outfile=/scratch/kocevski/922180/cmap_634089601_634348801_4FGL_J1458.6+3722_daily_bin1523.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/922180/ft1_filtered_4FGL_J1458.6+3722_daily_bin1523.fits scfile=/scratch/kocevski/922180/ft2_4FGL_J1458.6+3722_daily_bin1523.fits outfile=/scratch/kocevski/922180/cmap_HighResolution_634089601_634348801_4FGL_J1458.6+3722_daily_bin1523.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1963       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.023       1.0000         .10000E-03   10000.    
     4 'norm      '    .12531E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4796       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.647       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4417       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.056       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29692       1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4357       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6323       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0664       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.8476       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86119       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93187       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=   5151.605     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     4195 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1958        15.985        .14393E-04   -.11547E-03
   2  Prefactor     .10000E-03    6.7548       -.16625E-06** at limit **
   3  Prefactor     63.025        32.551        .12480E-06    .51587E-05
   4  norm          .10004E-03    2.4862        .39104E-06** at limit **
   5  Prefactor     .10000E-03    4.5522       -.17127E-06** at limit **
   6  Prefactor     .10000E-03    5.8951       -.21807E-06** at limit **
   7  Prefactor     2.4804        4.0883        .51949E-06   -.66555E-04
   8  norm          .10000E-03    4.7887       -.13757E-06** at limit **
   9  Prefactor     40.651        26.056        .16386E-06   -.15450E-04
  10  norm          1.4473        5.0349        .23333E-07   -.41057E-04
  11  Prefactor     25.125        49.684       -.14460E-05   -.23203E-03
  12  Prefactor     52.063        37.514        .35481E-06    .21742E-04
  13  norm          .10000E-03    2.8620        .24986E-08** at limit **
  14  Prefactor     17.455        15.162        .42415E-07   -.67955E-04
  15  Prefactor     5.0479        5.0849       -.22338E-06   -.10355E-03
  16  Prefactor     .10000E-03    2.4874        .91727E-07** at limit **
  17  norm          .29640        1.1187        .77009E-06    .55761E-04
  18  norm          .10000E-03    2.2556        .97054E-07** at limit **
  19  Prefactor     .10000E-03    6.6614        .11919E-07** at limit **
  20  Prefactor     .10000E-03    29.729        .14739E-06** at limit **
  21  Prefactor     2.4339        6.0456        .83263E-06   -.24753E-04
  22  Prefactor     .10000E-03    16.528       -.15176E-06** at limit **
  23  Prefactor     6.6440        12.505        .54236E-07   -.17890E-04
  24  norm          1.0661        1.1606        .15437E-06    .31797E-05
  25  Prefactor     6.8474        7.7818        .97021E-07   -.22737E-04
  26  Prefactor     .10000E-03    25.858        .22989E-06** at limit **
  27  Prefactor     .10000E-03    20.522        .33861E-06** at limit **
  28  norm          .10000E-03    12.168        .48773E-06** at limit **
  29  Prefactor     .10000E-03    4.9451        .18080E-07** at limit **
  30  Normalizat    .86088        .18774       -.73923E-06   -.19048E-03
  31  Prefactor     .93223        .18040       -.89557E-06   -.14383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1958
  Prefactor  = 0.0001
  Prefactor  = 63.0252
  norm       = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48036
  norm       = 0.0001
  Prefactor  = 40.6515
  norm       = 1.44733
  Prefactor  = 25.1245
  Prefactor  = 52.0628
  norm       = 0.0001
  Prefactor  = 17.4548
  Prefactor  = 5.04794
  Prefactor  = 0.0001
  norm       = 0.296396
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43386
  Prefactor  = 0.0001
  Prefactor  = 6.64403
  norm       = 1.06607
  Prefactor  = 6.84739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.860885
  Prefactor  = 0.932225
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.605     FROM HESSE     STATUS=OK           624 CALLS     4819 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1958        15.915        .11332E-02   -1.5350    
   2  Prefactor     .10000E-03    6.7726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     63.025        32.629        .50547E-04   -1.4119    
   4  norm          .10004E-03    24.696        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5710        .14954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9309        .17018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4804        4.0645        .17264E-03   -1.5393    
   8  norm          .10000E-03    4.7909        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.651        26.080        .62873E-04   -1.4432    
  10  norm          1.4473        4.9786        .28289E-03   -1.5467    
  11  Prefactor     25.125        49.513        .79769E-04   -1.4705    
  12  Prefactor     52.063        37.633        .55588E-04   -1.4264    
  13  norm          .10000E-03    2.8629        .11858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.455        15.126        .95870E-04   -1.4872    
  15  Prefactor     5.0479        5.0421        .15311E-03   -1.5259    
  16  Prefactor     .10000E-03    2.4990        .11055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29640        1.0853        .13649E-03   -1.5599    
  18  norm          .10000E-03    2.2992        .10512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7230        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4339        6.0382        .26218E-03   -1.5396    
  22  Prefactor     .10000E-03    16.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.6440        12.487        .15582E-03   -1.5192    
  24  norm          1.0661        1.1253        .69168E-03   -1.5501    
  25  Prefactor     6.8474        7.7740        .15332E-03   -1.5185    
  26  Prefactor     .10000E-03    25.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    12.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.9457        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86088        .22435        .23365E-03   -.97849    
  31  Prefactor     .93223        .21629        .23488E-03   -.95024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04073e-09
Minuit parameter uncertainties:
  1  14.2692
  2  2.52443e-05
  3  32.6378
  4  0.00189471
  5  5.4802e-07
  6  1.52421e-05
  7  4.06493
  8  6.31916e-06
  9  26.0872
  10  4.98005
  11  49.5942
  12  37.6501
  13  5.25372e-07
  14  15.1293
  15  5.04248
  16  2.46828e-06
  17  1.08542
  18  4.96044e-06
  19  4.83931e-06
  20  4.36089e-05
  21  6.03971
  22  3.98776e-05
  23  12.4915
  24  1.12533
  25  7.77513
  26  4.82186e-05
  27  2.49092e-05
  28  5.04365e-05
  29  1.01859e-06
  30  0.224595
  31  0.216486
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  5.048e+00  5.042e+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:  9.322e-01  2.165e-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.609e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.91e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 8.85e-06 +/- 8.84e-06

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) = 5151.56234379
delta logL = 0.0427182255535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5151.55985992
delta logL = 0.0452020972034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7699       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8585       1.0000          .0000       10.000    
     3 'Normalizat'    .87054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92636       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=   5151.560     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7699        6.0280        .16721E-03   -.41883E-04
   2  Index         1.8584        .99403        .10665E-01   -.17417E-04
   3  Normalizat    .87055        .20218        .23249E-03    .29633E-04
   4  Prefactor     .92635        .21064        .23556E-03    .29730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76991
  Index      = 1.85844
  Normalizat = 0.870551
  Prefactor  = 0.926354
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.560     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7699        5.9856        .66883E-05   -1.5228    
   2  Index         1.8584        .98656        .42661E-03   -.67938    
   3  Normalizat    .87055        .20225        .92997E-05   -.97503    
   4  Prefactor     .92635        .21080        .94222E-05   -.95226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14243e-11
Minuit parameter uncertainties:
  1  5.98623
  2  0.997459
  3  0.202421
  4  0.21099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922180': 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) = 5151.55985992
delta logL = 0.0452020989842

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  5.770e+00  5.986e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.858e+00  9.975e-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:  9.264e-01  2.110e-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.706e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.30
Ra Dec: 224.673 37.373
Photon Index (Free Index): 1.86 +/- 1.00
Photon Flux (Free Index): 1.21e-08 +/- 2.14e-08
Energy Flux (Free Index): 1.22e-05 +/- 2.12e-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/922180/cmap_HighResolution_634089601_634348801_4FGL_J1458.6+3722_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.91e-08', energy_flux2='1.22e-05', photon_flux_error='1.91e-08', dlogl='4.52e-02', energy_flux='8.85e-06', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-10 17:10:31.751280', photon_index_error2='1.00', photon_index2='1.86', ts='4.21', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.86', time_epoch_completed='1631319031.75', return_code='0', job_id='922180', GAL2='0.93', EG2='0.87', return_code2='0', energy_flux_error='8.84e-06', photon_flux_error2='2.14e-08', ts2='4.30', photon_index='2.18' WHERE bin_id='1523' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 922180: <4FGL_J1458.6+3722_daily_bin1523> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1523> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 16:56:43 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:56:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 16:56:44 2021
Terminated at Fri Sep 10 17:10:32 2021
Results reported at Fri Sep 10 17:10:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1523 224.673 37.3726 634089601 634348801 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 :                                   702.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

