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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin221
RA = 224.673, Dec = 37.3726
tmin = 296611201, tmax = 296870401
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='913946', job_status='RUN', time_executed='2021-09-10 16:31:24.802910', time_epoch_executed='1631316684.8' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913946/ft1_4FGL_J1458.6+3722_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913946/ft2_4FGL_J1458.6+3722_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913946/ft1_4FGL_J1458.6+3722_daily_bin221.fits outfile=/scratch/kocevski/913946/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin221.fits ra=224.673 dec=37.3726 rad=12.0 tmin=296611201.0 tmax=296870401.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 4.30
user 4.06
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913946/ft1_filtered_4FGL_J1458.6+3722_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/913946/ft2_4FGL_J1458.6+3722_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/913946/ltcube_296611201_296870401_4FGL_J1458.6+3722_daily_bin221.fits outfile=/scratch/kocevski/913946/expmap_296611201_296870401_4FGL_J1458.6+3722_daily_bin221.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/913946/ltcube_296611201_296870401_4FGL_J1458.6+3722_daily_bin221.fits
.....................!
real 191.23
user 184.69
sys 6.20

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/913946/ft1_filtered_4FGL_J1458.6+3722_daily_bin221.fits scfile=/scratch/kocevski/913946/ft2_4FGL_J1458.6+3722_daily_bin221.fits outfile=/scratch/kocevski/913946/cmap_296611201_296870401_4FGL_J1458.6+3722_daily_bin221.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913946/ft1_filtered_4FGL_J1458.6+3722_daily_bin221.fits scfile=/scratch/kocevski/913946/ft2_4FGL_J1458.6+3722_daily_bin221.fits outfile=/scratch/kocevski/913946/cmap_HighResolution_296611201_296870401_4FGL_J1458.6+3722_daily_bin221.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.329       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5515       1.0000         .10000E-03   10000.    
     4 'norm      '    .90640       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91669       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0003       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.857       1.0000         .10000E-03   10000.    
    17 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.7760       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.597       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.342       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4138       1.0000         .10000E-03   10000.    
    24 'norm      '    7.0482       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15689E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.0010       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1496       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=   6961.581     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     3500 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.358        23.358        .15217E-05    .15315E-04
   2  Prefactor     .10000E-03    7.8565       -.69996E-06** at limit **
   3  Prefactor     1.5570        82.566       -.32048E-05   -.33020E-04
   4  norm          .90562        3.5920       -.90792E-06   -.76450E-04
   5  Prefactor     12.854        13.801       -.65732E-06   -.14507E-03
   6  Prefactor     .10000E-03    12.667        .12793E-06** at limit **
   7  Prefactor     .10000E-03    1.5873       -.10219E-07** at limit **
   8  norm          .10000E-03    5.7048        .27517E-06** at limit **
   9  Prefactor     .10000E-03    34.756        .20377E-06** at limit **
  10  norm          .10000E-03    2.3166        .52241E-08** at limit **
  11  Prefactor     .10000E-03    12.879       -.11123E-08** at limit **
  12  Prefactor     .88120        183.42       -.36507E-04    .17854E-04
  13  norm          .10000E-03    3.8204        .31192E-07** at limit **
  14  Prefactor     .10000E-03    8.9722        .41478E-06** at limit **
  15  Prefactor     3.9961        9.0796       -.33088E-05    .55564E-04
  16  Prefactor     10.856        8.4827       -.21503E-06    .60979E-05
  17  norm          .10000E-03    .80063        .14871E-06** at limit **
  18  norm          7.7756        4.4966        .53276E-07    .34817E-03
  19  Prefactor     .10000E-03    5.0765       -.22395E-06** at limit **
  20  Prefactor     91.589        68.647       -.48759E-07    .37764E-04
  21  Prefactor     .10000E-03    7.9036       -.56545E-07** at limit **
  22  Prefactor     53.338        24.882       -.83547E-07    .12261E-03
  23  Prefactor     8.4134        13.199        .17662E-06    .14573E-03
  24  norm          7.0488        1.9352       -.55309E-07   -.26111E-03
  25  Prefactor     .10000E-03    6.8533       -.30273E-05** at limit **
  26  Prefactor     .10000E-03    13.274       -.22664E-06** at limit **
  27  Prefactor     .10000E-03    5.4061        .13041E-06** at limit **
  28  norm          .10000E-03    3.6437        .37529E-07** at limit **
  29  Prefactor     3.0000        39.018       -.99679E-06    .43334E-05
  30  Normalizat    1.0984        .19501        .11149E-05   -.56419E-04
  31  Prefactor     1.1496        .18691        .33474E-06    .98220E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3582
  Prefactor  = 0.0001
  Prefactor  = 1.55699
  norm       = 0.905621
  Prefactor  = 12.8536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.881199
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99613
  Prefactor  = 10.856
  norm       = 0.0001
  norm       = 7.77559
  Prefactor  = 0.0001
  Prefactor  = 91.5895
  Prefactor  = 0.0001
  Prefactor  = 53.3383
  Prefactor  = 8.41341
  norm       = 7.04879
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.99998
  Normalizat = 1.09836
  Prefactor  = 1.14963
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.581     FROM HESSE     STATUS=OK           620 CALLS     4120 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.358        23.460        .10230E-03   -1.4924    
   2  Prefactor     .10000E-03    7.8818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5570        84.007        .34192E-03   -1.5458    
   4  norm          .90562        3.5737        .29840E-03   -1.5518    
   5  Prefactor     12.854        13.793        .11170E-03   -1.4991    
   6  Prefactor     .10000E-03    12.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5993        .10262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.7136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3228        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .88120        188.83        .80744E-02   -1.5520    
  13  norm          .10000E-03    3.8248        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9961        9.0987        .10082E-02   -1.5308    
  16  Prefactor     10.856        8.4799        .12159E-03   -1.5049    
  17  norm          .10000E-03    .82573        .14623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.7756        4.4887        .12562E-03   -1.5150    
  19  Prefactor     .10000E-03    5.0880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     91.589        68.612        .20994E-03   -1.3791    
  21  Prefactor     .10000E-03    8.0160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     53.338        24.868        .54917E-04   -1.4246    
  23  Prefactor     8.4134        13.171        .13820E-03   -1.5128    
  24  norm          7.0488        1.8217        .54079E-04   -1.5177    
  25  Prefactor     .10000E-03    24.122        .36584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.4081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.6456        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.0000        39.144        .23431E-03   -1.5362    
  30  Normalizat    1.0984        .23555        .26874E-03   -.89805    
  31  Prefactor     1.1496        .22747        .26850E-03   -.87896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89036e-10
Minuit parameter uncertainties:
  1  23.4739
  2  6.65478e-05
  3  22.9066
  4  3.57449
  5  13.7963
  6  1.49195e-05
  7  4.15006e-07
  8  2.55917e-05
  9  0.000267375
  10  1.57208e-06
  11  1.70589e-06
  12  25.8805
  13  2.50774e-06
  14  1.41291e-05
  15  9.10187
  16  8.48087
  17  1.60045e-05
  18  4.48889
  19  7.07689e-07
  20  68.671
  21  2.55735e-05
  22  24.8726
  23  13.1756
  24  1.82172
  25  0.000616889
  26  5.60988e-07
  27  6.64617e-06
  28  4.99676e-06
  29  21.6902
  30  0.23578
  31  0.227664
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  3.996e+00  9.102e+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.150e+00  2.277e-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.098e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913946/likelihoodResults_296611201_296870401_4FGL_J1458.6+3722_daily_bin221.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6961.48349954
delta logL = 0.0972926121576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6961.47510766
delta logL = 0.10568449383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1246       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6000       1.0000          .0000       10.000    
     3 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1556       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.

 FCN=   6961.475     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      264 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1240        7.9217        .22548E-03   -.52940E-05
   2  Index         2.6000        1.0369        .85878E-02    .30816E-04
   3  Normalizat    1.0852        .22129        .27015E-03   -.43838E-03
   4  Prefactor     1.1556        .22343        .26785E-03   -.41224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12399
  Index      = 2.59996
  Normalizat = 1.08517
  Prefactor  = 1.15563
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.475     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1240        6.8071        .90193E-05   -1.5354    
   2  Index         2.6000        .89233        .34351E-03   -.50066    
   3  Normalizat    1.0852        .22150        .54030E-04   -.90229    
   4  Prefactor     1.1556        .22347        .53570E-04   -.87708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40762e-10
Minuit parameter uncertainties:
  1  6.80875
  2  0.8986
  3  0.221693
  4  0.223657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913946': 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) = 6961.47510402
delta logL = 0.105688130659

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  3.124e+00  6.809e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.600e+00  8.986e-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.156e+00  2.237e-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.085e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 224.673 37.373

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/913946/cmap_HighResolution_296611201_296870401_4FGL_J1458.6+3722_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.47e-08', time_completed='2021-09-10 16:46:26.585271', job_id='913946', GAL2='1.16', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1631317586.59', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.06e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='221' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 913946: <4FGL_J1458.6+3722_daily_bin221> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin221> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 10 16:31:13 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:31:15 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:31:15 2021
Terminated at Fri Sep 10 16:46:28 2021
Results reported at Fri Sep 10 16:46:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin221 224.673 37.3726 296611201 296870401 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 :                                   900.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

