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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin1008
RA = 219.941, Dec = 49.9775
tmin = 500601601, tmax = 500860801
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='683559', job_status='RUN', time_executed='2021-09-10 04:06:29.823197', time_epoch_executed='1631271989.82' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683559/ft1_4FGL_J1439.7+4958_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683559/ft1_4FGL_J1439.7+4958_daily_bin1008.fits outfile=/scratch/kocevski/683559/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1008.fits ra=219.941 dec=49.9775 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.15
user 4.87
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.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/683559/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/683559/ltcube_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.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/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits
.....................!
real 12.03
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/683559/ltcube_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.fits outfile=/scratch/kocevski/683559/expmap_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.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/683559/ltcube_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.fits
.....................!
real 195.12
user 190.09
sys 4.66

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/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits scfile=/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits outfile=/scratch/kocevski/683559/cmap_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits scfile=/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits outfile=/scratch/kocevski/683559/cmap_HighResolution_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/683559/Model_4FGL_J1439.7+4958_daily_bin1008.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/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits.....................!
real 41.07
user 39.75
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits', '/scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits', expMap='/scratch/kocevski/683559/expmap_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.fits', expCube='/scratch/kocevski/683559/ltcube_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/683559/Model_4FGL_J1439.7+4958_daily_bin1008.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/683559/ft1_filtered_4FGL_J1439.7+4958_daily_bin1008.fits
Spacecraft file(s): /scratch/kocevski/683559/ft2_4FGL_J1439.7+4958_daily_bin1008.fits
Exposure map: /scratch/kocevski/683559/expmap_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.fits
Exposure cube: /scratch/kocevski/683559/ltcube_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/683559/Model_4FGL_J1439.7+4958_daily_bin1008.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) = 4680.84447664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14352E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.888       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.322       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.517       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5228       1.0000         .10000E-03   10000.    
     7 'norm      '    23.972       1.0000         .10000E-03   10000.    
     8 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    361.19       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.693       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5278       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5162       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.912       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4568       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.4374       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.936       1.0000         .10000E-03   10000.    
    28 'norm      '    .41841E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.359       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .85581       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0177       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.

 FCN=   4680.823     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     4603 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    21.975       -.28422E-05** at limit **
   2  Prefactor     54.885        48.973       -.29103E-06    .33676E-04
   3  norm          3.0365        3.9645        .19387E-05    .31945E-04
   4  Prefactor     58.336        61.332        .61298E-06    .10892E-03
   5  Prefactor     22.555        51.711        .62432E-06    .36495E-04
   6  norm          5.5231        2.3393        .20002E-06   -.17694E-03
   7  norm          24.035        92.117        .39123E-05    .88466E-04
   8  norm          .10000E-03    6.0127        .21037E-05** at limit **
   9  Prefactor     361.19        361.97        .11325E-06   -.72069E-08
  10  Prefactor     22.690        39.240       -.14077E-06   -.76790E-06
  11  Prefactor     .10000E-03    17.249        .31174E-07** at limit **
  12  Prefactor     3.5278        4.6510        .46778E-07   -.16753E-03
  13  Prefactor     .10000E-03    15.517       -.25833E-06** at limit **
  14  Prefactor     1.5172        2.9741        .38814E-06   -.14128E-03
  15  Prefactor     35.911        23.276        .24313E-06    .79424E-04
  16  Prefactor     .10000E-03    13.751        .36620E-08** at limit **
  17  Prefactor     .10000E-03    25.719       -.41286E-06** at limit **
  18  Prefactor     .10000E-03    18.430        .12817E-06** at limit **
  19  Prefactor     .10000E-03    19.638       -.10898E-06** at limit **
  20  Prefactor     1.4912        87.109        .48249E-05    .57323E-04
  21  Prefactor     .10000E-03    18.599        .80553E-07** at limit **
  22  Prefactor     8.4540        14.670        .45544E-06    .65628E-04
  23  Prefactor     .10000E-03    6.0883       -.16188E-06** at limit **
  24  norm          3.4374        1.7626        .50753E-08   -.11765E-03
  25  Prefactor     .10000E-03    6.5302        .73130E-07** at limit **
  26  Prefactor     .10000E-03    3.3067       -.25644E-07** at limit **
  27  Prefactor     14.938        9.0304        .17320E-06   -.22988E-04
  28  norm          .10008E-03    4.4065        .32860E-05** at limit **
  29  Prefactor     22.323        13.039       -.18068E-05   -.16779E-02
  30  Prefactor     .10000E-03    12.734        .35329E-06** at limit **
  31  Prefactor     .10000E-03    7.6017        .38749E-06** at limit **
  32  Normalizat    .85537        .20447       -.41365E-07   -.37991E-03
  33  Prefactor     1.0182        .22868       -.11739E-05   -.34817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100173
  Prefactor  = 54.8849
  norm       = 3.03649
  Prefactor  = 58.3364
  Prefactor  = 22.5548
  norm       = 5.52311
  norm       = 24.0349
  norm       = 0.0001
  Prefactor  = 361.188
  Prefactor  = 22.6899
  Prefactor  = 0.0001
  Prefactor  = 3.52775
  Prefactor  = 0.0001
  Prefactor  = 1.51725
  Prefactor  = 35.9106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49121
  Prefactor  = 0.0001
  Prefactor  = 8.45397
  Prefactor  = 0.0001
  norm       = 3.43738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9375
  norm       = 0.000100079
  Prefactor  = 22.323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.855368
  Prefactor  = 1.01819
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.823     FROM HESSE     STATUS=OK           695 CALLS     5298 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    30.748        .83005E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.885        49.018        .54142E-04   -1.4225    
   3  norm          3.0365        3.9683        .72021E-03   -1.5359    
   4  Prefactor     58.336        61.633        .52533E-04   -1.4179    
   5  Prefactor     22.555        51.786        .84413E-04   -1.4758    
   6  norm          5.5231        2.3358        .32154E-03   -1.5238    
   7  norm          24.035        92.310        .81814E-04   -1.4727    
   8  norm          .10000E-03    6.0166        .32045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     361.19        361.95        .21438E-04   -1.1884    
  10  Prefactor     22.690        39.129        .84083E-04   -1.4755    
  11  Prefactor     .10000E-03    17.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5278        4.6446        .16388E-03   -1.5332    
  13  Prefactor     .10000E-03    15.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5172        2.9361        .15095E-03   -1.5462    
  15  Prefactor     35.911        23.326        .66875E-04   -1.4509    
  16  Prefactor     .10000E-03    13.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4912        87.552        .34991E-03   -1.5464    
  21  Prefactor     .10000E-03    18.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.4540        14.672        .13785E-03   -1.5126    
  23  Prefactor     .10000E-03    6.1005        .16489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.4374        1.7628        .62872E-04   -1.5337    
  25  Prefactor     .10000E-03    6.5569        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3313        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.938        9.0410        .10363E-03   -1.4935    
  28  norm          .10008E-03    13.096        .22508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.323        12.602        .84708E-04   -1.4763    
  30  Prefactor     .10000E-03    12.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    7.6252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .85537        .24499        .24147E-03   -.98047    
  33  Prefactor     1.0182        .27287        .26190E-03   -.92126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19995e-09
Minuit parameter uncertainties:
  1  0.00461605
  2  49.0538
  3  3.96862
  4  61.7001
  5  51.8889
  6  2.33581
  7  92.8658
  8  6.04746e-05
  9  364.26
  10  39.1735
  11  5.64495e-05
  12  4.64506
  13  1.11015e-05
  14  2.93641
  15  23.3317
  16  9.56874e-05
  17  0.000159938
  18  4.35741e-05
  19  1.30143e-05
  20  22.8868
  21  4.33499e-05
  22  14.6784
  23  4.19273e-05
  24  1.76281
  25  1.39819e-05
  26  2.12928e-07
  27  9.04179
  28  0.00203605
  29  12.6037
  30  4.34835e-05
  31  5.25247e-06
  32  0.245305
  33  0.273239
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  8.454e+00  1.468e+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.018e+00  2.732e-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:  8.554e-01  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 219.941 49.977
Photon Flux Upper Limit: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/683559/likelihoodResults_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.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): 0
logL (Free Index) = 4680.78233881
delta logL = 0.0407460284396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4680.78088945
delta logL = 0.0421953872374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.283       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0411       1.0000          .0000       10.000    
     3 'Normalizat'    .85988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0134       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.

 FCN=   4680.781     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      252 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.342        788.76        .29817E-02   -.22374E-04
   2  Index         2.0445        5.6695        .25558        .41104E-04
   3  Normalizat    .85991        .59415E-01    .44387E-01   -.38760E-03
   4  Prefactor     1.0131        .68164E-01    .42871E-01   -.19322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3416
  Index      = 2.04447
  Normalizat = 0.859909
  Prefactor  = 1.0131
 **********
 **   18 **HESSE 
 **********

 FCN=   4680.781     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.342        19.560        .11927E-03   -1.5034    
   2  Index         2.0445        .83502        .92517E-02   -.63243    
   3  Normalizat    .85991        .22572        .24088E-03   -.97884    
   4  Prefactor     1.0131        .26733        .26245E-03   -.92294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75277e-10
Minuit parameter uncertainties:
  1  19.5709
  2  0.841103
  3  0.22597
  4  0.26768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683559': 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) = 4680.78086974
delta logL = 0.042215090778

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.134e+01  1.957e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.044e+00  8.411e-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.013e+00  2.677e-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:  8.599e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 219.941 49.977

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/683559/cmap_HighResolution_500601601_500860801_4FGL_J1439.7+4958_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.39e-08', time_completed='2021-09-10 04:20:53.540583', job_id='683559', GAL2='1.01', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631272853.54', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.22e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1008' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 683559: <4FGL_J1439.7+4958_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin1008> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 04:06:18 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:06:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 04:06:20 2021
Terminated at Fri Sep 10 04:20:54 2021
Results reported at Fri Sep 10 04:20:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin1008 219.941 49.9775 500601601 500860801 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 :                                   853.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            876 sec.

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

