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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin1153
RA = 219.941, Dec = 49.9775
tmin = 538185601, tmax = 538444801
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='684891', job_status='RUN', time_executed='2021-09-10 04:14:20.480733', time_epoch_executed='1631272460.48' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684891/ft1_4FGL_J1439.7+4958_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684891/ft2_4FGL_J1439.7+4958_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684891/ft1_4FGL_J1439.7+4958_daily_bin1153.fits outfile=/scratch/kocevski/684891/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1153.fits ra=219.941 dec=49.9775 rad=12.0 tmin=538185601.0 tmax=538444801.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.32
user 5.06
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684891/ft1_filtered_4FGL_J1439.7+4958_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/684891/ft2_4FGL_J1439.7+4958_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/684891/ltcube_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.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/684891/ft2_4FGL_J1439.7+4958_daily_bin1153.fits
.....................!
real 12.16
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684891/ft1_filtered_4FGL_J1439.7+4958_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/684891/ft2_4FGL_J1439.7+4958_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/684891/ltcube_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.fits outfile=/scratch/kocevski/684891/expmap_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.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/684891/ltcube_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.fits
.....................!
real 191.42
user 185.71
sys 5.34

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/684891/ft1_filtered_4FGL_J1439.7+4958_daily_bin1153.fits scfile=/scratch/kocevski/684891/ft2_4FGL_J1439.7+4958_daily_bin1153.fits outfile=/scratch/kocevski/684891/cmap_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684891/ft1_filtered_4FGL_J1439.7+4958_daily_bin1153.fits scfile=/scratch/kocevski/684891/ft2_4FGL_J1439.7+4958_daily_bin1153.fits outfile=/scratch/kocevski/684891/cmap_HighResolution_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684891/ft1_filtered_4FGL_J1439.7+4958_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/684891/ft2_4FGL_J1439.7+4958_daily_bin1153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684891/Model_4FGL_J1439.7+4958_daily_bin1153.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/684891/ft1_filtered_4FGL_J1439.7+4958_daily_bin1153.fits.....................!
real 24.02
user 22.64
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    28.949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63025E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    143.51       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7259       1.0000         .10000E-03   10000.    
     7 'norm      '    104.60       1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66216E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11958E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    81.089       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8549       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    109.24       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.171       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.093       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0210       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.289       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.439       1.0000         .10000E-03   10000.    
    28 'norm      '    .12085E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.7746       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .30975       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.5063       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=   1811.173     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     5430 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.855       -.33609E-06** at limit **
   2  Prefactor     .10000E-03    19.736        .73028E-07** at limit **
   3  norm          28.941        11.679       -.29773E-07    .11972E-03
   4  Prefactor     .10000E-03    913.06       -.16483E-04** at limit **
   5  Prefactor     143.45        98.975       -.16034E-05    .16011E-04
   6  norm          4.7244        3.6631        .39171E-06    .11455E-03
   7  norm          104.62        147.75        .11078E-06    .10093E-04
   8  norm          .10000E-03    7.3675       -.26203E-06** at limit **
   9  Prefactor     .10000E-03    705.44       -.67690E-06** at limit **
  10  Prefactor     .10000E-03    278.86        .18105E-05** at limit **
  11  Prefactor     .10000E-03    67.153       -.11483E-05** at limit **
  12  Prefactor     .10000E-03    14.844       -.11990E-05** at limit **
  13  Prefactor     81.055        72.400        .28091E-05    .19635E-04
  14  Prefactor     5.8603        6.4057        .58137E-06    .90761E-04
  15  Prefactor     .10000E-03    105.33        .90026E-06** at limit **
  16  Prefactor     .10000E-03    40.466       -.79370E-06** at limit **
  17  Prefactor     .10000E-03    66.483       -.11302E-05** at limit **
  18  Prefactor     109.15        192.86        .37618E-05    .48259E-06
  19  Prefactor     17.143        70.918        .54724E-05    .26479E-05
  20  Prefactor     17.052        119.95        .32782E-05    .21615E-05
  21  Prefactor     .10000E-03    58.614        .27689E-06** at limit **
  22  Prefactor     .10000E-03    18.620       -.43252E-06** at limit **
  23  Prefactor     .10000E-03    16.453       -.58349E-07** at limit **
  24  norm          2.0195        3.4291        .45133E-06    .11240E-03
  25  Prefactor     .10000E-03    9.6605        .34464E-07** at limit **
  26  Prefactor     16.284        14.245        .78562E-06    .53577E-07
  27  Prefactor     20.428        17.024        .18190E-05    .93408E-04
  28  norm          .10003E-03    7.6345        .20072E-05** at limit **
  29  Prefactor     .10000E-03    21.102        .17759E-06** at limit **
  30  Prefactor     .10000E-03    41.105        .18003E-07** at limit **
  31  Prefactor     7.7697        22.793        .36508E-05   -.94543E-04
  32  Normalizat    .31022        .39519       -.21891E-04   -.46704E-04
  33  Prefactor     1.5060        .42647        .67148E-05   -.81914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.9411
  Prefactor  = 0.000100004
  Prefactor  = 143.451
  norm       = 4.72437
  norm       = 104.624
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.0551
  Prefactor  = 5.86026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.146
  Prefactor  = 17.1428
  Prefactor  = 17.0524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01948
  Prefactor  = 0.0001
  Prefactor  = 16.2845
  Prefactor  = 20.428
  norm       = 0.000100025
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.76966
  Normalizat = 0.310223
  Prefactor  = 1.50604
 **********
 **   18 **HESSE 
 **********

 FCN=   1811.173     FROM HESSE     STATUS=OK           685 CALLS     6115 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          28.941        11.635        .74463E-04   -1.4632    
   4  Prefactor     .10000E-03    910.73        .18865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     143.45        97.229        .16816E-03   -1.3307    
   6  norm          4.7244        3.6671        .68446E-04   -1.5273    
   7  norm          104.62        147.81        .19658E-03   -1.3659    
   8  norm          .10000E-03    7.4509        .11259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    705.59        .21011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    280.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    67.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.911        .16003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     81.055        72.475        .44602E-04   -1.3905    
  14  Prefactor     5.8603        6.4010        .10663E-03   -1.5224    
  15  Prefactor     .10000E-03    105.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    66.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     109.15        193.25        .19241E-03   -1.3615    
  19  Prefactor     17.143        71.084        .96655E-04   -1.4880    
  20  Prefactor     17.052        120.97        .96876E-04   -1.4882    
  21  Prefactor     .10000E-03    58.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.625        .17939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.461        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0195        3.4156        .98206E-04   -1.5424    
  25  Prefactor     .10000E-03    9.6690        .12918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.284        14.249        .99237E-04   -1.4901    
  27  Prefactor     20.428        17.087        .88595E-04   -1.4804    
  28  norm          .10003E-03    15.597        .21188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    21.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    41.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.7697        22.145        .14381E-03   -1.5150    
  32  Normalizat    .31022        .40648        .39449E-03   -1.2223    
  33  Prefactor     1.5060        .44913        .22761E-03   -.77371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80515e-09
Minuit parameter uncertainties:
  1  2.45756e-05
  2  2.69816e-05
  3  11.6364
  4  0.00371847
  5  97.3381
  6  3.6673
  7  148.335
  8  7.26659e-05
  9  0.00190062
  10  0.00193659
  11  9.24115e-05
  12  7.07283e-06
  13  72.5544
  14  6.40173
  15  0.00033824
  16  5.84044e-05
  17  7.50917e-05
  18  194.385
  19  69.9592
  20  91.1006
  21  0.000207883
  22  1.21771e-05
  23  8.65953e-06
  24  3.41596
  25  1.46413e-06
  26  14.2516
  27  17.0913
  28  0.00125712
  29  0.000225716
  30  3.30792e-05
  31  22.1686
  32  0.410433
  33  0.450322
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  1.218e-05  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.506e+00  4.503e-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:  3.102e-01  4.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.941 49.977
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684891/likelihoodResults_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.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) = 1811.17345038
delta logL = -0.000240177322439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1811.17321157
delta logL = -1.36988160193e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7046       1.0000          .0000       10.000    
     3 'Normalizat'    .31016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5061       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=   1811.173     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10281E-03    10.838        .15142E-01** at limit **
   2  Index         2.6259        7.8316        .50000        .17040E-04
   3  Normalizat    .31022        .63550E-02    .39443E-03   -.28196E-04
   4  Prefactor     1.5060        .77054E-02    .22762E-03    .88156E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010281
  Index      = 2.62592
  Normalizat = 0.31022
  Prefactor  = 1.50604
 **********
 **   18 **HESSE 
 **********

 FCN=   1811.173     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10281E-03    126.84        .15552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6259        5.3687        .50000       -.49475    
   3  Normalizat    .31022        .21933E-01    .15777E-04   -1.2223    
   4  Prefactor     1.5060        .26594E-01    .91046E-05   -.77371    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12043e-09
Minuit parameter uncertainties:
  1  0.0378365
  2  360.211
  3  0.0219336
  4  0.0265941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684891': 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) = 1811.17321118
delta logL = -9.77031959337e-07

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.028e-04  3.784e-02  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.626e+00  3.602e+02  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.506e+00  2.659e-02  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:  3.102e-01  2.193e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/684891/cmap_HighResolution_538185601_538444801_4FGL_J1439.7+4958_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-10 04:24:35.703706', job_id='684891', GAL2='1.51', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1631273075.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='-9.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1153' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 684891: <4FGL_J1439.7+4958_daily_bin1153> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin1153> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 04:11:03 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:11:05 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:11:05 2021
Terminated at Fri Sep 10 04:24:36 2021
Results reported at Fri Sep 10 04:24:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin1153 219.941 49.9775 538185601 538444801 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 :                                   563.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             246.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

