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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1128
RA = 224.673, Dec = 37.3726
tmin = 531705601, tmax = 531964801
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='920287', job_status='RUN', time_executed='2021-09-10 16:51:34.439670', time_epoch_executed='1631317894.44' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920287/ft1_4FGL_J1458.6+3722_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920287/ft2_4FGL_J1458.6+3722_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920287/ft1_4FGL_J1458.6+3722_daily_bin1128.fits outfile=/scratch/kocevski/920287/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1128.fits ra=224.673 dec=37.3726 rad=12.0 tmin=531705601.0 tmax=531964801.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.95
user 3.73
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920287/ft1_filtered_4FGL_J1458.6+3722_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/920287/ft2_4FGL_J1458.6+3722_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/920287/ltcube_531705601_531964801_4FGL_J1458.6+3722_daily_bin1128.fits outfile=/scratch/kocevski/920287/expmap_531705601_531964801_4FGL_J1458.6+3722_daily_bin1128.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/920287/ltcube_531705601_531964801_4FGL_J1458.6+3722_daily_bin1128.fits
.....................!
real 193.55
user 188.43
sys 4.54

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/920287/ft1_filtered_4FGL_J1458.6+3722_daily_bin1128.fits scfile=/scratch/kocevski/920287/ft2_4FGL_J1458.6+3722_daily_bin1128.fits outfile=/scratch/kocevski/920287/cmap_531705601_531964801_4FGL_J1458.6+3722_daily_bin1128.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920287/ft1_filtered_4FGL_J1458.6+3722_daily_bin1128.fits scfile=/scratch/kocevski/920287/ft2_4FGL_J1458.6+3722_daily_bin1128.fits outfile=/scratch/kocevski/920287/cmap_HighResolution_531705601_531964801_4FGL_J1458.6+3722_daily_bin1128.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.614       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3576       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1200       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .75456E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.668       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.318       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.925       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5153       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6655       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.327       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2706       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9542       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.083       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    10.187       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .79470       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1784       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=   5890.791     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4143 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.4845        .24308E-06** at limit **
   2  Prefactor     .10000E-03    7.1060       -.24289E-06** at limit **
   3  Prefactor     30.624        24.899        .13031E-05    .48714E-04
   4  norm          3.3586        3.6611        .53668E-07   -.11340E-03
   5  Prefactor     .10000E-03    13.885        .10401E-05** at limit **
   6  Prefactor     .18713        16.458       -.24576E-05    .95070E-04
   7  Prefactor     8.1197        4.7311        .48927E-07   -.11969E-03
   8  norm          .10000E-03    6.9896       -.41456E-06** at limit **
   9  Prefactor     .10000E-03    7.9374        .96210E-06** at limit **
  10  norm          .10069E-03    7.8677        .37840E-05** at limit **
  11  Prefactor     54.656        52.068       -.76347E-06   -.19179E-03
  12  Prefactor     69.327        56.619        .78031E-06   -.22229E-04
  13  norm          3.1381        7.4841        .41338E-05    .54577E-03
  14  Prefactor     .10000E-03    16.353       -.98627E-06** at limit **
  15  Prefactor     13.917        9.7147       -.16261E-06   -.16493E-03
  16  Prefactor     4.5156        5.1938        .49294E-06    .88507E-04
  17  norm          .10000E-03    .81833       -.22820E-06** at limit **
  18  norm          .10000E-03    1.1905       -.27001E-07** at limit **
  19  Prefactor     9.6722        9.2239       -.17019E-06   -.31373E-04
  20  Prefactor     35.309        58.755        .39461E-05    .44902E-04
  21  Prefactor     .10000E-03    8.9642       -.61272E-06** at limit **
  22  Prefactor     .10000E-03    20.948       -.66051E-06** at limit **
  23  Prefactor     1.2694        45.722        .25764E-05    .41744E-04
  24  norm          1.9542        1.4002       -.40856E-07   -.35488E-04
  25  Prefactor     14.084        12.256        .56881E-06    .91759E-04
  26  Prefactor     .10000E-03    23.632        .16045E-05** at limit **
  27  Prefactor     .10000E-03    20.763       -.90362E-06** at limit **
  28  norm          10.190        12.799        .34823E-06    .76204E-04
  29  Prefactor     .10000E-03    22.586        .83875E-06** at limit **
  30  Normalizat    .79446        .20140        .65875E-07   -.16437E-03
  31  Prefactor     1.1786        .18749       -.11421E-05   -.21249E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6236
  norm       = 3.35855
  Prefactor  = 0.0001
  Prefactor  = 0.18713
  Prefactor  = 8.11966
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100693
  Prefactor  = 54.656
  Prefactor  = 69.3269
  norm       = 3.13815
  Prefactor  = 0.0001
  Prefactor  = 13.9169
  Prefactor  = 4.51559
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.67222
  Prefactor  = 35.3091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26939
  norm       = 1.95417
  Prefactor  = 14.0837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1901
  Prefactor  = 0.0001
  Normalizat = 0.794464
  Prefactor  = 1.17864
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.791     FROM HESSE     STATUS=OK           628 CALLS     4771 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.624        25.004        .72414E-04   -1.4601    
   4  norm          3.3586        3.6493        .14673E-03   -1.5341    
   5  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .18713        22.538        .79956E-01   -1.5621    
   7  Prefactor     8.1197        4.7397        .12087E-03   -1.5138    
   8  norm          .10000E-03    6.9949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10069E-03    49.054        .29311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.656        51.230        .54250E-04   -1.4228    
  12  Prefactor     69.327        56.904        .48213E-04   -1.4041    
  13  norm          3.1381        7.6011        .11430E-02   -1.5354    
  14  Prefactor     .10000E-03    16.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.917        9.6817        .10734E-03   -1.4962    
  16  Prefactor     4.5156        5.1920        .18126E-03   -1.5283    
  17  norm          .10000E-03    .83727        .13533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1958        .81712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6722        8.6974        .12890E-03   -1.5086    
  20  Prefactor     35.309        58.892        .67425E-04   -1.4519    
  21  Prefactor     .10000E-03    9.0171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2694        41.546        .39472E-03   -1.5483    
  24  norm          1.9542        1.3887        .65841E-04   -1.5428    
  25  Prefactor     14.084        12.203        .53366E-03   -1.4957    
  26  Prefactor     .10000E-03    23.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          10.190        12.781        .12554E-03   -1.5069    
  29  Prefactor     .10000E-03    22.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .79446        .24368        .27619E-03   -1.0027    
  31  Prefactor     1.1786        .22758        .23820E-03   -.86991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55011e-08
Minuit parameter uncertainties:
  1  8.93279e-06
  2  4.25808e-06
  3  25.0128
  4  3.64955
  5  5.99704e-05
  6  4.1078
  7  4.73996
  8  1.09571e-05
  9  3.06677e-05
  10  0.011673
  11  51.2711
  12  56.949
  13  7.60343
  14  5.5808e-05
  15  9.6828
  16  5.19249
  17  1.30926e-05
  18  1.62668e-06
  19  8.69851
  20  58.9896
  21  2.56316e-07
  22  5.22156e-05
  23  14.5346
  24  1.38876
  25  12.2048
  26  9.74978e-05
  27  7.20279e-05
  28  12.7844
  29  6.45974e-05
  30  0.244015
  31  0.227772
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.392e+01  9.683e+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.179e+00  2.278e-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:  7.945e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.85
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.70e-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) = 5890.67500169
delta logL = 0.116294624247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5890.66053549
delta logL = 0.130760822658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.025       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4953       1.0000          .0000       10.000    
     3 'Normalizat'    .76727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1969       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=   5890.661     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      281 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.023        12.318        .12656E-03    .14454E-03
   2  Index         2.4955        .71942        .50278E-02    .47129E-04
   3  Normalizat    .76731        .22452        .28055E-03   -.30299E-03
   4  Prefactor     1.1968        .22625        .23662E-03   -.52379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0232
  Index      = 2.49548
  Normalizat = 0.767308
  Prefactor  = 1.19682
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.661     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.023        10.663        .50623E-05   -1.5075    
   2  Index         2.4955        .62238        .20111E-03   -.52464    
   3  Normalizat    .76731        .22315        .11222E-04   -1.0129    
   4  Prefactor     1.1968        .22542        .47323E-04   -.86429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50943e-10
Minuit parameter uncertainties:
  1  10.6651
  2  0.624548
  3  0.223416
  4  0.225602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920287': 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) = 5890.6605354
delta logL = 0.130760920152

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.002e+01  1.067e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.495e+00  6.245e-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:  1.197e+00  2.256e-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:  7.673e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.50 +/- 0.62
Photon Flux (Free Index): 7.18e-08 +/- 5.60e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.40e-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/920287/cmap_HighResolution_531705601_531964801_4FGL_J1458.6+3722_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='2.10e-05', photon_flux_error='3.67e-08', dlogl='1.31e-01', energy_flux='2.44e-05', photon_flux2='7.18e-08', job_status='DONE', time_completed='2021-09-10 17:04:09.587037', photon_index_error2='0.62', photon_index2='2.50', ts='4.85', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.79', time_epoch_completed='1631318649.59', return_code='0', job_id='920287', GAL2='1.20', EG2='0.77', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.60e-08', ts2='5.13', photon_index='2.18' WHERE bin_id='1128' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:04:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 920287: <4FGL_J1458.6+3722_daily_bin1128> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1128> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 16:51:22 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:51:24 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:51:24 2021
Terminated at Fri Sep 10 17:04:12 2021
Results reported at Fri Sep 10 17:04:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1128 224.673 37.3726 531705601 531964801 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 :                                   752.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            770 sec.

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

