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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin804
RA = 224.673, Dec = 37.3726
tmin = 447724801, tmax = 447984001
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='918433', job_status='RUN', time_executed='2021-09-10 16:46:45.358350', time_epoch_executed='1631317605.36' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918433

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918433/ft1_4FGL_J1458.6+3722_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918433/ft2_4FGL_J1458.6+3722_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918433/ft1_4FGL_J1458.6+3722_daily_bin804.fits outfile=/scratch/kocevski/918433/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin804.fits ra=224.673 dec=37.3726 rad=12.0 tmin=447724801.0 tmax=447984001.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.36
user 3.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918433/ft2_4FGL_J1458.6+3722_daily_bin804.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/918433/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin804.fits evtable="EVENTS" outfile="/scratch/kocevski/918433/ft1_filtered_4FGL_J1458.6+3722_daily_bin804.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918433/ft1_filtered_4FGL_J1458.6+3722_daily_bin804.fits" evtable="EVENTS" scfile=/scratch/kocevski/918433/ft2_4FGL_J1458.6+3722_daily_bin804.fits sctable="SC_DATA" outfile=/scratch/kocevski/918433/ltcube_447724801_447984001_4FGL_J1458.6+3722_daily_bin804.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/918433/ft2_4FGL_J1458.6+3722_daily_bin804.fits
.....................!
real 12.42
user 12.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918433/ft1_filtered_4FGL_J1458.6+3722_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/918433/ft2_4FGL_J1458.6+3722_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/918433/ltcube_447724801_447984001_4FGL_J1458.6+3722_daily_bin804.fits outfile=/scratch/kocevski/918433/expmap_447724801_447984001_4FGL_J1458.6+3722_daily_bin804.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/918433/ltcube_447724801_447984001_4FGL_J1458.6+3722_daily_bin804.fits
.....................!
real 190.57
user 185.94
sys 4.27

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918433/ft1_filtered_4FGL_J1458.6+3722_daily_bin804.fits scfile=/scratch/kocevski/918433/ft2_4FGL_J1458.6+3722_daily_bin804.fits outfile=/scratch/kocevski/918433/cmap_HighResolution_447724801_447984001_4FGL_J1458.6+3722_daily_bin804.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/918433/ft1_filtered_4FGL_J1458.6+3722_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/918433/ft2_4FGL_J1458.6+3722_daily_bin804.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918433/Model_4FGL_J1458.6+3722_daily_bin804.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/918433/ft1_filtered_4FGL_J1458.6+3722_daily_bin804.fits.....................!
real 52.07
user 50.69
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.007       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8721       1.0000         .10000E-03   10000.    
     4 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66155       1.0000         .10000E-03   10000.    
     8 'norm      '    20.281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.447       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.500       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5979       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3517       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22768E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2775       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.339       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4997       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7353       1.0000         .10000E-03   10000.    
    24 'norm      '    11.926       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13641E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.4942       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98866       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79823       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=   6767.713     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4102 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.005        19.793       -.12210E-06   -.66636E-04
   2  Prefactor     .10000E-03    4.1543       -.28864E-06** at limit **
   3  Prefactor     5.8720        12.584        .32611E-05   -.25179E-03
   4  norm          .10000E-03    1.8039        .29663E-06** at limit **
   5  Prefactor     .10000E-03    3.5854        .25006E-06** at limit **
   6  Prefactor     .10000E-03    4.5079        .55133E-06** at limit **
   7  Prefactor     .66174        2.5220        .63466E-06   -.41317E-03
   8  norm          20.281        13.118        .42457E-07   -.65046E-04
   9  Prefactor     42.436        29.029       -.14423E-05   -.35738E-03
  10  norm          .10000E-03    3.8680       -.42341E-06** at limit **
  11  Prefactor     .10001E-03    21.132        .34142E-05** at limit **
  12  Prefactor     12.502        26.161        .57861E-06    .29865E-04
  13  norm          4.5979        4.5430       -.16371E-05    .78786E-03
  14  Prefactor     .10000E-03    7.8793        .33064E-06** at limit **
  15  Prefactor     7.3523        6.1143        .10075E-07   -.12378E-04
  16  Prefactor     .10001E-03    3.5948       -.51408E-06** at limit **
  17  norm          2.2777        1.6585        .85771E-07   -.88771E-04
  18  norm          1.6526        4.3032        .10251E-05    .16082E-03
  19  Prefactor     .10000E-03    7.1220       -.58261E-06** at limit **
  20  Prefactor     59.329        50.200       -.16538E-05   -.17822E-03
  21  Prefactor     4.4994        7.2962        .21752E-06   -.46651E-04
  22  Prefactor     .10000E-03    13.967       -.11581E-05** at limit **
  23  Prefactor     4.7360        11.038       -.46967E-06    .45368E-04
  24  norm          11.926        1.8919        .14443E-07   -.45991E-04
  25  Prefactor     .10000E-03    3.2399       -.37526E-07** at limit **
  26  Prefactor     .10000E-03    10.490        .13021E-05** at limit **
  27  Prefactor     .10000E-03    37.890       -.18507E-05** at limit **
  28  norm          4.5006        11.283       -.13529E-06    .18434E-04
  29  Prefactor     .10000E-03    16.081       -.10417E-05** at limit **
  30  Normalizat    .98848        .17168        .17371E-06   -.83907E-04
  31  Prefactor     .79840        .16474       -.80193E-06   -.50344E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.0049
  Prefactor  = 0.0001
  Prefactor  = 5.87204
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.661737
  norm       = 20.2811
  Prefactor  = 42.436
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 12.5022
  norm       = 4.59792
  Prefactor  = 0.0001
  Prefactor  = 7.35234
  Prefactor  = 0.000100008
  norm       = 2.27768
  norm       = 1.65258
  Prefactor  = 0.0001
  Prefactor  = 59.3295
  Prefactor  = 4.49938
  Prefactor  = 0.000100001
  Prefactor  = 4.73602
  norm       = 11.9259
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 4.50056
  Prefactor  = 0.000100001
  Normalizat = 0.988482
  Prefactor  = 0.798401
 **********
 **   18 **HESSE 
 **********

 FCN=   6767.713     FROM HESSE     STATUS=OK           624 CALLS     4726 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.005        19.834        .81754E-04   -1.4728    
   2  Prefactor     .10000E-03    4.1620        .16388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8720        12.774        .82862E-03   -1.5223    
   4  norm          .10000E-03    3.6240        .21236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5966        .15224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5474        .17117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .66174        4.1113        .23369E-02   -1.5545    
   8  norm          20.281        13.053        .88939E-04   -1.4807    
   9  Prefactor     42.436        29.740        .61531E-04   -1.4404    
  10  norm          .10000E-03    3.9421        .15810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    22.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.502        26.179        .11330E-03   -1.5001    
  13  norm          4.5979        4.6464        .86917E-03   -1.5279    
  14  Prefactor     .10000E-03    7.9190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3523        6.1208        .14792E-03   -1.5166    
  16  Prefactor     .10001E-03    17.041        .29912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2777        1.6514        .81592E-04   -1.5406    
  18  norm          1.6526        4.1890        .23501E-03   -1.5451    
  19  Prefactor     .10000E-03    7.2069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.329        50.735        .26042E-03   -1.4166    
  21  Prefactor     4.4994        7.2894        .18980E-03   -1.5284    
  22  Prefactor     .10000E-03    14.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7360        10.796        .18491E-03   -1.5273    
  24  norm          11.926        1.8917        .42667E-04   -1.5017    
  25  Prefactor     .10000E-03    3.2485        .14453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    38.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.5006        11.152        .18992E-03   -1.5284    
  29  Prefactor     .10000E-03    16.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98848        .20183        .23382E-03   -.93417    
  31  Prefactor     .79840        .19276        .26501E-03   -.99787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15626e-09
Minuit parameter uncertainties:
  1  19.8397
  2  2.71181e-05
  3  12.7802
  4  5.7035e-05
  5  2.37098e-05
  6  6.03075e-05
  7  3.29894
  8  13.0552
  9  29.7501
  10  3.45431e-05
  11  0.000781918
  12  26.2031
  13  4.64681
  14  3.77711e-05
  15  6.12132
  16  0.000754903
  17  1.65145
  18  4.18974
  19  0.000107088
  20  50.7721
  21  7.29087
  22  0.000199361
  23  10.8007
  24  1.89168
  25  3.84965e-06
  26  0.000197493
  27  0.000357659
  28  11.1567
  29  0.000199344
  30  0.201986
  31  0.192925
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  7.352e+00  6.121e+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:  7.984e-01  1.929e-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:  9.885e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.56
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.07e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6765.54808409
delta logL = 2.16489569329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6765.48212027
delta logL = 2.23085951433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7229       1.0000         .10000E-03   10000.    
     2 'Index     '    .98350       1.0000          .0000       10.000    
     3 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78850       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=   6765.482     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      205 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7229        4.4287        .46289E-02   -.33781E-02
   2  Index         .98338        .37462        .22209       -.10710E-03
   3  Normalizat    1.0107        .15727        .45560E-01   -.10456E-03
   4  Prefactor     .78858        .16265        .43567E-01    .92218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72293
  Index      = 0.983376
  Normalizat = 1.01066
  Prefactor  = 0.788579
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.482     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7229        6.5515        .77289E-03   -1.5273    
   2  Index         .98338        .56689        .95675E-02   -.93286    
   3  Normalizat    1.0107        .18322        .23164E-03   -.92674    
   4  Prefactor     .78858        .18953        .26659E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17437e-10
Minuit parameter uncertainties:
  1  6.55254
  2  0.570373
  3  0.183338
  4  0.18969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918433': 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) = 6765.48212011
delta logL = 2.23085967656

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.886e-01  1.897e-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.011e+00  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.02
Ra Dec: 224.673 37.373
Photon Index (Free Index): 0.98 +/- 0.57
Photon Flux (Free Index): 5.40e-09 +/- 5.95e-09
Energy Flux (Free Index): 8.14e-05 +/- 9.29e-05

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/918433/cmap_HighResolution_447724801_447984001_4FGL_J1458.6+3722_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='8.14e-05', photon_flux_error='2.32e-08', dlogl='2.23e+00', energy_flux='1.29e-05', photon_flux2='5.40e-09', job_status='DONE', time_completed='2021-09-10 17:00:44.204836', photon_index_error2='0.57', photon_index2='0.98', ts='11.56', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='9.29e-05', EG='0.99', time_epoch_completed='1631318444.2', return_code='0', job_id='918433', GAL2='0.79', EG2='1.01', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='5.95e-09', ts2='16.02', photon_index='2.18' WHERE bin_id='804' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:00:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 918433: <4FGL_J1458.6+3722_daily_bin804> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin804 224.673 37.3726 447724801 447984001 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 :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

