/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 6 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_bin368
RA = 224.673, Dec = 37.3726
tmin = 334713601, tmax = 334972801
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='915399', job_status='RUN', time_executed='2021-09-10 16:36:32.923967', time_epoch_executed='1631316992.92' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915399

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915399/ft1_4FGL_J1458.6+3722_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915399/ft2_4FGL_J1458.6+3722_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915399/ft1_4FGL_J1458.6+3722_daily_bin368.fits outfile=/scratch/kocevski/915399/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin368.fits ra=224.673 dec=37.3726 rad=12.0 tmin=334713601.0 tmax=334972801.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915399/ft1_filtered_4FGL_J1458.6+3722_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/915399/ft2_4FGL_J1458.6+3722_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/915399/ltcube_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.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/915399/ft2_4FGL_J1458.6+3722_daily_bin368.fits
.....................!
real 12.03
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915399/ft1_filtered_4FGL_J1458.6+3722_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/915399/ft2_4FGL_J1458.6+3722_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/915399/ltcube_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.fits outfile=/scratch/kocevski/915399/expmap_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.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/915399/ltcube_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.fits
.....................!
real 189.81
user 184.99
sys 4.24

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/915399/ft1_filtered_4FGL_J1458.6+3722_daily_bin368.fits scfile=/scratch/kocevski/915399/ft2_4FGL_J1458.6+3722_daily_bin368.fits outfile=/scratch/kocevski/915399/cmap_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915399/ft1_filtered_4FGL_J1458.6+3722_daily_bin368.fits scfile=/scratch/kocevski/915399/ft2_4FGL_J1458.6+3722_daily_bin368.fits outfile=/scratch/kocevski/915399/cmap_HighResolution_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.785       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9230       1.0000         .10000E-03   10000.    
     8 'norm      '    10.617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3995       1.0000         .10000E-03   10000.    
    10 'norm      '    8.6178       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.652       1.0000         .10000E-03   10000.    
    13 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1503       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1939       1.0000         .10000E-03   10000.    
    17 'norm      '    .17350       1.0000         .10000E-03   10000.    
    18 'norm      '    11.052       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5418       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1324       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5765       1.0000         .10000E-03   10000.    
    24 'norm      '    12.435       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.450       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
    28 'norm      '    8.5314       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2171       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81304       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=   6756.090     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     4104 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8612        20.698       -.86012E-06    .42755E-05
   2  Prefactor     .10000E-03    5.1541        .74565E-07** at limit **
   3  Prefactor     24.797        29.123       -.14032E-06   -.69571E-05
   4  norm          4.9160        3.3605       -.19454E-07    .28512E-04
   5  Prefactor     .10000E-03    14.961        .79216E-06** at limit **
   6  Prefactor     .10000E-03    8.4730        .24083E-06** at limit **
   7  Prefactor     6.9246        4.5667       -.12282E-06    .25262E-04
   8  norm          10.616        11.745       -.11142E-07   -.10060E-05
   9  Prefactor     2.3960        13.671       -.22003E-06   -.40677E-05
  10  norm          8.6204        7.6221       -.23452E-06    .47205E-04
  11  Prefactor     .10000E-03    11.581        .19651E-06** at limit **
  12  Prefactor     38.643        48.174       -.14390E-05    .18084E-04
  13  norm          .10000E-03    13.533        .31571E-06** at limit **
  14  Prefactor     6.1655        18.175        .13340E-05    .94539E-04
  15  Prefactor     .10000E-03    6.7750        .20632E-06** at limit **
  16  Prefactor     3.1936        5.4097       -.93979E-07   -.27304E-04
  17  norm          .16869        6.0390       -.33709E-05    .16165E-03
  18  norm          11.052        5.4451        .12246E-06    .49137E-04
  19  Prefactor     5.5450        10.282       -.92499E-06   -.11943E-03
  20  Prefactor     46.425        101.67        .94194E-05    .92698E-04
  21  Prefactor     9.1312        8.7435        .45527E-07   -.15764E-04
  22  Prefactor     .10000E-03    7.7866       -.60674E-07** at limit **
  23  Prefactor     4.5765        11.199       -.31875E-06   -.26277E-04
  24  norm          12.435        2.2184       -.67828E-07    .14768E-03
  25  Prefactor     .10000E-03    6.8498        .47825E-06** at limit **
  26  Prefactor     13.449        19.303       -.43413E-07   -.43733E-05
  27  Prefactor     12.589        34.912        .92632E-06    .34379E-04
  28  norm          8.5206        20.268       -.10642E-05    .12167E-04
  29  Prefactor     .10000E-03    7.3512        .15481E-06** at limit **
  30  Normalizat    1.2166        .22898        .32592E-05    .20661E-04
  31  Prefactor     .81353        .20790       -.34754E-05    .19415E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.86124
  Prefactor  = 0.0001
  Prefactor  = 24.7969
  norm       = 4.91601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.92459
  norm       = 10.6157
  Prefactor  = 2.39605
  norm       = 8.62039
  Prefactor  = 0.0001
  Prefactor  = 38.6428
  norm       = 0.0001
  Prefactor  = 6.16546
  Prefactor  = 0.0001
  Prefactor  = 3.19356
  norm       = 0.16869
  norm       = 11.0517
  Prefactor  = 5.54495
  Prefactor  = 46.4248
  Prefactor  = 9.13124
  Prefactor  = 0.0001
  Prefactor  = 4.57646
  norm       = 12.4355
  Prefactor  = 0.0001
  Prefactor  = 13.4487
  Prefactor  = 12.5892
  norm       = 8.52062
  Prefactor  = 0.0001
  Normalizat = 1.21661
  Prefactor  = 0.813533
 **********
 **   18 **HESSE 
 **********

 FCN=   6756.090     FROM HESSE     STATUS=OK           638 CALLS     4742 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8612        20.729        .20523E-03   -1.5315    
   2  Prefactor     .10000E-03    5.1556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.797        29.218        .80463E-04   -1.4712    
   4  norm          4.9160        3.3627        .12050E-03   -1.5264    
   5  Prefactor     .10000E-03    15.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9246        4.5692        .13534E-03   -1.5182    
   8  norm          10.616        11.734        .12296E-03   -1.5056    
   9  Prefactor     2.3960        13.624        .26435E-03   -1.5398    
  10  norm          8.6204        7.6115        .13655E-03   -1.5121    
  11  Prefactor     .10000E-03    11.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.643        48.203        .64469E-04   -1.4464    
  13  norm          .10000E-03    14.109        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1655        18.193        .16188E-03   -1.5211    
  15  Prefactor     .10000E-03    6.8251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1936        5.3977        .22673E-03   -1.5351    
  17  norm          .16869        6.3714        .14924E-02   -1.5626    
  18  norm          11.052        5.4481        .11634E-03   -1.5043    
  19  Prefactor     5.5450        10.296        .85333E-03   -1.5237    
  20  Prefactor     46.425        105.53        .29461E-03   -1.4344    
  21  Prefactor     9.1312        8.7467        .13262E-03   -1.5104    
  22  Prefactor     .10000E-03    7.7931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5765        11.132        .18816E-03   -1.5280    
  24  norm          12.435        2.2172        .48646E-04   -1.5003    
  25  Prefactor     .10000E-03    6.9101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.449        19.303        .10922E-03   -1.4974    
  27  Prefactor     12.589        34.707        .11295E-03   -1.4998    
  28  norm          8.5206        20.135        .13724E-03   -1.5124    
  29  Prefactor     .10000E-03    7.3607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2166        .24360        .25315E-03   -.86091    
  31  Prefactor     .81353        .21906        .30182E-03   -.99231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18541e-10
Minuit parameter uncertainties:
  1  17.9026
  2  6.64502e-06
  3  29.2347
  4  3.36288
  5  7.76565e-05
  6  2.94425e-05
  7  4.56942
  8  11.7361
  9  11.4305
  10  7.61234
  11  5.80183e-06
  12  48.2521
  13  3.72002e-05
  14  18.2096
  15  1.49e-06
  16  5.3985
  17  2.07307
  18  5.44833
  19  10.2989
  20  105.957
  21  8.74789
  22  7.89494e-06
  23  11.137
  24  2.21718
  25  2.85584e-05
  26  19.3115
  27  34.7628
  28  20.1506
  29  1.49371e-05
  30  0.243832
  31  0.219297
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.135e-01  2.193e-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.217e+00  2.438e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915399/likelihoodResults_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.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) = 6756.09025807
delta logL = -0.000698296388691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6756.08956091
delta logL = -1.13712030725e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2055       1.0000          .0000       10.000    
     3 'Normalizat'    1.2164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81375       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6756.090     FROM MIGRAD    STATUS=FAILED        90 CALLS      247 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    776.46        .18142E-02** at limit **
   2  Index         2.2265        8.8226        .50000       -.26138E-04
   3  Normalizat    1.2166        .57318E-01    .25316E-03    .13522E-03
   4  Prefactor     .81353        .57295E-01    .30182E-03    .92925E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6756.090     FROM SIMPLEX   STATUS=UNCHANGED    172 CALLS      419 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    776.46        .49824E-03** at limit **
   2  Index         2.2265        8.8226        .15116E-05   -.26138E-04
   3  Normalizat    1.2166        .57318E-01    .58567E-07    .13522E-03
   4  Prefactor     .81353        .57295E-01    .48535E-07    .92925E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6756.090     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      453 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.804        .36285E-03** at limit **
   2  Index         2.2267        5.1073        .50000       -.26145E-04
   3  Normalizat    1.2166        .21429        .10126E-04    .12933E-03
   4  Prefactor     .81353        .21424        .12073E-04    .88141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.22671
  Normalizat = 1.21662
  Prefactor  = 0.81353
 **********
 **   18 **HESSE 
 **********

 FCN=   6756.090     FROM HESSE     STATUS=OK            29 CALLS      482 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2829        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2267        6.1120        .50000       -.58795    
   3  Normalizat    1.2166        .21437        .20252E-05   -.86091    
   4  Prefactor     .81353        .21432        .24146E-05   -.99232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17208e-09
Minuit parameter uncertainties:
  1  0.000373856
  2  4.22719
  3  0.214526
  4  0.214543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915399': 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) = 6756.08955952
delta logL = 2.56072780758e-07

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.739e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.227e+00  4.227e+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:  8.135e-01  2.145e-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.217e+00  2.145e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/915399/cmap_HighResolution_334713601_334972801_4FGL_J1458.6+3722_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-10 16:52:27.878115', job_id='915399', GAL2='0.81', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631317947.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='368' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 915399: <4FGL_J1458.6+3722_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin368 224.673 37.3726 334713601 334972801 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 :                                   953.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

