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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin992
RA = 224.673, Dec = 37.3726
tmin = 496454401, tmax = 496713601
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='920088', job_status='RUN', time_executed='2021-09-10 16:51:23.842110', time_epoch_executed='1631317883.84' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920088

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920088/ft1_4FGL_J1458.6+3722_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920088/ft2_4FGL_J1458.6+3722_daily_bin992.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920088/ft1_4FGL_J1458.6+3722_daily_bin992.fits outfile=/scratch/kocevski/920088/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin992.fits ra=224.673 dec=37.3726 rad=12.0 tmin=496454401.0 tmax=496713601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.28
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920088/ft1_filtered_4FGL_J1458.6+3722_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/920088/ft2_4FGL_J1458.6+3722_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/920088/ltcube_496454401_496713601_4FGL_J1458.6+3722_daily_bin992.fits outfile=/scratch/kocevski/920088/expmap_496454401_496713601_4FGL_J1458.6+3722_daily_bin992.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/920088/ltcube_496454401_496713601_4FGL_J1458.6+3722_daily_bin992.fits
.....................!
real 191.12
user 186.28
sys 4.45

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/920088/ft1_filtered_4FGL_J1458.6+3722_daily_bin992.fits scfile=/scratch/kocevski/920088/ft2_4FGL_J1458.6+3722_daily_bin992.fits outfile=/scratch/kocevski/920088/cmap_496454401_496713601_4FGL_J1458.6+3722_daily_bin992.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920088/ft1_filtered_4FGL_J1458.6+3722_daily_bin992.fits scfile=/scratch/kocevski/920088/ft2_4FGL_J1458.6+3722_daily_bin992.fits outfile=/scratch/kocevski/920088/cmap_HighResolution_496454401_496713601_4FGL_J1458.6+3722_daily_bin992.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/920088/ft1_filtered_4FGL_J1458.6+3722_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/920088/ft2_4FGL_J1458.6+3722_daily_bin992.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/920088/Model_4FGL_J1458.6+3722_daily_bin992.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/920088/ft1_filtered_4FGL_J1458.6+3722_daily_bin992.fits.....................!
real 47.68
user 46.39
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.260       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.011       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11059E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38625E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7697       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2887       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5625       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3090       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.929       1.0000         .10000E-03   10000.    
    28 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0870       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90851       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=   6050.658     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     3507 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.260        15.856       -.26327E-08    .55614E-05
   2  Prefactor     18.008        19.763        .44671E-07    .10934E-04
   3  Prefactor     .10000E-03    70.711        .87403E-06** at limit **
   4  norm          .10000E-03    2.7745       -.81149E-06** at limit **
   5  Prefactor     .10000E-03    6.5531        .22831E-06** at limit **
   6  Prefactor     .10000E-03    5.9402       -.48275E-06** at limit **
   7  Prefactor     .10000E-03    2.0188        .32084E-07** at limit **
   8  norm          .10000E-03    8.8354        .15050E-07** at limit **
   9  Prefactor     .10002E-03    11.579       -.30800E-05** at limit **
  10  norm          .10000E-03    3.8758       -.12190E-05** at limit **
  11  Prefactor     13.388        32.742        .25391E-05    .41503E-04
  12  Prefactor     .10000E-03    9.3914        .38526E-06** at limit **
  13  norm          .10000E-03    3.1898        .47059E-06** at limit **
  14  Prefactor     .10000E-03    6.3345        .50578E-06** at limit **
  15  Prefactor     4.7690        7.6758        .26579E-05    .29591E-03
  16  Prefactor     .10000E-03    1.4070        .19222E-07** at limit **
  17  norm          2.2885        1.8601       -.34715E-06    .66586E-04
  18  norm          .10000E-03    .86880        .15179E-07** at limit **
  19  Prefactor     .10000E-03    3.2688        .79829E-07** at limit **
  20  Prefactor     .10000E-03    36.775       -.11379E-05** at limit **
  21  Prefactor     .10000E-03    3.1933       -.47728E-06** at limit **
  22  Prefactor     .10000E-03    16.711        .12456E-05** at limit **
  23  Prefactor     .10000E-03    7.4447       -.85873E-06** at limit **
  24  norm          3.5621        1.8923        .16813E-08    .12710E-03
  25  Prefactor     4.3086        11.600        .38785E-06    .46006E-04
  26  Prefactor     .10000E-03    12.896       -.15905E-05** at limit **
  27  Prefactor     27.927        20.926        .23222E-06    .20838E-04
  28  norm          .10000E-03    6.9397       -.33301E-06** at limit **
  29  Prefactor     .10000E-03    9.7199        .50030E-06** at limit **
  30  Normalizat    1.0872        .16834       -.48917E-06    .14790E-03
  31  Prefactor     .90839        .17013       -.16744E-06    .59308E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2596
  Prefactor  = 18.0076
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 13.3878
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76897
  Prefactor  = 0.0001
  norm       = 2.28849
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56213
  Prefactor  = 4.30864
  Prefactor  = 0.0001
  Prefactor  = 27.9266
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0872
  Prefactor  = 0.90839
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.658     FROM HESSE     STATUS=OK           612 CALLS     4119 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.260        15.859        .99325E-04   -1.4901    
   2  Prefactor     18.008        19.740        .94373E-04   -1.4859    
   3  Prefactor     .10000E-03    73.796        .36313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.3511        .24142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0594        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.9689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    33.715        .43988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.3461        .28238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.388        32.755        .10941E-03   -1.4976    
  12  Prefactor     .10000E-03    9.4008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1976        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7690        8.1271        .92112E-03   -1.5271    
  16  Prefactor     .10000E-03    1.4105        .90108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2885        1.8719        .82532E-04   -1.5405    
  18  norm          .10000E-03    .87143        .70800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2907        .13733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2022        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.4935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5621        1.9005        .55812E-04   -1.5330    
  25  Prefactor     4.3086        11.647        .19407E-03   -1.5293    
  26  Prefactor     .10000E-03    12.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     27.927        20.918        .75807E-04   -1.4651    
  28  norm          .10000E-03    6.9505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.7356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0872        .19293        .22158E-03   -.90164    
  31  Prefactor     .90839        .19698        .25093E-03   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81425e-10
Minuit parameter uncertainties:
  1  15.8628
  2  19.7474
  3  6.26795e-05
  4  6.01756e-05
  5  3.8563e-06
  6  3.68414e-06
  7  4.57204e-06
  8  4.4561e-07
  9  0.00177726
  10  9.48318e-05
  11  32.7986
  12  7.83892e-06
  13  2.93996e-06
  14  6.41631e-06
  15  8.129
  16  9.26476e-07
  17  1.87191
  18  9.96779e-07
  19  5.49266e-06
  20  1.89168e-05
  21  3.00963e-07
  22  3.42976e-05
  23  7.00189e-06
  24  1.9005
  25  11.6526
  26  1.8343e-05
  27  20.9237
  28  3.05341e-06
  29  9.7316e-06
  30  0.193051
  31  0.197135
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  4.769e+00  8.129e+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.084e-01  1.971e-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.087e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/920088/likelihoodResults_496454401_496713601_4FGL_J1458.6+3722_daily_bin992.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6050.21011798
delta logL = 0.448097655164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6050.20034593
delta logL = 0.457869711622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1374       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9827       1.0000          .0000       10.000    
     3 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92608       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=   6050.200     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      240 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1374        46.883        .70486E-02    .52525E-03
   2  Index         2.9827        3.1369        .10386        .18379E-03
   3  Normalizat    1.0561        .51541E-01    .40168E-01    .48448E-04
   4  Prefactor     .92605        .51279E-01    .45337E-01   -.17146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13745
  Index      = 2.98274
  Normalizat = 1.05606
  Prefactor  = 0.926046
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.200     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1374        6.1831        .10123E-03   -1.5416    
   2  Index         2.9827        1.2947        .55695E-02   -.41529    
   3  Normalizat    1.0561        .19335        .22423E-03   -.91175    
   4  Prefactor     .92605        .19903        .24865E-03   -.95237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8502e-10
Minuit parameter uncertainties:
  1  6.18496
  2  1.31261
  3  0.193481
  4  0.199185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920088': 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) = 6050.20034588
delta logL = 0.45786975403

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.260e-01  1.992e-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.056e+00  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.98 +/- 1.31
Photon Flux (Free Index): 4.51e-08 +/- 4.43e-08
Energy Flux (Free Index): 9.09e-06 +/- 9.28e-06

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/920088/cmap_HighResolution_496454401_496713601_4FGL_J1458.6+3722_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', comment='SUCCESS', energy_flux2='9.09e-06', dlogl='4.58e-01', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-09-10 17:05:29.727713', photon_index_error2='1.31', photon_index2='2.98', ts='0.54', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.29e-08', energy_flux_error2='9.28e-06', EG='1.09', time_epoch_completed='1631318729.73', return_code='0', job_id='920088', GAL2='0.93', EG2='1.06', return_code2='0', photon_flux_error2='4.43e-08', ts2='1.48', photon_index='2.18' WHERE bin_id='992' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 920088: <4FGL_J1458.6+3722_daily_bin992> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin992 224.673 37.3726 496454401 496713601 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 :                                   844.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

