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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin444
RA = 224.673, Dec = 37.3726
tmin = 354412801, tmax = 354672001
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='915520', job_status='RUN', time_executed='2021-09-10 16:36:38.643630', time_epoch_executed='1631316998.64' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915520

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915520/ft1_4FGL_J1458.6+3722_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915520/ft2_4FGL_J1458.6+3722_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915520/ft1_4FGL_J1458.6+3722_daily_bin444.fits outfile=/scratch/kocevski/915520/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin444.fits ra=224.673 dec=37.3726 rad=12.0 tmin=354412801.0 tmax=354672001.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915520/ft1_filtered_4FGL_J1458.6+3722_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/915520/ft2_4FGL_J1458.6+3722_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/915520/ltcube_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.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/915520/ft2_4FGL_J1458.6+3722_daily_bin444.fits
.....................!
real 12.08
user 11.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915520/ft1_filtered_4FGL_J1458.6+3722_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/915520/ft2_4FGL_J1458.6+3722_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/915520/ltcube_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.fits outfile=/scratch/kocevski/915520/expmap_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.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/915520/ltcube_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.fits
.....................!
real 190.34
user 185.06
sys 4.75

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/915520/ft1_filtered_4FGL_J1458.6+3722_daily_bin444.fits scfile=/scratch/kocevski/915520/ft2_4FGL_J1458.6+3722_daily_bin444.fits outfile=/scratch/kocevski/915520/cmap_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915520/ft1_filtered_4FGL_J1458.6+3722_daily_bin444.fits scfile=/scratch/kocevski/915520/ft2_4FGL_J1458.6+3722_daily_bin444.fits outfile=/scratch/kocevski/915520/cmap_HighResolution_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.819       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8015       1.0000         .10000E-03   10000.    
     8 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5060       1.0000         .10000E-03   10000.    
    10 'norm      '    14.816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10988E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.001       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1839       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.709       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26364E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4492       1.0000         .10000E-03   10000.    
    24 'norm      '    14.092       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.309       1.0000         .10000E-03   10000.    
    28 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .74297       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1209       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=   6243.820     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4084 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.605       -.15748E-07** at limit **
   2  Prefactor     .10000E-03    6.8764       -.15062E-06** at limit **
   3  Prefactor     .10000E-03    14.791        .57305E-06** at limit **
   4  norm          12.820        5.2102        .88923E-08    .11023E-04
   5  Prefactor     11.862        22.750       -.12335E-05    .89289E-05
   6  Prefactor     3.5453        45.007        .24724E-05   -.10226E-04
   7  Prefactor     4.8025        4.5204        .18418E-06   -.86810E-05
   8  norm          .10000E-03    4.9950        .80209E-08** at limit **
   9  Prefactor     6.5433        22.267       -.28832E-05   -.61194E-04
  10  norm          14.817        7.5795       -.36354E-07    .12019E-04
  11  Prefactor     .10000E-03    28.718       -.15287E-05** at limit **
  12  Prefactor     62.989        36.046       -.26607E-06   -.21212E-04
  13  norm          3.3447        5.4810        .13671E-06   -.15731E-04
  14  Prefactor     .10000E-03    6.0730        .16790E-06** at limit **
  15  Prefactor     .10000E-03    2.4269        .29488E-07** at limit **
  16  Prefactor     1.1835        3.9166        .11116E-05   -.68981E-04
  17  norm          .10000E-03    .58336        .50790E-07** at limit **
  18  norm          .10000E-03    1.0351       -.32056E-07** at limit **
  19  Prefactor     .10000E-03    2.0888       -.85299E-07** at limit **
  20  Prefactor     .10000E-03    30.526        .12781E-05** at limit **
  21  Prefactor     14.705        10.794        .42177E-07   -.14241E-04
  22  Prefactor     .10000E-03    7.2285       -.65950E-06** at limit **
  23  Prefactor     1.4427        10.553        .20770E-05   -.50577E-05
  24  norm          14.091        2.1689        .24066E-08   -.15012E-04
  25  Prefactor     .10000E-03    4.3795        .37488E-07** at limit **
  26  Prefactor     .10000E-03    13.106       -.45528E-06** at limit **
  27  Prefactor     13.311        15.392       -.79758E-07   -.69708E-05
  28  norm          .10000E-03    7.2155       -.57261E-07** at limit **
  29  Prefactor     .10000E-03    7.9358        .23857E-06** at limit **
  30  Normalizat    .74284        .18125        .81718E-06   -.47238E-04
  31  Prefactor     1.1211        .18115       -.10011E-05    .72144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8196
  Prefactor  = 11.8623
  Prefactor  = 3.54528
  Prefactor  = 4.8025
  norm       = 0.0001
  Prefactor  = 6.5433
  norm       = 14.8168
  Prefactor  = 0.0001
  Prefactor  = 62.989
  norm       = 3.34472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18353
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7053
  Prefactor  = 0.0001
  Prefactor  = 1.44273
  norm       = 14.0908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3111
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.742842
  Prefactor  = 1.12107
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.820     FROM HESSE     STATUS=OK           620 CALLS     4704 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.820        5.2060        .10897E-03   -1.4992    
   5  Prefactor     11.862        21.683        .11661E-03   -1.5019    
   6  Prefactor     3.5453        41.376        .21189E-03   -1.5331    
   7  Prefactor     4.8025        4.5341        .15214E-03   -1.5270    
   8  norm          .10000E-03    4.9965        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5433        22.762        .15734E-03   -1.5196    
  10  norm          14.817        7.5878        .10405E-03   -1.4938    
  11  Prefactor     .10000E-03    28.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.989        36.126        .50556E-04   -1.4119    
  13  norm          3.3447        5.4667        .22129E-03   -1.5342    
  14  Prefactor     .10000E-03    6.0988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4360        .12020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1835        3.8814        .27575E-03   -1.5490    
  17  norm          .10000E-03    .59993        .11774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0388        .78507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0937        .11155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.705        10.807        .10443E-03   -1.4941    
  22  Prefactor     .10000E-03    25.399        .39774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4427        10.461        .35795E-03   -1.5468    
  24  norm          14.091        2.1691        .43169E-04   -1.4957    
  25  Prefactor     .10000E-03    4.3901        .16137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.311        15.382        .10979E-03   -1.4978    
  28  norm          .10000E-03    7.2300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.9484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .74284        .21348        .27600E-03   -1.0223    
  31  Prefactor     1.1211        .21307        .24457E-03   -.88796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15139e-10
Minuit parameter uncertainties:
  1  1.88641e-06
  2  8.14803e-06
  3  4.13968e-05
  4  5.20618
  5  21.6976
  6  24.2438
  7  4.53438
  8  2.46456e-07
  9  22.7917
  10  7.58826
  11  8.93286e-05
  12  36.1386
  13  5.46747
  14  4.90523e-06
  15  1.77765e-08
  16  3.88222
  17  2.28967e-07
  18  2.12577e-06
  19  5.35154e-06
  20  0.000113045
  21  10.808
  22  0.000117136
  23  7.77134
  24  2.16911
  25  7.96526e-07
  26  2.79291e-05
  27  15.3871
  28  4.46149e-07
  29  9.41711e-06
  30  0.213718
  31  0.213236
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.778e-08  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.121e+00  2.132e-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.428e-01  2.137e-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: 4.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915520/likelihoodResults_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.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) = 6243.82175848
delta logL = -0.001938032211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6243.81982055
delta logL = -1.00976649264e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1645       1.0000          .0000       10.000    
     3 'Normalizat'    .74280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1211       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=   6243.820     FROM MIGRAD    STATUS=FAILED        90 CALLS      245 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    37.722        .12222E-02** at limit **
   2  Index         2.0952        5.4938        .50000        .56855E-04
   3  Normalizat    .74284        .16040E-01    .27600E-03   -.52313E-05
   4  Prefactor     1.1211        .17232E-01    .24457E-03   -.72050E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6243.820     FROM SIMPLEX   STATUS=PROGRESS     128 CALLS      373 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    37.722        .23720E-03** at limit **
   2  Index         2.0767        5.4938        .62204E-02    .56855E-04
   3  Normalizat    .74280        .16040E-01    .25353E-04   -.52313E-05
   4  Prefactor     1.1210        .17232E-01    .14590E-04   -.72050E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6243.820     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      427 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.362        .24443E-02** at limit **
   2  Index         1.6827        7.2545        .50000        .54115E-07
   3  Normalizat    .74285        .15921E-01    .11040E-04    .72702E-04
   4  Prefactor     1.1211        .17105E-01    .97829E-05   -.48576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68273
  Normalizat = 0.742845
  Prefactor  = 1.12107
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.820     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      456 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    202.97        .48887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6827        5.2215        .50000       -.72543    
   3  Normalizat    .74285        .36917E-01    .22080E-05   -1.0223    
   4  Prefactor     1.1211        .39660E-01    .19566E-05   -.88796    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.13264e-10
Minuit parameter uncertainties:
  1  2.39174e-05
  2  735.432
  3  0.0369183
  4  0.0396612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915520': 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) = 6243.81981634
delta logL = 4.11428391089e-06

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.392e-05  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.683e+00  7.354e+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:  1.121e+00  3.966e-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:  7.428e-01  3.692e-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/915520/cmap_HighResolution_354412801_354672001_4FGL_J1458.6+3722_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-03', job_status='DONE', photon_flux_upper_limit='4.34e-08', time_completed='2021-09-10 16:52:03.821389', job_id='915520', GAL2='1.12', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631317923.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='444' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 915520: <4FGL_J1458.6+3722_daily_bin444> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin444 224.673 37.3726 354412801 354672001 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 :                                   923.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

