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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin957
RA = 224.673, Dec = 37.3726
tmin = 487382401, tmax = 487641601
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='920039', job_status='RUN', time_executed='2021-09-10 16:51:18.851488', time_epoch_executed='1631317878.85' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='957'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920039/ft1_4FGL_J1458.6+3722_daily_bin957.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920039/ft2_4FGL_J1458.6+3722_daily_bin957.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920039/ft1_4FGL_J1458.6+3722_daily_bin957.fits outfile=/scratch/kocevski/920039/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin957.fits ra=224.673 dec=37.3726 rad=12.0 tmin=487382401.0 tmax=487641601.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.82
user 3.58
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920039/ft1_filtered_4FGL_J1458.6+3722_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/920039/ft2_4FGL_J1458.6+3722_daily_bin957.fits sctable="SC_DATA" expcube=/scratch/kocevski/920039/ltcube_487382401_487641601_4FGL_J1458.6+3722_daily_bin957.fits outfile=/scratch/kocevski/920039/expmap_487382401_487641601_4FGL_J1458.6+3722_daily_bin957.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/920039/ltcube_487382401_487641601_4FGL_J1458.6+3722_daily_bin957.fits
.....................!
real 190.87
user 185.87
sys 4.56

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/920039/ft1_filtered_4FGL_J1458.6+3722_daily_bin957.fits scfile=/scratch/kocevski/920039/ft2_4FGL_J1458.6+3722_daily_bin957.fits outfile=/scratch/kocevski/920039/cmap_487382401_487641601_4FGL_J1458.6+3722_daily_bin957.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920039/ft1_filtered_4FGL_J1458.6+3722_daily_bin957.fits scfile=/scratch/kocevski/920039/ft2_4FGL_J1458.6+3722_daily_bin957.fits outfile=/scratch/kocevski/920039/cmap_HighResolution_487382401_487641601_4FGL_J1458.6+3722_daily_bin957.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7463       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.198       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7227       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71913E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.5421       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.715       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3329       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.094       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1245       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6345       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7118       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3211       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48383       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.461       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5252       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8430       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.916       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5934       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7843       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.762       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .48226       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1834       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=   5574.679     FROM MIGRAD    STATUS=CONVERGED   1431 CALLS     4823 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.752        .18142E-02** at limit **
   2  Prefactor     9.7456        9.7554        .12836E-03   -.43842E-04
   3  Prefactor     25.197        23.608        .79801E-04   -.12394E-04
   4  norm          2.2975        2.6737        .12758E-03   -.62557E-04
   5  Prefactor     4.7192        9.9056        .18516E-03   -.19992E-03
   6  Prefactor     .10000E-03    102.88        .43512E-02** at limit **
   7  Prefactor     .10000E-03    1.0729        .75268E-03** at limit **
   8  norm          7.5422        10.554        .14603E-03   -.72480E-04
   9  Prefactor     32.712        24.744        .70057E-04   -.55499E-04
  10  norm          4.3334        6.2531        .96759E-03   -.27820E-03
  11  Prefactor     34.662        38.230        .68062E-04   -.16202E-04
  12  Prefactor     81.094        40.316        .44601E-04   -.87175E-05
  13  norm          5.1245        5.3534        .17188E-03   -.91941E-05
  14  Prefactor     .10000E-03    10.435        .18142E-02** at limit **
  15  Prefactor     2.6346        4.5243        .19906E-03    .34267E-05
  16  Prefactor     3.7118        5.5049        .20455E-03    .15396E-04
  17  norm          2.3211        1.4122        .65064E-04    .41062E-04
  18  norm          2.0043        2.6793        .12943E-03    .10488E-03
  19  Prefactor     .48119        14.046        .31963E-02    .35406E-03
  20  Prefactor     12.409        35.044        .11348E-03    .57606E-04
  21  Prefactor     1.5260        6.0784        .34579E-03   -.21370E-04
  22  Prefactor     5.8437        18.266        .16614E-03    .48447E-04
  23  Prefactor     13.916        13.298        .10737E-03    .14559E-03
  24  norm          1.5933        1.1994        .33607E-04    .18605E-04
  25  Prefactor     5.7846        6.5447        .16700E-03    .44931E-05
  26  Prefactor     .10000E-03    8.5747        .18142E-02** at limit **
  27  Prefactor     .10000E-03    11.001        .18142E-02** at limit **
  28  norm          11.760        11.796        .11681E-03    .72023E-05
  29  Prefactor     .10000E-03    7.6722        .18142E-02** at limit **
  30  Normalizat    .48225        .20881        .29303E-03   -.59591E-04
  31  Prefactor     1.1834        .20673        .20896E-03   -.35711E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.74562
  Prefactor  = 25.1968
  norm       = 2.29746
  Prefactor  = 4.71923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.54222
  Prefactor  = 32.7118
  norm       = 4.33339
  Prefactor  = 34.6621
  Prefactor  = 81.0939
  norm       = 5.12453
  Prefactor  = 0.0001
  Prefactor  = 2.63458
  Prefactor  = 3.71177
  norm       = 2.3211
  norm       = 2.0043
  Prefactor  = 0.481192
  Prefactor  = 12.4088
  Prefactor  = 1.52602
  Prefactor  = 5.84368
  Prefactor  = 13.9164
  norm       = 1.59334
  Prefactor  = 5.78456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7604
  Prefactor  = 0.0001
  Normalizat = 0.482249
  Prefactor  = 1.1834
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.679     FROM HESSE     STATUS=OK           592 CALLS     5415 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7456        9.7551        .51344E-05   -1.5084    
   3  Prefactor     25.197        23.606        .31920E-05   -1.4704    
   4  norm          2.2975        2.6736        .51031E-05   -1.5405    
   5  Prefactor     4.7192        9.8635        .74064E-05   -1.5273    
   6  Prefactor     .10000E-03    104.23        .17405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0729        .15054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5422        10.554        .58412E-05   -1.5159    
   9  Prefactor     32.712        24.741        .28023E-05   -1.4563    
  10  norm          4.3334        6.2493        .38704E-04   -1.5292    
  11  Prefactor     34.662        38.232        .27225E-05   -1.4530    
  12  Prefactor     81.094        40.316        .89201E-05   -1.3904    
  13  norm          5.1245        5.3532        .68750E-05   -1.5255    
  14  Prefactor     .10000E-03    10.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6346        4.5237        .79625E-05   -1.5383    
  16  Prefactor     3.7118        5.5045        .81819E-05   -1.5323    
  17  norm          2.3211        1.4121        .26025E-05   -1.5403    
  18  norm          2.0043        2.6603        .51773E-05   -1.5425    
  19  Prefactor     .48119        13.577        .12785E-03   -1.5569    
  20  Prefactor     12.409        35.030        .45391E-05   -1.5003    
  21  Prefactor     1.5260        6.0777        .13832E-04   -1.5461    
  22  Prefactor     5.8437        18.250        .66457E-05   -1.5224    
  23  Prefactor     13.916        13.221        .42948E-05   -1.4962    
  24  norm          1.5933        1.1993        .13443E-05   -1.5456    
  25  Prefactor     5.7846        6.5441        .66798E-05   -1.5227    
  26  Prefactor     .10000E-03    8.5747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.760        11.795        .46723E-05   -1.5022    
  29  Prefactor     .10000E-03    7.6726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .48225        .20883        .11721E-04   -1.1325    
  31  Prefactor     1.1834        .20681        .41793E-04   -.86844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38781e-10
Minuit parameter uncertainties:
  1  4.24541e-07
  2  9.75668
  3  23.615
  4  2.6737
  5  9.86693
  6  0.000230848
  7  6.82854e-07
  8  10.5563
  9  24.7492
  10  6.25025
  11  38.2588
  12  40.3295
  13  5.35373
  14  1.12183e-06
  15  4.52433
  16  5.50526
  17  1.41211
  18  2.66047
  19  5.11271
  20  35.0876
  21  6.08014
  22  18.267
  23  13.2238
  24  1.19935
  25  6.54487
  26  2.73455e-06
  27  6.36374e-06
  28  11.7974
  29  1.05559e-06
  30  0.209164
  31  0.20695
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  2.635e+00  4.524e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.183e+00  2.069e-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:  4.822e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/920039/likelihoodResults_487382401_487641601_4FGL_J1458.6+3722_daily_bin957.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) = 5574.60680261
delta logL = 0.0723707582665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5574.5097232
delta logL = 0.16945016636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13484E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.0001       1.0000          .0000       10.000    
     3 'Normalizat'    .43087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2246       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=   5574.510     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      308 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13263E-01    .24729        .21212E-02   -.14561E-01
   2  Index         5.0064        2.5155        .91879E-01   -.11866E-03
   3  Normalizat    .43089        .30767E-01    .69856E-01   -.32057E-03
   4  Prefactor     1.2245        .33439E-01    .34074E-01   -.35717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0132633
  Index      = 5.00644
  Normalizat = 0.43089
  Prefactor  = 1.2245
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.510     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      341 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13263E-01    .81333        .96188E-04   -1.5685    
   2  Index         5.0064        7.3581        .50984E-02    .12890E-02
   3  Normalizat    .43089        .12483        .30924E-03   -1.1573    
   4  Prefactor     1.2245        .13335        .20596E-03   -.85581    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38155e-09
Minuit parameter uncertainties:
  1  0.206944
  2  6.14855
  3  0.124907
  4  0.133384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920039': 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) = 5574.5097209
delta logL = 0.169452472574

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.326e-02  2.069e-01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  5.006e+00  6.149e+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:  1.224e+00  1.334e-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:  4.309e-01  1.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/920039/cmap_HighResolution_487382401_487641601_4FGL_J1458.6+3722_daily_bin957.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-10 17:06:13.604747', job_id='920039', GAL2='1.22', fit_tolerance='1e-08', EG2='0.43', EG='0.48', time_epoch_completed='1631318773.6', return_code2='102', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.69e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='957' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:06:13 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin957 224.673 37.3726 487382401 487641601 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 :                                   894.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

