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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1529
RA = 224.673, Dec = 37.3726
tmin = 635644801, tmax = 635904001
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='922190', job_status='RUN', time_executed='2021-09-10 16:57:00.246013', time_epoch_executed='1631318220.25' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922190/ft1_4FGL_J1458.6+3722_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922190/ft2_4FGL_J1458.6+3722_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922190/ft1_4FGL_J1458.6+3722_daily_bin1529.fits outfile=/scratch/kocevski/922190/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1529.fits ra=224.673 dec=37.3726 rad=12.0 tmin=635644801.0 tmax=635904001.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.31
user 4.09
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922190/ft2_4FGL_J1458.6+3722_daily_bin1529.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/922190/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1529.fits evtable="EVENTS" outfile="/scratch/kocevski/922190/ft1_filtered_4FGL_J1458.6+3722_daily_bin1529.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922190/ft1_filtered_4FGL_J1458.6+3722_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/922190/ft2_4FGL_J1458.6+3722_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/922190/ltcube_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.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/922190/ft2_4FGL_J1458.6+3722_daily_bin1529.fits
.....................!
real 11.50
user 11.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922190/ft1_filtered_4FGL_J1458.6+3722_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/922190/ft2_4FGL_J1458.6+3722_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/922190/ltcube_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.fits outfile=/scratch/kocevski/922190/expmap_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.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/922190/ltcube_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.fits
.....................!
real 191.13
user 185.69
sys 5.10

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/922190/ft1_filtered_4FGL_J1458.6+3722_daily_bin1529.fits scfile=/scratch/kocevski/922190/ft2_4FGL_J1458.6+3722_daily_bin1529.fits outfile=/scratch/kocevski/922190/cmap_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.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/922190/ft1_filtered_4FGL_J1458.6+3722_daily_bin1529.fits scfile=/scratch/kocevski/922190/ft2_4FGL_J1458.6+3722_daily_bin1529.fits outfile=/scratch/kocevski/922190/cmap_HighResolution_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.257       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0222       1.0000         .10000E-03   10000.    
    11 'Prefactor '    88.843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2561       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1981       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2378       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8993       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.868       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.335       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6537       1.0000         .10000E-03   10000.    
    24 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.1572       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12883E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    20.195       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11283E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90410       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90789       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=   5520.743     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4133 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.266        17.415       -.31685E-07    .33986E-05
   2  Prefactor     .10000E-03    18.911        .21290E-06** at limit **
   3  Prefactor     .10000E-03    32.794       -.28525E-06** at limit **
   4  norm          .10000E-03    1.6002       -.49078E-07** at limit **
   5  Prefactor     34.961        18.041       -.53009E-07    .66794E-04
   6  Prefactor     .10000E-03    51.286       -.64604E-06** at limit **
   7  Prefactor     14.547        4.9958       -.60112E-08    .80966E-04
   8  norm          .10000E-03    6.4968       -.72930E-07** at limit **
   9  Prefactor     .10000E-03    7.3505        .54702E-07** at limit **
  10  norm          1.0031        8.5234       -.27774E-05    .53920E-03
  11  Prefactor     88.892        63.342       -.97745E-06   -.75896E-05
  12  Prefactor     9.2720        24.131       -.45414E-06   -.66536E-05
  13  norm          .10000E-03    2.7702       -.13916E-07** at limit **
  14  Prefactor     9.2025        11.987       -.19269E-08    .58924E-04
  15  Prefactor     .10000E-03    3.3482       -.17617E-06** at limit **
  16  Prefactor     5.2390        5.9465        .55330E-07    .73115E-04
  17  norm          1.9007        1.6130       -.31496E-06   -.25416E-03
  18  norm          .10000E-03    .84130        .17768E-06** at limit **
  19  Prefactor     .10000E-03    2.6953        .43711E-06** at limit **
  20  Prefactor     16.647        124.76        .12647E-04    .65872E-04
  21  Prefactor     .10000E-03    3.7225       -.22314E-07** at limit **
  22  Prefactor     38.334        25.173        .67050E-07    .18556E-03
  23  Prefactor     2.6594        20.927        .20977E-05    .17546E-03
  24  norm          .10000E-03    .54411       -.38798E-06** at limit **
  25  Prefactor     4.1602        7.1346        .16690E-07    .17084E-03
  26  Prefactor     .10000E-03    38.918       -.68547E-06** at limit **
  27  Prefactor     .10000E-03    26.952       -.17007E-06** at limit **
  28  norm          20.174        18.547       -.41461E-06   -.92272E-05
  29  Prefactor     .10000E-03    16.827       -.25760E-06** at limit **
  30  Normalizat    .90372        .19384        .64015E-06    .31953E-03
  31  Prefactor     .90821        .17865       -.52680E-06    .24215E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.2661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.9611
  Prefactor  = 0.0001
  Prefactor  = 14.5468
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0031
  Prefactor  = 88.8924
  Prefactor  = 9.27199
  norm       = 0.0001
  Prefactor  = 9.20249
  Prefactor  = 0.0001
  Prefactor  = 5.23899
  norm       = 1.90073
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6467
  Prefactor  = 0.0001
  Prefactor  = 38.334
  Prefactor  = 2.65942
  norm       = 0.0001
  Prefactor  = 4.16021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1739
  Prefactor  = 0.0001
  Normalizat = 0.903723
  Prefactor  = 0.908208
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.743     FROM HESSE     STATUS=OK           616 CALLS     4749 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.266        17.419        .93737E-04   -1.4853    
   2  Prefactor     .10000E-03    18.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6076        .91769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.961        17.931        .67785E-04   -1.4525    
   6  Prefactor     .10000E-03    51.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.547        5.0020        .93674E-04   -1.4945    
   8  norm          .10000E-03    6.4991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0031        15.470        .29470E-02   -1.5508    
  11  Prefactor     88.892        63.870        .21314E-03   -1.3820    
  12  Prefactor     9.2720        24.138        .13173E-03   -1.5099    
  13  norm          .10000E-03    2.7708        .12077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2025        11.979        .13215E-03   -1.5101    
  15  Prefactor     .10000E-03    3.3607        .13274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2390        5.9472        .17563E-03   -1.5250    
  17  norm          1.9007        1.6247        .80109E-04   -1.5432    
  18  norm          .10000E-03    .84318        .66577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7043        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.647        134.47        .97520E-04   -1.4892    
  21  Prefactor     .10000E-03    3.7339        .14000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.334        25.279        .64734E-04   -1.4469    
  23  Prefactor     2.6594        22.424        .12512E-02   -1.5382    
  24  norm          .10000E-03    .81474        .10152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.1602        6.9540        .19768E-03   -1.5300    
  26  Prefactor     .10000E-03    39.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          20.174        18.523        .89127E-04   -1.4809    
  29  Prefactor     .10000E-03    16.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90372        .23009        .24321E-03   -.96329    
  31  Prefactor     .90821        .21100        .24501E-03   -.95855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66762e-09
Minuit parameter uncertainties:
  1  17.4241
  2  2.12368e-05
  3  2.4054e-05
  4  4.16224e-07
  5  17.9335
  6  9.01765e-06
  7  5.00218
  8  2.16014e-07
  9  7.85651e-06
  10  7.88049
  11  63.9192
  12  24.1632
  13  1.66503e-06
  14  11.9818
  15  8.4513e-06
  16  5.94784
  17  1.62478
  18  4.75277e-06
  19  2.05741e-05
  20  94.9191
  21  8.14906e-07
  22  25.2861
  23  15.4522
  24  1.01712e-06
  25  6.95536
  26  9.77267e-05
  27  6.90229e-05
  28  18.5285
  29  2.51846e-05
  30  0.230339
  31  0.211186
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  8.451e-06  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:  9.082e-01  2.112e-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.037e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/922190/likelihoodResults_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5520.74446752
delta logL = -0.00141538780645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5520.74305198
delta logL = 1.55166162585e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1642       1.0000          .0000       10.000    
     3 'Normalizat'    .90378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90816       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=   5520.743     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10398E-03    1.9122        .13502E-01** at limit **
   2  Index         2.0381        5.4287        .50000        .39500E-04
   3  Normalizat    .90372        .30534E-02    .24320E-03    .66659E-04
   4  Prefactor     .90821        .31005E-02    .24501E-03    .42642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010398
  Index      = 2.0381
  Normalizat = 0.903722
  Prefactor  = 0.908209
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.743     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10398E-03    79.119        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0381        7.7726        .50000       -.63401    
   3  Normalizat    .90372        .20020E-01    .97282E-05   -.96329    
   4  Prefactor     .90821        .20326E-01    .98004E-05   -.95855    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20968e-08
Minuit parameter uncertainties:
  1  0.0355397
  2  493.188
  3  0.0200198
  4  0.0203266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922190': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5520.74305105
delta logL = 1.07907180791e-06

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.040e-04  3.554e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.038e+00  4.932e+02  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.082e-01  2.033e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.037e-01  2.002e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.673 37.373

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/922190/cmap_HighResolution_635644801_635904001_4FGL_J1458.6+3722_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-10 17:10:46.606671', job_id='922190', GAL2='0.91', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631319046.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1529' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:10:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 922190: <4FGL_J1458.6+3722_daily_bin1529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1529 224.673 37.3726 635644801 635904001 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 :                                   816.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

