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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1118
RA = 224.673, Dec = 37.3726
tmin = 529113601, tmax = 529372801
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='920274', job_status='RUN', time_executed='2021-09-10 16:53:58.663050', time_epoch_executed='1631318038.66' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920274/ft1_4FGL_J1458.6+3722_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920274/ft2_4FGL_J1458.6+3722_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920274/ft1_4FGL_J1458.6+3722_daily_bin1118.fits outfile=/scratch/kocevski/920274/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1118.fits ra=224.673 dec=37.3726 rad=12.0 tmin=529113601.0 tmax=529372801.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.86
user 3.63
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920274/ft1_filtered_4FGL_J1458.6+3722_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/920274/ft2_4FGL_J1458.6+3722_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/920274/ltcube_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.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/920274/ft2_4FGL_J1458.6+3722_daily_bin1118.fits
.....................!
real 11.93
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920274/ft1_filtered_4FGL_J1458.6+3722_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/920274/ft2_4FGL_J1458.6+3722_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/920274/ltcube_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.fits outfile=/scratch/kocevski/920274/expmap_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.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/920274/ltcube_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.fits
.....................!
real 191.05
user 186.50
sys 4.01

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/920274/ft1_filtered_4FGL_J1458.6+3722_daily_bin1118.fits scfile=/scratch/kocevski/920274/ft2_4FGL_J1458.6+3722_daily_bin1118.fits outfile=/scratch/kocevski/920274/cmap_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920274/ft1_filtered_4FGL_J1458.6+3722_daily_bin1118.fits scfile=/scratch/kocevski/920274/ft2_4FGL_J1458.6+3722_daily_bin1118.fits outfile=/scratch/kocevski/920274/cmap_HighResolution_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.915       1.0000         .10000E-03   10000.    
     4 'norm      '    .18442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.537       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2238       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61913       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.336       1.0000         .10000E-03   10000.    
    10 'norm      '    8.2061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.119       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11046E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3421       1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14708E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.295       1.0000         .10000E-03   10000.    
    24 'norm      '    5.3456       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25588E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.4777       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96342       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75755       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=   5125.336     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4193 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.194        20.535        .87102E-07   -.64730E-05
   2  Prefactor     .10000E-03    4.5763        .18226E-06** at limit **
   3  Prefactor     32.916        25.550        .59519E-07   -.16346E-04
   4  norm          .16919        2.0796        .23768E-07   -.69875E-04
   5  Prefactor     13.542        13.495       -.18780E-06   -.10059E-03
   6  Prefactor     4.2232        16.556        .10471E-05   -.89779E-05
   7  Prefactor     .61986        3.0165        .19008E-06    .36164E-04
   8  norm          .10000E-03    23.239        .26047E-06** at limit **
   9  Prefactor     32.336        28.228        .12194E-07   -.18800E-04
  10  norm          8.2066        6.6246       -.99414E-07   -.35142E-04
  11  Prefactor     42.101        45.930        .14433E-05    .21408E-04
  12  Prefactor     .10000E-03    12.693       -.48548E-06** at limit **
  13  norm          2.2794        6.7488        .14966E-05    .16445E-03
  14  Prefactor     .10000E-03    5.2741        .71004E-08** at limit **
  15  Prefactor     .10000E-03    5.0467        .13421E-07** at limit **
  16  Prefactor     .10001E-03    4.9061       -.32354E-06** at limit **
  17  norm          2.3420        1.6310        .21930E-07   -.24548E-04
  18  norm          .10000E-03    1.5079       -.28213E-07** at limit **
  19  Prefactor     .10002E-03    7.3392       -.69322E-06** at limit **
  20  Prefactor     .10000E-03    17.816        .30905E-06** at limit **
  21  Prefactor     .10000E-03    6.2939        .30483E-06** at limit **
  22  Prefactor     .10000E-03    7.1033       -.17075E-06** at limit **
  23  Prefactor     20.272        13.581        .19069E-06   -.80441E-04
  24  norm          5.3458        1.5609       -.34584E-06   -.15935E-02
  25  Prefactor     .10002E-03    23.087        .59738E-05** at limit **
  26  Prefactor     .10000E-03    16.766        .41408E-07** at limit **
  27  Prefactor     .10000E-03    7.2427       -.15841E-06** at limit **
  28  norm          .10000E-03    4.5364       -.14452E-06** at limit **
  29  Prefactor     7.4780        13.636        .82307E-07    .95663E-06
  30  Normalizat    .96329        .18777       -.47379E-06   -.23791E-03
  31  Prefactor     .75764        .18093       -.14066E-06   -.23374E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.1937
  Prefactor  = 0.0001
  Prefactor  = 32.9158
  norm       = 0.169188
  Prefactor  = 13.5417
  Prefactor  = 4.22316
  Prefactor  = 0.619856
  norm       = 0.0001
  Prefactor  = 32.3363
  norm       = 8.20656
  Prefactor  = 42.1011
  Prefactor  = 0.0001
  norm       = 2.27945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 2.34195
  norm       = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2725
  norm       = 5.34585
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.47802
  Normalizat = 0.963294
  Prefactor  = 0.757639
 **********
 **   18 **HESSE 
 **********

 FCN=   5125.336     FROM HESSE     STATUS=OK           628 CALLS     4821 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.194        20.544        .71736E-04   -1.4590    
   2  Prefactor     .10000E-03    4.5768        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.916        25.612        .69845E-04   -1.4560    
   4  norm          .16919        14.133        .19669E-02   -1.5626    
   5  Prefactor     13.542        13.462        .10887E-03   -1.4972    
   6  Prefactor     4.2232        16.833        .98036E-03   -1.5297    
   7  Prefactor     .61986        3.0877        .23542E-03   -1.5551    
   8  norm          .10000E-03    23.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.336        28.323        .70465E-04   -1.4570    
  10  norm          8.2066        6.6475        .13995E-03   -1.5135    
  11  Prefactor     42.101        45.998        .61769E-04   -1.4409    
  12  Prefactor     .10000E-03    12.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2794        8.1418        .13597E-02   -1.5406    
  14  Prefactor     .10000E-03    5.2947        .16056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0808        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    9.6806        .28965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3420        1.6240        .72416E-04   -1.5402    
  18  norm          .10000E-03    1.5135        .85690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    60.316        .33574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.3469        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.1084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.272        12.634        .88907E-04   -1.4807    
  24  norm          5.3458        1.5963        .46203E-04   -1.5246    
  25  Prefactor     .10002E-03    40.543        .39058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.2473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.5396        .14890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.4780        13.630        .14666E-03   -1.5161    
  30  Normalizat    .96329        .22526        .22292E-03   -.94270    
  31  Prefactor     .75764        .21722        .25522E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61706e-08
Minuit parameter uncertainties:
  1  20.5485
  2  3.32559e-06
  3  25.6201
  4  3.09248
  5  13.4651
  6  16.8521
  7  2.76691
  8  8.44352e-06
  9  28.3343
  10  6.6481
  11  46.037
  12  8.01722e-06
  13  8.14578
  14  8.6138e-07
  15  5.78873e-06
  16  0.000481584
  17  1.62406
  18  1.98857e-06
  19  0.0023718
  20  1.32669e-05
  21  3.58307e-06
  22  1.63622e-06
  23  12.6356
  24  1.59627
  25  0.00178872
  26  3.94204e-06
  27  6.18912e-07
  28  4.58056e-07
  29  13.6357
  30  0.225477
  31  0.217464
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.789e-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:  7.576e-01  2.175e-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.633e-01  2.255e-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: 6.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920274/likelihoodResults_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.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) = 5125.33655954
delta logL = -0.000937842896747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5125.33562174
delta logL = -4.02733348892e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1884       1.0000          .0000       10.000    
     3 'Normalizat'    .96328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75767       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=   5125.336     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8591        .90712E-02** at limit **
   2  Index         2.1920        5.9705        .50000       -.59694E-05
   3  Normalizat    .96329        .25429E-02    .45705E-01    .15634E-04
   4  Prefactor     .75764        .26249E-02    .43164E-01    .19571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19205
  Normalizat = 0.963294
  Prefactor  = 0.75764
 **********
 **   18 **HESSE 
 **********

 FCN=   5125.336     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.243        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1920        8.4666        .50000       -.59631    
   3  Normalizat    .96329        .13678E-01    .22292E-03   -.94270    
   4  Prefactor     .75764        .14118E-01    .25522E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.9701e-07
Minuit parameter uncertainties:
  1  3.18524e-05
  2  305.447
  3  0.0136783
  4  0.0141185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920274': 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) = 5125.33562169
delta logL = 1.07102096081e-08

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.185e-05  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.192e+00  3.054e+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:  7.576e-01  1.412e-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.633e-01  1.368e-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/920274/cmap_HighResolution_529113601_529372801_4FGL_J1458.6+3722_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-10 17:07:27.694714', job_id='920274', GAL2='0.76', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631318847.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1118' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:07:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 920274: <4FGL_J1458.6+3722_daily_bin1118> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 16:51:21 2021
Job was executed on host(s) <bullet0204>, 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:07:28 2021
Results reported at Fri Sep 10 17:07:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1118 224.673 37.3726 529113601 529372801 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 :                                   807.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

