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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1123
RA = 224.673, Dec = 37.3726
tmin = 530409601, tmax = 530668801
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='920280', job_status='RUN', time_executed='2021-09-10 16:51:38.104038', time_epoch_executed='1631317898.1' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920280

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920280/ft1_4FGL_J1458.6+3722_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920280/ft2_4FGL_J1458.6+3722_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920280/ft1_4FGL_J1458.6+3722_daily_bin1123.fits outfile=/scratch/kocevski/920280/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1123.fits ra=224.673 dec=37.3726 rad=12.0 tmin=530409601.0 tmax=530668801.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.65
user 3.39
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920280/ft1_filtered_4FGL_J1458.6+3722_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/920280/ft2_4FGL_J1458.6+3722_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/920280/ltcube_530409601_530668801_4FGL_J1458.6+3722_daily_bin1123.fits outfile=/scratch/kocevski/920280/expmap_530409601_530668801_4FGL_J1458.6+3722_daily_bin1123.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/920280/ltcube_530409601_530668801_4FGL_J1458.6+3722_daily_bin1123.fits
.....................!
real 190.67
user 185.29
sys 5.02

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/920280/ft1_filtered_4FGL_J1458.6+3722_daily_bin1123.fits scfile=/scratch/kocevski/920280/ft2_4FGL_J1458.6+3722_daily_bin1123.fits outfile=/scratch/kocevski/920280/cmap_530409601_530668801_4FGL_J1458.6+3722_daily_bin1123.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920280/ft1_filtered_4FGL_J1458.6+3722_daily_bin1123.fits scfile=/scratch/kocevski/920280/ft2_4FGL_J1458.6+3722_daily_bin1123.fits outfile=/scratch/kocevski/920280/cmap_HighResolution_530409601_530668801_4FGL_J1458.6+3722_daily_bin1123.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.448       1.0000         .10000E-03   10000.    
     4 'norm      '    .14737E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3894       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.345       1.0000         .10000E-03   10000.    
    10 'norm      '    6.7122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6673       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4950       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.275       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.309       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1023       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11924E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .88077       1.0000         .10000E-03   10000.    
    24 'norm      '    3.3161       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.372       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.131       1.0000         .10000E-03   10000.    
    28 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99576       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71988       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=   5638.042     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     4166 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.874        17.164        .66763E-07    .14962E-04
   2  Prefactor     12.776        12.021        .59301E-07    .12346E-04
   3  Prefactor     38.470        27.200        .13317E-06   -.14929E-03
   4  norm          .10000E-03    2.2462       -.19079E-05** at limit **
   5  Prefactor     .10000E-03    5.2651        .39315E-06** at limit **
   6  Prefactor     1.0120        17.519       -.20426E-05   -.55571E-04
   7  Prefactor     3.3899        3.4761       -.11171E-05   -.60741E-03
   8  norm          .10000E-03    4.3604        .13979E-06** at limit **
   9  Prefactor     29.353        29.174        .33951E-06   -.16699E-04
  10  norm          6.7127        5.1737        .12893E-06    .65091E-04
  11  Prefactor     58.120        44.585        .21948E-06   -.46968E-04
  12  Prefactor     .10000E-03    17.429        .39105E-06** at limit **
  13  norm          5.6669        7.0100       -.66365E-06   -.13066E-03
  14  Prefactor     .10000E-03    7.3125        .32956E-06** at limit **
  15  Prefactor     .10000E-03    5.5964        .90680E-06** at limit **
  16  Prefactor     .10000E-03    2.3031        .29834E-06** at limit **
  17  norm          1.4950        1.5807       -.62835E-06   -.17263E-02
  18  norm          .10000E-03    3.1752        .19865E-05** at limit **
  19  Prefactor     10.255        10.232       -.21830E-05   -.63066E-03
  20  Prefactor     25.451        85.107        .54620E-05   -.13648E-03
  21  Prefactor     7.1059        10.340       -.12902E-05   -.14291E-03
  22  Prefactor     .10000E-03    41.450        .53704E-05** at limit **
  23  Prefactor     .95541        68.380        .29926E-04   -.16194E-03
  24  norm          3.3163        1.3080       -.10598E-07   -.17355E-03
  25  Prefactor     .10000E-03    3.2782        .68356E-07** at limit **
  26  Prefactor     17.375        24.848       -.10003E-06   -.24703E-04
  27  Prefactor     15.115        21.626       -.56681E-06   -.42531E-04
  28  norm          .10000E-03    14.021        .13219E-05** at limit **
  29  Prefactor     .10000E-03    5.2245        .12027E-06** at limit **
  30  Normalizat    .99555        .18645       -.12629E-05   -.60535E-03
  31  Prefactor     .71997        .17002        .11780E-05   -.85884E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.8742
  Prefactor  = 12.7756
  Prefactor  = 38.4699
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.01201
  Prefactor  = 3.38993
  norm       = 0.0001
  Prefactor  = 29.3533
  norm       = 6.71265
  Prefactor  = 58.1204
  Prefactor  = 0.0001
  norm       = 5.66689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49504
  norm       = 0.0001
  Prefactor  = 10.2553
  Prefactor  = 25.4515
  Prefactor  = 7.10592
  Prefactor  = 0.0001
  Prefactor  = 0.955407
  norm       = 3.31631
  Prefactor  = 0.0001
  Prefactor  = 17.3746
  Prefactor  = 15.115
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.995554
  Prefactor  = 0.719971
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.042     FROM HESSE     STATUS=OK           628 CALLS     4794 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.874        17.166        .83751E-04   -1.4751    
   2  Prefactor     12.776        12.014        .11207E-03   -1.4993    
   3  Prefactor     38.470        27.303        .64639E-04   -1.4467    
   4  norm          .10000E-03    6.3957        .20823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2705        .16795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0120        17.743        .52595E-03   -1.5507    
   7  Prefactor     3.3899        3.4631        .67194E-03   -1.5340    
   8  norm          .10000E-03    4.3616        .15310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.353        29.233        .73960E-04   -1.4624    
  10  norm          6.7127        5.1703        .14387E-03   -1.5190    
  11  Prefactor     58.120        44.567        .52629E-04   -1.4182    
  12  Prefactor     .10000E-03    17.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6669        7.0082        .84369E-03   -1.5232    
  14  Prefactor     .10000E-03    7.3587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6795        .17348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3141        .11126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4950        1.5712        .87764E-04   -1.5463    
  18  norm          .10000E-03    3.2706        .25915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.255        9.7763        .12500E-03   -1.5067    
  20  Prefactor     25.451        84.820        .79626E-04   -1.4699    
  21  Prefactor     7.1059        10.374        .75262E-03   -1.5175    
  22  Prefactor     .10000E-03    41.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .95541        8.5915        .12472       -1.5512    
  24  norm          3.3163        1.3061        .51213E-04   -1.5344    
  25  Prefactor     .10000E-03    3.2840        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.375        24.867        .96093E-04   -1.4874    
  27  Prefactor     15.115        21.551        .10297E-03   -1.4930    
  28  norm          .10000E-03    14.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.2257        .16762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99555        .21059        .22116E-03   -.93180    
  31  Prefactor     .71997        .19536        .25970E-03   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56686e-09
Minuit parameter uncertainties:
  1  17.1699
  2  12.0162
  3  27.3116
  4  0.000212156
  5  5.63005e-05
  6  8.47752
  7  3.46332
  8  2.49545e-05
  9  29.2469
  10  5.1706
  11  44.5926
  12  5.83383e-05
  13  7.00919
  14  1.79524e-05
  15  0.000106546
  16  4.58399e-06
  17  1.57127
  18  4.77528e-05
  19  9.77787
  20  85.2263
  21  10.377
  22  0.000176418
  23  5.73085
  24  1.30611
  25  7.54038e-06
  26  24.8821
  27  21.562
  28  0.000174595
  29  7.07351e-06
  30  0.210764
  31  0.19555
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.200e-01  1.956e-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.956e-01  2.108e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920280/likelihoodResults_530409601_530668801_4FGL_J1458.6+3722_daily_bin1123.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) = 5638.04305626
delta logL = -0.000839194196487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5638.04221657
delta logL = 4.9430582294e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2403       1.0000          .0000       10.000    
     3 'Normalizat'    .99537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72018       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5638.042     FROM MIGRAD    STATUS=FAILED        94 CALLS      244 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    684.66        .36285E-03** at limit **
   2  Index         2.3168        6.3701        .50000       -.12471E-03
   3  Normalizat    .99556        .39268E-01    .22117E-03    .18299E-04
   4  Prefactor     .71997        .39995E-01    .25970E-03    .69342E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5638.042     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      403 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    684.66        .48825E-03** at limit **
   2  Index         2.3168        6.3701        .18158E-04   -.12471E-03
   3  Normalizat    .99556        .39268E-01    .36187E-06    .18299E-04
   4  Prefactor     .71997        .39995E-01    .27551E-06    .69342E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5638.042     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      437 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    1775.5        .72569E-04** at limit **
   2  Index         2.3178        5.0931        .50000       -.12512E-03
   3  Normalizat    .99556        .99389E-01    .88468E-05    .95095E-05
   4  Prefactor     .71997        .10119        .10388E-04    .62163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100147
  Index      = 2.31784
  Normalizat = 0.995559
  Prefactor  = 0.719967
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.042     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    11.430        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3178        6.1394        .50000       -.56620    
   3  Normalizat    .99556        .18489        .17694E-05   -.93179    
   4  Prefactor     .71997        .18829        .20776E-05   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.179e-08
Minuit parameter uncertainties:
  1  0.00258959
  2  4.76682
  3  0.18501
  4  0.188462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920280': 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) = 5638.04221383
delta logL = 3.23138647218e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.200e-01  1.885e-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.956e-01  1.850e-01  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/920280/cmap_HighResolution_530409601_530668801_4FGL_J1458.6+3722_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-10 17:05:54.785352', job_id='920280', GAL2='0.72', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631318754.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1123' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:05:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 920280: <4FGL_J1458.6+3722_daily_bin1123> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1123> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 16:51:22 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:51:23 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:51:23 2021
Terminated at Fri Sep 10 17:05:55 2021
Results reported at Fri Sep 10 17:05:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1123 224.673 37.3726 530409601 530668801 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 :                                   854.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

