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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1051
RA = 224.673, Dec = 37.3726
tmin = 511747201, tmax = 512006401
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='920173', job_status='RUN', time_executed='2021-09-10 16:51:33.733676', time_epoch_executed='1631317893.73' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920173/ft1_4FGL_J1458.6+3722_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920173/ft2_4FGL_J1458.6+3722_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920173/ft1_4FGL_J1458.6+3722_daily_bin1051.fits outfile=/scratch/kocevski/920173/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1051.fits ra=224.673 dec=37.3726 rad=12.0 tmin=511747201.0 tmax=512006401.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.56
user 3.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920173/ft1_filtered_4FGL_J1458.6+3722_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/920173/ft2_4FGL_J1458.6+3722_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/920173/ltcube_511747201_512006401_4FGL_J1458.6+3722_daily_bin1051.fits outfile=/scratch/kocevski/920173/expmap_511747201_512006401_4FGL_J1458.6+3722_daily_bin1051.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/920173/ltcube_511747201_512006401_4FGL_J1458.6+3722_daily_bin1051.fits
.....................!
real 190.18
user 185.47
sys 4.34

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/920173/ft1_filtered_4FGL_J1458.6+3722_daily_bin1051.fits scfile=/scratch/kocevski/920173/ft2_4FGL_J1458.6+3722_daily_bin1051.fits outfile=/scratch/kocevski/920173/cmap_511747201_512006401_4FGL_J1458.6+3722_daily_bin1051.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/920173/ft1_filtered_4FGL_J1458.6+3722_daily_bin1051.fits scfile=/scratch/kocevski/920173/ft2_4FGL_J1458.6+3722_daily_bin1051.fits outfile=/scratch/kocevski/920173/cmap_HighResolution_511747201_512006401_4FGL_J1458.6+3722_daily_bin1051.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14948       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.527       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6911       1.0000         .10000E-03   10000.    
     8 'norm      '    11.962       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.0960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.065       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.2228       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5818       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.294       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.2670       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86777       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=   6458.392     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     4214 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.3312       -.35602E-07** at limit **
   2  Prefactor     .10000E-03    7.4812        .67571E-08** at limit **
   3  Prefactor     .10000E-03    8.2085        .27487E-07** at limit **
   4  norm          .10000E-03    1.8425        .11082E-07** at limit **
   5  Prefactor     .76833E-03    20.760       -.20103E-05** at limit **
   6  Prefactor     16.605        20.233        .13224E-05    .31391E-03
   7  Prefactor     6.6918        3.8416        .39740E-07    .24972E-04
   8  norm          12.038        19.438        .67710E-06    .18549E-03
   9  Prefactor     .10000E-03    16.962       -.71919E-07** at limit **
  10  norm          9.0976        5.7227        .10539E-07    .44890E-04
  11  Prefactor     .10000E-03    13.005       -.87978E-09** at limit **
  12  Prefactor     .10000E-03    18.139        .51029E-07** at limit **
  13  norm          .10000E-03    2.4764       -.34083E-08** at limit **
  14  Prefactor     .10000E-03    6.2745       -.84368E-08** at limit **
  15  Prefactor     .10000E-03    4.4984       -.25144E-07** at limit **
  16  Prefactor     .10000E-03    3.3559       -.17571E-06** at limit **
  17  norm          .10000E-03    .61371        .90995E-09** at limit **
  18  norm          12.065        4.1839        .71167E-08    .39531E-04
  19  Prefactor     .10000E-03    2.0358       -.64682E-10** at limit **
  20  Prefactor     .10000E-03    18.400       -.22373E-07** at limit **
  21  Prefactor     .10000E-03    2.6316       -.34588E-09** at limit **
  22  Prefactor     .10000E-03    5.0500        .25404E-09** at limit **
  23  Prefactor     .10000E-03    3.3886        .10103E-08** at limit **
  24  norm          1.2213        1.1593       -.18634E-06   -.41241E-03
  25  Prefactor     1.5890        19.906        .29299E-05   -.16443E-03
  26  Prefactor     16.279        23.027       -.23187E-06    .11361E-03
  27  Prefactor     .10000E-03    7.5618       -.59663E-08** at limit **
  28  norm          5.2658        6.4543       -.91275E-08    .13781E-04
  29  Prefactor     .10000E-03    4.7019        .28048E-09** at limit **
  30  Normalizat    1.2232        .17452        .30547E-07    .15022E-03
  31  Prefactor     .86795        .17203       -.29888E-06    .11339E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000768326
  Prefactor  = 16.6051
  Prefactor  = 6.69181
  norm       = 12.0379
  Prefactor  = 0.0001
  norm       = 9.09758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 12.0651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22131
  Prefactor  = 1.58903
  Prefactor  = 16.2795
  Prefactor  = 0.0001
  norm       = 5.26581
  Prefactor  = 0.0001
  Normalizat = 1.22318
  Prefactor  = 0.867946
 **********
 **   18 **HESSE 
 **********

 FCN=   6458.392     FROM HESSE     STATUS=OK           624 CALLS     4838 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.2158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8660        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .76833E-03    55.995        .72590E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.605        27.292        .98520E-04   -1.4893    
   7  Prefactor     6.6918        3.8440        .11468E-03   -1.5191    
   8  norm          12.038        20.515        .11583E-03   -1.5014    
   9  Prefactor     .10000E-03    17.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.0976        5.7164        .13289E-03   -1.5105    
  11  Prefactor     .10000E-03    13.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4771        .12351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.886        .31310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.7150        .28413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .95392        .11718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.065        4.1799        .93507E-04   -1.5013    
  19  Prefactor     .10000E-03    2.0391        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6357        .12732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0579        .17637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4027        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.2213        1.1011        .69259E-04   -1.5487    
  25  Prefactor     1.5890        16.170        .33766E-03   -1.5456    
  26  Prefactor     16.279        23.095        .99222E-04   -1.4901    
  27  Prefactor     .10000E-03    7.5683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.2658        6.4478        .17514E-03   -1.5249    
  29  Prefactor     .10000E-03    4.7036        .17020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2232        .20630        .22232E-03   -.85889    
  31  Prefactor     .86795        .20483        .26739E-03   -.97270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87479e-10
Minuit parameter uncertainties:
  1  3.85129e-06
  2  8.00118e-06
  3  9.58153e-06
  4  1.56923e-06
  5  0.387262
  6  27.3122
  7  3.84414
  8  20.5272
  9  8.78101e-06
  10  5.71678
  11  5.84098e-06
  12  2.23059e-05
  13  3.51896e-07
  14  1.03042e-06
  15  0.000168215
  16  0.000131688
  17  1.17216e-06
  18  4.17997
  19  3.29994e-07
  20  9.10592e-06
  21  6.50236e-07
  22  4.2024e-07
  23  4.38551e-07
  24  1.10117
  25  10.1412
  26  23.1072
  27  6.08557e-06
  28  6.44866
  29  1.35488e-07
  30  0.206436
  31  0.205008
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.682e-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:  8.679e-01  2.050e-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.223e+00  2.064e-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: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920173/likelihoodResults_511747201_512006401_4FGL_J1458.6+3722_daily_bin1051.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) = 6458.39196946
delta logL = -0.000190484369341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6458.39176741
delta logL = 1.15733764687e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14088E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3198       1.0000          .0000       10.000    
     3 'Normalizat'    1.2234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6457.924     FROM MIGRAD    STATUS=CONVERGED    314 CALLS      492 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .36556E-02    .39643E-03** at limit **
   2  Index         6.8356        2.5908        .11071        .21430E-03
   3  Normalizat    1.1729        .35404E-01    .51194E-01    .21164E-04
   4  Prefactor     .90273        .36405E-01    .44593E-01    .31428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.83557
  Normalizat = 1.1729
  Prefactor  = 0.902727
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.924     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      533 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .27997E-01    .20041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.8356        7.7909        .58952E-02    .37590    
   3  Normalizat    1.1729        .80443E-01    .22635E-03   -.87444    
   4  Prefactor     .90273        .83093E-01    .26281E-03   -.96046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.37747e-09
Minuit parameter uncertainties:
  1  5.78809e-08
  2  5.6873
  3  0.0804513
  4  0.0831049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920173': 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) = 6457.92403206
delta logL = 0.467746921275

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.788e-08  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  6.836e+00  5.687e+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:  9.027e-01  8.310e-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:  1.173e+00  8.045e-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/920173/cmap_HighResolution_511747201_512006401_4FGL_J1458.6+3722_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-09-10 17:07:19.540115', job_id='920173', GAL2='0.90', fit_tolerance='1e-08', EG2='1.17', EG='1.22', time_epoch_completed='1631318839.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.68e-01', ts2='0.98', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1051' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 920173: <4FGL_J1458.6+3722_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1051 224.673 37.3726 511747201 512006401 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 :                                   944.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

