/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 4 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1458.6+3722_daily_bin337
RA = 224.673, Dec = 37.3726
tmin = 326678401, tmax = 326937601
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='915349', job_status='RUN', time_executed='2021-09-10 16:36:29.393831', time_epoch_executed='1631316989.39' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915349/ft1_4FGL_J1458.6+3722_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915349/ft2_4FGL_J1458.6+3722_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915349/ft1_4FGL_J1458.6+3722_daily_bin337.fits outfile=/scratch/kocevski/915349/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin337.fits ra=224.673 dec=37.3726 rad=12.0 tmin=326678401.0 tmax=326937601.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.40
user 3.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915349/ft1_filtered_4FGL_J1458.6+3722_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/915349/ft2_4FGL_J1458.6+3722_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/915349/ltcube_326678401_326937601_4FGL_J1458.6+3722_daily_bin337.fits outfile=/scratch/kocevski/915349/expmap_326678401_326937601_4FGL_J1458.6+3722_daily_bin337.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/915349/ltcube_326678401_326937601_4FGL_J1458.6+3722_daily_bin337.fits
.....................!
real 190.19
user 185.16
sys 4.56

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/915349/ft1_filtered_4FGL_J1458.6+3722_daily_bin337.fits scfile=/scratch/kocevski/915349/ft2_4FGL_J1458.6+3722_daily_bin337.fits outfile=/scratch/kocevski/915349/cmap_326678401_326937601_4FGL_J1458.6+3722_daily_bin337.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915349/ft1_filtered_4FGL_J1458.6+3722_daily_bin337.fits scfile=/scratch/kocevski/915349/ft2_4FGL_J1458.6+3722_daily_bin337.fits outfile=/scratch/kocevski/915349/cmap_HighResolution_326678401_326937601_4FGL_J1458.6+3722_daily_bin337.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.232       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5988       1.0000         .10000E-03   10000.    
     8 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.126       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11945E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .73161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7848       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.9885       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.244       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    16.148       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .70941       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=   5916.838     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4106 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1548        15.854        .60819E-05   -.82657E-04
   2  Prefactor     .10000E-03    9.0102        .29099E-07** at limit **
   3  Prefactor     .10000E-03    27.504       -.14177E-05** at limit **
   4  norm          5.9085        3.1396        .98221E-08   -.17911E-04
   5  Prefactor     .10000E-03    15.951        .45855E-07** at limit **
   6  Prefactor     10.232        15.189       -.12610E-07   -.26596E-04
   7  Prefactor     1.5987        2.1503        .16507E-06   -.24033E-04
   8  norm          .10000E-03    13.082       -.13336E-06** at limit **
   9  Prefactor     .10000E-03    16.200        .94708E-07** at limit **
  10  norm          .10000E-03    4.1460        .25183E-06** at limit **
  11  Prefactor     30.121        42.392        .19587E-06   -.44152E-04
  12  Prefactor     .10001E-03    40.734        .20418E-05** at limit **
  13  norm          5.2561        5.5537       -.95198E-06    .10739E-03
  14  Prefactor     .10000E-03    14.845        .46129E-06** at limit **
  15  Prefactor     .10000E-03    1.4943        .70557E-08** at limit **
  16  Prefactor     .10000E-03    7.2302       -.25412E-06** at limit **
  17  norm          .10008E-03    .57614        .89572E-07** at limit **
  18  norm          .73099        2.8103        .97020E-06   -.13745E-04
  19  Prefactor     .10000E-03    4.2020       -.41684E-06** at limit **
  20  Prefactor     .10000E-03    80.431       -.12809E-05** at limit **
  21  Prefactor     .10000E-03    2.2911        .91606E-08** at limit **
  22  Prefactor     9.7846        15.834       -.49039E-06   -.68034E-05
  23  Prefactor     .10000E-03    10.220       -.70949E-06** at limit **
  24  norm          9.9882        1.8578        .25885E-07   -.93275E-04
  25  Prefactor     .10000E-03    4.9017        .14478E-07** at limit **
  26  Prefactor     20.242        28.904        .56874E-07   -.15595E-04
  27  Prefactor     .10000E-03    14.663        .12056E-06** at limit **
  28  norm          16.152        13.149        .12095E-06   -.12265E-04
  29  Prefactor     .10000E-03    8.3529        .26332E-06** at limit **
  30  Normalizat    1.0921        .16968       -.44061E-06   -.61946E-04
  31  Prefactor     .70933        .16795       -.23241E-06   -.60545E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.15478
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.90848
  Prefactor  = 0.0001
  Prefactor  = 10.2316
  Prefactor  = 1.59871
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.1212
  Prefactor  = 0.000100007
  norm       = 5.25612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100077
  norm       = 0.730992
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 9.78457
  Prefactor  = 0.0001
  norm       = 9.98815
  Prefactor  = 0.0001
  Prefactor  = 20.2423
  Prefactor  = 0.0001
  norm       = 16.1517
  Prefactor  = 0.0001
  Normalizat = 1.09205
  Prefactor  = 0.709332
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.838     FROM HESSE     STATUS=OK           626 CALLS     4732 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1548        15.824        .88510E-03   -1.5254    
   2  Prefactor     .10000E-03    9.0412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9085        3.1388        .96396E-04   -1.5222    
   5  Prefactor     .10000E-03    16.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.232        15.185        .12526E-03   -1.5068    
   7  Prefactor     1.5987        2.1285        .12664E-03   -1.5455    
   8  norm          .10000E-03    13.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.2164        .15290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.121        42.430        .72997E-04   -1.4610    
  12  Prefactor     .10001E-03    41.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2561        5.5520        .87666E-03   -1.5249    
  14  Prefactor     .10000E-03    15.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4953        .91818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10008E-03    1.5258        .20174E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .73099        2.8111        .24027E-03   -1.5537    
  19  Prefactor     .10000E-03    4.2256        .15370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    80.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2953        .11371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.7846        15.769        .12811E-03   -1.5082    
  23  Prefactor     .10000E-03    10.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.9882        1.8599        .42631E-04   -1.5076    
  25  Prefactor     .10000E-03    4.9138        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.242        28.900        .89019E-04   -1.4808    
  27  Prefactor     .10000E-03    14.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          16.152        13.133        .99670E-04   -1.4904    
  29  Prefactor     .10000E-03    8.3633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0921        .19800        .21346E-03   -.90007    
  31  Prefactor     .70933        .19460        .26768E-03   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25079e-10
Minuit parameter uncertainties:
  1  15.8365
  2  2.03881e-05
  3  0.000576067
  4  3.13889
  5  3.60077e-05
  6  15.1903
  7  2.12862
  8  4.86869e-05
  9  5.42738e-05
  10  4.20308e-05
  11  42.4721
  12  0.00106277
  13  5.5525
  14  8.86868e-05
  15  1.73362e-07
  16  3.51245e-05
  17  0.000684021
  18  2.81161
  19  5.01811e-05
  20  0.00113979
  21  4.21422e-07
  22  15.7755
  23  0.000122523
  24  1.85991
  25  4.20966e-06
  26  28.9198
  27  4.34028e-05
  28  13.1351
  29  7.2336e-05
  30  0.198137
  31  0.194792
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.734e-07  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.093e-01  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.092e+00  1.981e-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: 3.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915349/likelihoodResults_326678401_326937601_4FGL_J1458.6+3722_daily_bin337.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) = 5916.84057073
delta logL = -0.00304337834314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5916.83752652
delta logL = 8.29176315165e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1594       1.0000          .0000       10.000    
     3 'Normalizat'    1.0921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70926       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=   5916.838     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      227 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10243E-03    2.1773        .94406E-02** at limit **
   2  Index         2.0838        6.7877        .50000        .12291E-03
   3  Normalizat    1.0921        .45193E-02    .21346E-03    .16756E-03
   4  Prefactor     .70933        .46844E-02    .26768E-03    .12147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010243
  Index      = 2.0838
  Normalizat = 1.09205
  Prefactor  = 0.709333
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.838     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      256 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10243E-03    26.090        .96781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0838        8.0108        .50000       -.62271    
   3  Normalizat    1.0921        .15882E-01    .42692E-04   -.90007    
   4  Prefactor     .70933        .16462E-01    .10707E-04   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02515e-07
Minuit parameter uncertainties:
  1  0.0159319
  2  166.067
  3  0.0158818
  4  0.0164618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915349': 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) = 5916.83752475
delta logL = 2.6035022529e-06

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.024e-04  1.593e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.084e+00  1.661e+02  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.093e-01  1.646e-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:  1.092e+00  1.588e-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/915349/cmap_HighResolution_326678401_326937601_4FGL_J1458.6+3722_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-03', job_status='DONE', photon_flux_upper_limit='3.21e-08', time_completed='2021-09-10 16:51:19.885724', job_id='915349', GAL2='0.71', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631317879.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='337' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 915349: <4FGL_J1458.6+3722_daily_bin337> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin337> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 16:36:13 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:36:14 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:36:14 2021
Terminated at Fri Sep 10 16:51:20 2021
Results reported at Fri Sep 10 16:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin337 224.673 37.3726 326678401 326937601 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 :                                   889.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

