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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin414
RA = 224.673, Dec = 37.3726
tmin = 346636801, tmax = 346896001
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='915472', job_status='RUN', time_executed='2021-09-10 16:36:34.752917', time_epoch_executed='1631316994.75' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915472

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915472/ft1_4FGL_J1458.6+3722_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915472/ft2_4FGL_J1458.6+3722_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915472/ft1_4FGL_J1458.6+3722_daily_bin414.fits outfile=/scratch/kocevski/915472/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin414.fits ra=224.673 dec=37.3726 rad=12.0 tmin=346636801.0 tmax=346896001.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.41
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915472/ft2_4FGL_J1458.6+3722_daily_bin414.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/915472/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin414.fits evtable="EVENTS" outfile="/scratch/kocevski/915472/ft1_filtered_4FGL_J1458.6+3722_daily_bin414.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/915472/ft1_filtered_4FGL_J1458.6+3722_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/915472/ft2_4FGL_J1458.6+3722_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/915472/ltcube_346636801_346896001_4FGL_J1458.6+3722_daily_bin414.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/915472/ft2_4FGL_J1458.6+3722_daily_bin414.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915472/ft1_filtered_4FGL_J1458.6+3722_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/915472/ft2_4FGL_J1458.6+3722_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/915472/ltcube_346636801_346896001_4FGL_J1458.6+3722_daily_bin414.fits outfile=/scratch/kocevski/915472/expmap_346636801_346896001_4FGL_J1458.6+3722_daily_bin414.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/915472/ltcube_346636801_346896001_4FGL_J1458.6+3722_daily_bin414.fits
.....................!
real 189.79
user 184.54
sys 4.45

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1458.6+3722 @ 224.673 37.3726

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/915472/ft1_filtered_4FGL_J1458.6+3722_daily_bin414.fits scfile=/scratch/kocevski/915472/ft2_4FGL_J1458.6+3722_daily_bin414.fits outfile=/scratch/kocevski/915472/cmap_346636801_346896001_4FGL_J1458.6+3722_daily_bin414.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915472/ft1_filtered_4FGL_J1458.6+3722_daily_bin414.fits scfile=/scratch/kocevski/915472/ft2_4FGL_J1458.6+3722_daily_bin414.fits outfile=/scratch/kocevski/915472/cmap_HighResolution_346636801_346896001_4FGL_J1458.6+3722_daily_bin414.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/915472/ft1_filtered_4FGL_J1458.6+3722_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/915472/ft2_4FGL_J1458.6+3722_daily_bin414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915472/Model_4FGL_J1458.6+3722_daily_bin414.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/915472/ft1_filtered_4FGL_J1458.6+3722_daily_bin414.fits.....................!
real 51.20
user 49.92
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.6463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.298       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.5092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.401       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.835       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .97041       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5429       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12941       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.278       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.7244       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    55.537       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83943       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0244       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=   6589.827     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4083 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.617        .16290E-06** at limit **
   2  Prefactor     .10000E-03    5.1547        .37685E-06** at limit **
   3  Prefactor     .10000E-03    14.194       -.82613E-06** at limit **
   4  norm          7.6463        4.8598        .50966E-06   -.14918E-03
   5  Prefactor     15.298        11.669        .19660E-06    .75199E-04
   6  Prefactor     .10000E-03    6.6722       -.14174E-05** at limit **
   7  Prefactor     .10000E-03    1.2409        .43365E-07** at limit **
   8  norm          .10000E-03    9.4464       -.27478E-05** at limit **
   9  Prefactor     .10000E-03    11.852        .89457E-06** at limit **
  10  norm          9.5097        6.6197        .96088E-07   -.99494E-05
  11  Prefactor     15.926        22.274        .19252E-06    .62250E-05
  12  Prefactor     .10000E-03    34.840       -.18017E-04** at limit **
  13  norm          12.402        8.4127        .43763E-07    .47847E-04
  14  Prefactor     .10000E-03    4.0435       -.99593E-07** at limit **
  15  Prefactor     10.835        7.6563        .32088E-07    .31234E-04
  16  Prefactor     .97085        4.6067       -.43270E-05    .62380E-03
  17  norm          3.5428        1.7629       -.55634E-07    .19139E-03
  18  norm          9.2217        4.1125       -.17455E-05    .27038E-03
  19  Prefactor     .10000E-03    3.2665        .27119E-06** at limit **
  20  Prefactor     .10000E-03    74.562       -.32621E-04** at limit **
  21  Prefactor     .13738        5.1221       -.13243E-05    .13397E-03
  22  Prefactor     19.278        16.837       -.20072E-06   -.70317E-04
  23  Prefactor     .10000E-03    7.0159        .21170E-05** at limit **
  24  norm          9.7245        1.8890       -.66154E-07    .60256E-03
  25  Prefactor     .10000E-03    6.0309       -.98032E-06** at limit **
  26  Prefactor     55.538        41.813        .13636E-05    .29602E-04
  27  Prefactor     .10000E-03    12.797        .26029E-05** at limit **
  28  norm          .10000E-03    6.9608        .13387E-05** at limit **
  29  Prefactor     .10000E-03    47.871        .40641E-04** at limit **
  30  Normalizat    .83937        .17536        .11452E-05    .26684E-03
  31  Prefactor     1.0244        .17930        .60688E-07    .24447E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.64633
  Prefactor  = 15.2979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.50971
  Prefactor  = 15.9257
  Prefactor  = 0.0001
  norm       = 12.4016
  Prefactor  = 0.0001
  Prefactor  = 10.8354
  Prefactor  = 0.970851
  norm       = 3.54277
  norm       = 9.22167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.137379
  Prefactor  = 19.278
  Prefactor  = 0.0001
  norm       = 9.72452
  Prefactor  = 0.0001
  Prefactor  = 55.5382
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.839366
  Prefactor  = 1.02444
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.827     FROM HESSE     STATUS=OK           618 CALLS     4701 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    37.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1565        .17999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.6463        4.8555        .13490E-03   -1.5155    
   5  Prefactor     15.298        11.669        .10240E-03   -1.4926    
   6  Prefactor     .10000E-03    6.6862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2507        .88264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.4710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.5097        6.6201        .12996E-03   -1.5091    
  11  Prefactor     15.926        22.270        .10036E-03   -1.4910    
  12  Prefactor     .10000E-03    35.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.402        8.4128        .11375E-03   -1.5004    
  14  Prefactor     .10000E-03    4.0482        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.835        7.6518        .12172E-03   -1.5050    
  16  Prefactor     .97085        8.6886        .32389E-02   -1.5511    
  17  norm          3.5428        1.7613        .70290E-04   -1.5332    
  18  norm          9.2217        4.1061        .10505E-03   -1.5101    
  19  Prefactor     .10000E-03    3.2772        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    75.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .13738        49.774        .35499E-02   -1.5634    
  22  Prefactor     19.278        16.834        .91221E-04   -1.4830    
  23  Prefactor     .10000E-03    7.0652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.7245        1.8870        .46331E-04   -1.5084    
  25  Prefactor     .10000E-03    6.0570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     55.538        41.830        .53827E-04   -1.4216    
  27  Prefactor     .10000E-03    12.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.9984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    48.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .83937        .20391        .26156E-03   -.98625    
  31  Prefactor     1.0244        .21007        .25293E-03   -.91919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72775e-09
Minuit parameter uncertainties:
  1  7.64334e-05
  2  3.55094e-06
  3  6.01103e-06
  4  4.85577
  5  11.6709
  6  1.27958e-05
  7  3.61557e-06
  8  1.6186e-05
  9  8.66159e-06
  10  6.62059
  11  22.2817
  12  2.97699e-06
  13  8.41364
  14  1.99732e-06
  15  7.6525
  16  5.80956
  17  1.76136
  18  4.10622
  19  3.28747e-05
  20  6.49128e-05
  21  5.23235
  22  16.8383
  23  4.17379e-05
  24  1.88704
  25  6.15437e-06
  26  41.8521
  27  1.98577e-05
  28  1.03027e-05
  29  0.000693637
  30  0.204101
  31  0.210242
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.084e+01  7.652e+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:  1.024e+00  2.102e-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:  8.394e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.55
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.34e-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) = 6588.63541299
delta logL = 1.19147645722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6588.61567618
delta logL = 1.21121326911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.302       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3371       1.0000          .0000       10.000    
     3 'Normalizat'    .86426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0158       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=   6588.616     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      204 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.286        9.1908        .31209E-02    .39615E-04
   2  Index         1.3362        .39593        .23354       -.60519E-04
   3  Normalizat    .86396        .16700        .44443E-01   -.26372E-03
   4  Prefactor     1.0158        .17743        .42583E-01   -.29148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2864
  Index      = 1.33623
  Normalizat = 0.86396
  Prefactor  = 1.01582
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.616     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.286        14.940        .12483E-03   -1.5066    
   2  Index         1.3362        .71712        .91981E-02   -.82236    
   3  Normalizat    .86396        .19291        .25851E-03   -.97738    
   4  Prefactor     1.0158        .20559        .25423E-03   -.92204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00231e-10
Minuit parameter uncertainties:
  1  14.9451
  2  0.722535
  3  0.193066
  4  0.205752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915472': 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) = 6588.6156697
delta logL = 1.21121975321

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.029e+01  1.495e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.336e+00  7.225e-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:  1.016e+00  2.058e-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:  8.640e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.98
Ra Dec: 224.673 37.373
Photon Index (Free Index): 1.34 +/- 0.72
Photon Flux (Free Index): 1.16e-08 +/- 2.08e-08
Energy Flux (Free Index): 6.30e-05 +/- 7.51e-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/915472/cmap_HighResolution_346636801_346896001_4FGL_J1458.6+3722_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='6.30e-05', photon_flux_error='2.90e-08', dlogl='1.21e+00', energy_flux='1.90e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-10 16:50:05.820432', photon_index_error2='0.72', photon_index2='1.34', ts='8.55', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='7.51e-05', EG='0.84', time_epoch_completed='1631317805.82', return_code='0', job_id='915472', GAL2='1.02', EG2='0.86', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='2.08e-08', ts2='10.98', photon_index='2.18' WHERE bin_id='414' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 915472: <4FGL_J1458.6+3722_daily_bin414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin414 224.673 37.3726 346636801 346896001 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 :                                   809.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

