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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin518
RA = 219.941, Dec = 49.9775
tmin = 373593601, tmax = 373852801
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='680344', job_status='RUN', time_executed='2021-09-10 03:56:23.779466', time_epoch_executed='1631271383.78' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680344/ft1_4FGL_J1439.7+4958_daily_bin518.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680344/ft1_4FGL_J1439.7+4958_daily_bin518.fits outfile=/scratch/kocevski/680344/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin518.fits ra=219.941 dec=49.9775 rad=12.0 tmin=373593601.0 tmax=373852801.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.49
user 3.27
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.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/680344/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin518.fits evtable="EVENTS" outfile="/scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.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.57
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits" evtable="EVENTS" scfile=/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits sctable="SC_DATA" outfile=/scratch/kocevski/680344/ltcube_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.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/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits
.....................!
real 12.32
user 11.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits sctable="SC_DATA" expcube=/scratch/kocevski/680344/ltcube_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.fits outfile=/scratch/kocevski/680344/expmap_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.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/680344/ltcube_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.fits
.....................!
real 190.69
user 184.51
sys 5.76

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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1439.7+4958 @ 219.941 49.9775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits scfile=/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits outfile=/scratch/kocevski/680344/cmap_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.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=219.941 yref=49.9775 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits scfile=/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits outfile=/scratch/kocevski/680344/cmap_HighResolution_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.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=219.941 yref=49.9775 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits evtable="EVENTS" scfile=/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680344/Model_4FGL_J1439.7+4958_daily_bin518.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/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits.....................!
real 50.40
user 48.95
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits', '/scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits', expMap='/scratch/kocevski/680344/expmap_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.fits', expCube='/scratch/kocevski/680344/ltcube_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680344/Model_4FGL_J1439.7+4958_daily_bin518.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1439.7+4958'

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  6.204e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/680344/ft1_filtered_4FGL_J1439.7+4958_daily_bin518.fits
Spacecraft file(s): /scratch/kocevski/680344/ft2_4FGL_J1439.7+4958_daily_bin518.fits
Exposure map: /scratch/kocevski/680344/expmap_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.fits
Exposure cube: /scratch/kocevski/680344/ltcube_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680344/Model_4FGL_J1439.7+4958_daily_bin518.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) = 6443.99098257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.069       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.5419       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .98469       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.942       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0561       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3359       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.843       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .83525       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.691       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .23772E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.5335       1.0000         .10000E-03   10000.    
    28 'norm      '    2.4574       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.8627       1.0000         .10000E-03   10000.    
    31 'Prefactor '    28.185       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67640       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3471       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6443.987     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4562 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7819         .0000    ** at limit **
   2  Prefactor     23.069        33.416         .0000       -.33033E-04
   3  norm          .10000E-03    2.2524         .0000    ** at limit **
   4  Prefactor     .10003E-03    22.966         .0000    ** at limit **
   5  Prefactor     .10000E-03    11.466         .0000    ** at limit **
   6  norm          5.5418        1.8388         .0000       -.17370E-03
   7  norm          .10000E-03    34.127         .0000    ** at limit **
   8  norm          .98404        2.3491         .0000        .73530E-03
   9  Prefactor     .10004E-03    298.27         .0000    ** at limit **
  10  Prefactor     .10000E-03    16.657         .0000    ** at limit **
  11  Prefactor     24.827        39.690         .0000        .13660E-04
  12  Prefactor     .10000E-03    2.3733         .0000    ** at limit **
  13  Prefactor     .10001E-03    15.907         .0000    ** at limit **
  14  Prefactor     12.942        3.9181         .0000        .15998E-03
  15  Prefactor     .10001E-03    13.666         .0000    ** at limit **
  16  Prefactor     5.0531        29.415         .0000       -.42635E-03
  17  Prefactor     .10002E-03    10.943         .0000    ** at limit **
  18  Prefactor     .10008E-03    19.585         .0000    ** at limit **
  19  Prefactor     1.2986        39.668         .0000        .42604E-02
  20  Prefactor     .10000E-03    10.124         .0000    ** at limit **
  21  Prefactor     .10000E-03    11.328         .0000    ** at limit **
  22  Prefactor     25.844        15.890         .0000        .10473E-03
  23  Prefactor     .10000E-03    14.511         .0000    ** at limit **
  24  norm          .83572        1.3785         .0000        .15557E-02
  25  Prefactor     10.690        9.7997         .0000        .24402E-03
  26  Prefactor     .10000E-03    10.944         .0000    ** at limit **
  27  Prefactor     8.5330        7.9237         .0000        .44894E-03
  28  norm          2.4575        2.8514         .0000        .60466E-03
  29  Prefactor     .10000E-03    2.6548         .0000    ** at limit **
  30  Prefactor     1.8554        29.634         .0000        .16438E-03
  31  Prefactor     28.178        13.970         .0000        .34132E-03
  32  Normalizat    .67647        .17282         .0000        .13490E-03
  33  Prefactor     1.3470        .19782         .0000        .35518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.0686
  norm       = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.000100004
  norm       = 5.54184
  norm       = 0.000100001
  norm       = 0.984044
  Prefactor  = 0.000100042
  Prefactor  = 0.000100001
  Prefactor  = 24.8274
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 12.9419
  Prefactor  = 0.000100008
  Prefactor  = 5.05312
  Prefactor  = 0.000100023
  Prefactor  = 0.000100083
  Prefactor  = 1.2986
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.8435
  Prefactor  = 0.000100002
  norm       = 0.835721
  Prefactor  = 10.6903
  Prefactor  = 0.000100004
  Prefactor  = 8.53296
  norm       = 2.45748
  Prefactor  = 0.0001
  Prefactor  = 1.85538
  Prefactor  = 28.1778
  Normalizat = 0.676474
  Prefactor  = 1.34702
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.987     FROM HESSE     STATUS=OK           695 CALLS     5257 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.069        33.408        .83396E-04   -1.4747    
   3  norm          .10000E-03    2.2866        .11762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    22.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.5418        1.8394        .60473E-04   -1.5237    
   7  norm          .10000E-03    34.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .98404        1.8356        .18312E-02   -1.5510    
   9  Prefactor     .10004E-03    298.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.827        39.718        .80399E-04   -1.4711    
  12  Prefactor     .10000E-03    2.3858        .12070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    16.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.942        3.8966        .79339E-04   -1.4988    
  15  Prefactor     .10001E-03    13.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0531        29.234        .17882E-03   -1.5258    
  17  Prefactor     .10002E-03    10.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10008E-03    19.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2986        40.302        .18978E-02   -1.5480    
  20  Prefactor     .10000E-03    10.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.844        15.842        .78801E-04   -1.4691    
  23  Prefactor     .10000E-03    14.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .83572        1.2492        .11536E-02   -1.5525    
  25  Prefactor     10.690        9.7733        .12254E-03   -1.5054    
  26  Prefactor     .10000E-03    11.381        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.5330        7.9181        .13723E-03   -1.5124    
  28  norm          2.4575        2.8358        .13850E-03   -1.5394    
  29  Prefactor     .10000E-03    2.6576        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.8554        28.985        .30529E-03   -1.5436    
  31  Prefactor     28.178        13.775        .75463E-04   -1.4646    
  32  Normalizat    .67647        .21047        .27752E-03   -1.0483    
  33  Prefactor     1.3470        .24260        .24412E-03   -.81920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79069e-08
Minuit parameter uncertainties:
  1  5.04811e-05
  2  33.4347
  3  2.34081e-05
  4  0.00156383
  5  0.000449356
  6  1.83944
  7  0.000327548
  8  1.83572
  9  0.0070735
  10  0.000310544
  11  39.7605
  12  2.72063e-06
  13  0.000770095
  14  3.89671
  15  0.00065236
  16  24.326
  17  0.00100497
  18  0.00254791
  19  14.4789
  20  0.000231515
  21  3.81471e-05
  22  15.8449
  23  0.000330038
  24  1.24927
  25  9.77471
  26  0.000409349
  27  7.91908
  28  2.83597
  29  2.39848e-05
  30  14.6748
  31  13.7766
  32  0.210717
  33  0.2428
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  2.584e+01  1.584e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.347e+00  2.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  6.765e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 219.941 49.977
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.79e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.11e-05

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): 0
logL (Free Index) = 6443.93678575
delta logL = 0.0505960486453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6443.93433947
delta logL = 0.0530423290165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.989       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5062       1.0000          .0000       10.000    
     3 'Normalizat'    .66333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   6443.934     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      310 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.993        20.432        .85417E-04    .46184E-04
   2  Index         2.5063        .69227        .62199E-02    .55201E-03
   3  Normalizat    .66342        .20403        .27994E-03   -.10401E-03
   4  Prefactor     1.3566        .24172        .24337E-03   -.17284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9929
  Index      = 2.50634
  Normalizat = 0.663419
  Prefactor  = 1.35662
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.934     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.993        18.956        .34167E-05   -1.4770    
   2  Index         2.5063        .64212        .12440E-02   -.52213    
   3  Normalizat    .66342        .20367        .11197E-04   -1.0536    
   4  Prefactor     1.3566        .24160        .97347E-05   -.81639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9099e-11
Minuit parameter uncertainties:
  1  18.9613
  2  0.644497
  3  0.203903
  4  0.241805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680344': 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) = 6443.93433871
delta logL = 0.0530430835288

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  2.199e+01  1.896e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.506e+00  6.445e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.357e+00  2.418e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  6.634e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 219.941 49.977
Photon Index (Free Index): 2.51 +/- 0.64
Photon Flux (Free Index): 5.73e-08 +/- 4.26e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.03e-05

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/680344/cmap_HighResolution_373593601_373852801_4FGL_J1439.7+4958_daily_bin518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.79e-08', energy_flux2='1.65e-05', photon_flux_error='2.93e-08', dlogl='5.30e-02', energy_flux='1.81e-05', photon_flux2='5.73e-08', job_status='DONE', time_completed='2021-09-10 04:11:16.992384', photon_index_error2='0.64', photon_index2='2.51', ts='5.41', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.68', time_epoch_completed='1631272276.99', return_code='0', job_id='680344', GAL2='1.36', EG2='0.66', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.26e-08', ts2='5.51', photon_index='2.30' WHERE bin_id='518' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 680344: <4FGL_J1439.7+4958_daily_bin518> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin518> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:56:11 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:56:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:56:12 2021
Terminated at Fri Sep 10 04:11:17 2021
Results reported at Fri Sep 10 04:11:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin518 219.941 49.9775 373593601 373852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1439.7+4958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   887.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

