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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin261
RA = 224.673, Dec = 37.3726
tmin = 306979201, tmax = 307238401
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='914005', job_status='RUN', time_executed='2021-09-10 16:31:34.672619', time_epoch_executed='1631316694.67' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914005/ft1_4FGL_J1458.6+3722_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914005/ft2_4FGL_J1458.6+3722_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914005/ft1_4FGL_J1458.6+3722_daily_bin261.fits outfile=/scratch/kocevski/914005/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin261.fits ra=224.673 dec=37.3726 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.16
user 13.63
sys 0.48

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914005/ft1_filtered_4FGL_J1458.6+3722_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/914005/ft2_4FGL_J1458.6+3722_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/914005/ltcube_306979201_307238401_4FGL_J1458.6+3722_daily_bin261.fits outfile=/scratch/kocevski/914005/expmap_306979201_307238401_4FGL_J1458.6+3722_daily_bin261.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/914005/ltcube_306979201_307238401_4FGL_J1458.6+3722_daily_bin261.fits
.....................!
real 190.25
user 185.19
sys 4.69

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/914005/ft1_filtered_4FGL_J1458.6+3722_daily_bin261.fits scfile=/scratch/kocevski/914005/ft2_4FGL_J1458.6+3722_daily_bin261.fits outfile=/scratch/kocevski/914005/cmap_306979201_307238401_4FGL_J1458.6+3722_daily_bin261.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/914005/ft1_filtered_4FGL_J1458.6+3722_daily_bin261.fits scfile=/scratch/kocevski/914005/ft2_4FGL_J1458.6+3722_daily_bin261.fits outfile=/scratch/kocevski/914005/cmap_HighResolution_306979201_307238401_4FGL_J1458.6+3722_daily_bin261.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.056       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5919       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5303       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2496       1.0000         .10000E-03   10000.    
     8 'norm      '    30.161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.149       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.491       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.581       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5879       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9789       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20258       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13147E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    11.686       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5530       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .49502       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=   4042.171     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4147 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.370       -.82924E-06** at limit **
   2  Prefactor     .10000E-03    13.068       -.99317E-06** at limit **
   3  Prefactor     28.062        38.135       -.18683E-04    .12786E-04
   4  norm          6.5871        7.6961        .11723E-05   -.91543E-04
   5  Prefactor     .10000E-03    32.148       -.31867E-05** at limit **
   6  Prefactor     9.5138        21.160        .13390E-05    .42426E-04
   7  Prefactor     6.2472        5.1837        .74525E-06    .40684E-04
   8  norm          30.158        34.638       -.83569E-05    .30683E-04
   9  Prefactor     37.118        43.209        .35990E-05    .24754E-04
  10  norm          .10000E-03    3.0494        .11674E-06** at limit **
  11  Prefactor     37.509        52.541       -.15175E-04    .65271E-05
  12  Prefactor     31.588        44.162       -.16505E-04    .11222E-04
  13  norm          .10000E-03    4.3410       -.10341E-07** at limit **
  14  Prefactor     .10000E-03    9.5525        .54508E-06** at limit **
  15  Prefactor     19.066        17.008       -.70258E-06   -.18001E-05
  16  Prefactor     .10000E-03    5.7278       -.37411E-06** at limit **
  17  norm          1.5874        2.6684       -.21619E-06   -.44614E-03
  18  norm          4.9845        3.9291       -.32953E-06   -.29944E-03
  19  Prefactor     .10000E-03    5.6750        .10312E-06** at limit **
  20  Prefactor     .10000E-03    68.154       -.71988E-06** at limit **
  21  Prefactor     .65710E-03    18.061       -.12797E-05** at limit **
  22  Prefactor     23.217        21.345        .31269E-06   -.19766E-03
  23  Prefactor     .10001E-03    41.370        .14460E-04** at limit **
  24  norm          11.687        3.0280       -.12015E-06    .14098E-03
  25  Prefactor     .10000E-03    11.893        .14480E-05** at limit **
  26  Prefactor     .10000E-03    17.917       -.25100E-06** at limit **
  27  Prefactor     .10000E-03    8.4376       -.63000E-06** at limit **
  28  norm          .10000E-03    7.3986        .24483E-06** at limit **
  29  Prefactor     12.827        26.437        .10630E-05   -.25212E-04
  30  Normalizat    1.5533        .25968        .44820E-05   -.22034E-03
  31  Prefactor     .49536        .23731        .70853E-06    .59887E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0616
  norm       = 6.58711
  Prefactor  = 0.0001
  Prefactor  = 9.51377
  Prefactor  = 6.24718
  norm       = 30.158
  Prefactor  = 37.1178
  norm       = 0.0001
  Prefactor  = 37.5088
  Prefactor  = 31.5885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0664
  Prefactor  = 0.0001
  norm       = 1.58742
  norm       = 4.9845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000657102
  Prefactor  = 23.2169
  Prefactor  = 0.000100005
  norm       = 11.6867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.8271
  Normalizat = 1.55326
  Prefactor  = 0.495356
 **********
 **   18 **HESSE 
 **********

 FCN=   4042.171     FROM HESSE     STATUS=OK           624 CALLS     4771 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.062        38.413        .75635E-04   -1.4648    
   4  norm          6.5871        7.6863        .15630E-03   -1.5195    
   5  Prefactor     .10000E-03    32.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5138        21.167        .12981E-03   -1.5091    
   7  Prefactor     6.2472        5.1926        .12710E-03   -1.5208    
   8  norm          30.158        34.558        .72954E-04   -1.4609    
   9  Prefactor     37.118        43.344        .65756E-04   -1.4489    
  10  norm          .10000E-03    3.0535        .10842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.509        52.584        .65456E-04   -1.4482    
  12  Prefactor     31.588        44.208        .71299E-04   -1.4583    
  13  norm          .10000E-03    4.3422        .12937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.066        16.818        .91712E-04   -1.4834    
  16  Prefactor     .10000E-03    5.7962        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5874        2.6059        .11139E-03   -1.5456    
  18  norm          4.9845        3.9309        .10780E-03   -1.5261    
  19  Prefactor     .10000E-03    5.6914        .14780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .65710E-03    24.885        .80035E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.217        21.306        .83211E-04   -1.4744    
  23  Prefactor     .10001E-03    42.378        .41143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.687        3.0340        .52978E-04   -1.5024    
  25  Prefactor     .10000E-03    11.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.4409        .18039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    7.4099        .16890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.827        26.426        .11182E-03   -1.4992    
  30  Normalizat    1.5533        .29788        .23259E-03   -.76293    
  31  Prefactor     .49536        .26551        .37534E-03   -1.1219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40083e-10
Minuit parameter uncertainties:
  1  1.35442e-06
  2  8.11767e-07
  3  38.4465
  4  7.6875
  5  0.000216455
  6  21.1838
  7  5.19294
  8  34.5809
  9  43.3808
  10  1.12511e-05
  11  52.6487
  12  44.2534
  13  2.76376e-06
  14  1.04504e-05
  15  16.8217
  16  2.49336e-05
  17  2.60611
  18  3.93109
  19  3.14124e-05
  20  5.35327e-05
  21  0.235585
  22  21.3128
  23  0.000951518
  24  3.03407
  25  2.16839e-05
  26  6.34137e-06
  27  1.03208e-05
  28  1.51077e-05
  29  26.4496
  30  0.298214
  31  0.26618
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.907e+01  1.682e+01  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:  4.954e-01  2.662e-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.553e+00  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 6.38e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 2.95e-05

TS (Fixed Index): 2.28
Ra Dec: 224.673 37.373
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914005/likelihoodResults_306979201_307238401_4FGL_J1458.6+3722_daily_bin261.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) = 4041.81193585
delta logL = 0.359027658666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4041.80826181
delta logL = 0.362701697127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.030       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6831       1.0000          .0000       10.000    
     3 'Normalizat'    1.5137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51963       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=   4041.808     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      302 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.031        15.672        .12652E-03   -.59215E-04
   2  Index         2.6831        .75230        .38038E-02    .40160E-03
   3  Normalizat    1.5137        .27776        .23486E-03    .66627E-04
   4  Prefactor     .51956        .26310        .36699E-03    .54212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0313
  Index      = 2.68312
  Normalizat = 1.51367
  Prefactor  = 0.519559
 **********
 **   18 **HESSE 
 **********

 FCN=   4041.808     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.031        13.569        .50608E-05   -1.5074    
   2  Index         2.6831        .65154        .76075E-03   -.48180    
   3  Normalizat    1.5137        .27746        .46972E-04   -.77395    
   4  Prefactor     .51956        .26273        .14680E-04   -1.1109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39933e-11
Minuit parameter uncertainties:
  1  13.5734
  2  0.653907
  3  0.27774
  4  0.263349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914005': 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) = 4041.80826165
delta logL = 0.362701857715

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.003e+01  1.357e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.683e+00  6.539e-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:  5.196e-01  2.633e-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.514e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.68 +/- 0.65
Photon Flux (Free Index): 1.08e-07 +/- 7.90e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.92e-05

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/914005/cmap_HighResolution_306979201_307238401_4FGL_J1458.6+3722_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='2.63e-05', photon_flux_error='6.38e-08', dlogl='3.63e-01', energy_flux='3.34e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-10 16:44:10.470308', photon_index_error2='0.65', photon_index2='2.68', ts='2.28', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.92e-05', EG='1.55', time_epoch_completed='1631317450.47', return_code='0', job_id='914005', GAL2='0.52', EG2='1.51', return_code2='0', energy_flux_error='2.95e-05', photon_flux_error2='7.90e-08', ts2='3.03', photon_index='2.18' WHERE bin_id='261' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:44:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 914005: <4FGL_J1458.6+3722_daily_bin261> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin261 224.673 37.3726 306979201 307238401 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 :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

