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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin674
RA = 219.941, Dec = 49.9775
tmin = 414028801, tmax = 414288001
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='681834', job_status='RUN', time_executed='2021-09-10 04:01:23.847067', time_epoch_executed='1631271683.85' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681834/ft1_4FGL_J1439.7+4958_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681834/ft2_4FGL_J1439.7+4958_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681834/ft1_4FGL_J1439.7+4958_daily_bin674.fits outfile=/scratch/kocevski/681834/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin674.fits ra=219.941 dec=49.9775 rad=12.0 tmin=414028801.0 tmax=414288001.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.24
user 5.01
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681834/ft2_4FGL_J1439.7+4958_daily_bin674.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/681834/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/681834/ft1_filtered_4FGL_J1439.7+4958_daily_bin674.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.51
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681834/ft1_filtered_4FGL_J1439.7+4958_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/681834/ft2_4FGL_J1439.7+4958_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/681834/ltcube_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.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/681834/ft2_4FGL_J1439.7+4958_daily_bin674.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681834/ft1_filtered_4FGL_J1439.7+4958_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/681834/ft2_4FGL_J1439.7+4958_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/681834/ltcube_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.fits outfile=/scratch/kocevski/681834/expmap_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.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/681834/ltcube_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.fits
.....................!
real 193.08
user 187.70
sys 5.02

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/681834/ft1_filtered_4FGL_J1439.7+4958_daily_bin674.fits scfile=/scratch/kocevski/681834/ft2_4FGL_J1439.7+4958_daily_bin674.fits outfile=/scratch/kocevski/681834/cmap_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681834/ft1_filtered_4FGL_J1439.7+4958_daily_bin674.fits scfile=/scratch/kocevski/681834/ft2_4FGL_J1439.7+4958_daily_bin674.fits outfile=/scratch/kocevski/681834/cmap_HighResolution_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681834/ft1_filtered_4FGL_J1439.7+4958_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/681834/ft2_4FGL_J1439.7+4958_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681834/Model_4FGL_J1439.7+4958_daily_bin674.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/681834/ft1_filtered_4FGL_J1439.7+4958_daily_bin674.fits.....................!
real 39.79
user 38.43
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13387E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.960       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.926       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.195       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.141       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8481       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.2530       1.0000         .10000E-03   10000.    
    24 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19998E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.2430       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    17.775       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .71552       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0132       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=   4239.960     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4621 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    45.836       -.11529E-04** at limit **
   2  Prefactor     75.955        43.153        .10094E-06    .21838E-04
   3  norm          1.0083        2.9251       -.88663E-06    .26905E-03
   4  Prefactor     .10000E-03    26.935       -.11929E-06** at limit **
   5  Prefactor     .10000E-03    81.825       -.29341E-05** at limit **
   6  norm          10.926        2.6270        .89048E-08    .18316E-03
   7  norm          .10000E-03    26.962       -.14690E-06** at limit **
   8  norm          .10000E-03    1.0898        .13475E-07** at limit **
   9  Prefactor     .10000E-03    174.66        .28374E-05** at limit **
  10  Prefactor     .10000E-03    18.189        .19275E-06** at limit **
  11  Prefactor     38.208        35.217        .53529E-06    .70701E-04
  12  Prefactor     1.1075        3.2720       -.16733E-05   -.32033E-03
  13  Prefactor     42.153        25.643        .77640E-06    .19877E-03
  14  Prefactor     6.5585        3.1544        .85884E-08    .27111E-03
  15  Prefactor     .10000E-03    20.603        .31103E-07** at limit **
  16  Prefactor     .10000E-03    10.322       -.20426E-07** at limit **
  17  Prefactor     .10000E-03    9.2281        .36680E-07** at limit **
  18  Prefactor     .10000E-03    59.148        .14648E-05** at limit **
  19  Prefactor     .10000E-03    22.628       -.25350E-06** at limit **
  20  Prefactor     .10000E-03    17.155        .85602E-07** at limit **
  21  Prefactor     .10000E-03    19.586        .14517E-06** at limit **
  22  Prefactor     6.8466        13.876        .15284E-06   -.16120E-05
  23  Prefactor     9.2537        9.6555       -.17145E-06   -.17964E-03
  24  norm          .10000E-03    .76290       -.44368E-08** at limit **
  25  Prefactor     .10000E-03    5.4923        .41495E-07** at limit **
  26  Prefactor     .10002E-03    7.2300       -.34426E-05** at limit **
  27  Prefactor     .10000E-03    14.050       -.28821E-06** at limit **
  28  norm          2.2437        3.9437       -.78873E-07    .59391E-04
  29  Prefactor     .10000E-03    17.408        .86054E-08** at limit **
  30  Prefactor     .10000E-03    19.830        .24819E-07** at limit **
  31  Prefactor     17.774        16.777        .30460E-08   -.17212E-03
  32  Normalizat    .71579        .18903        .80245E-06    .24959E-03
  33  Prefactor     1.0129        .21856       -.11360E-05    .68996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100076
  Prefactor  = 75.9554
  norm       = 1.00831
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.926
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2078
  Prefactor  = 1.10752
  Prefactor  = 42.1526
  Prefactor  = 6.55853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.8466
  Prefactor  = 9.25373
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 2.24371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7739
  Normalizat = 0.715786
  Prefactor  = 1.01294
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.960     FROM HESSE     STATUS=OK           687 CALLS     5308 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    59.423        .36967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     75.955        43.139        .46072E-04   -1.3963    
   3  norm          1.0083        2.7066        .17269E-03   -1.5507    
   4  Prefactor     .10000E-03    27.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    82.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.926        2.6292        .49512E-04   -1.5047    
   7  norm          .10000E-03    26.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0921        .66374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    175.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.208        35.273        .64852E-04   -1.4471    
  12  Prefactor     1.1075        3.2042        .21471E-02   -1.5497    
  13  Prefactor     42.153        25.813        .61752E-04   -1.4409    
  14  Prefactor     6.5585        3.1583        .76398E-04   -1.5196    
  15  Prefactor     .10000E-03    20.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8466        13.838        .15332E-03   -1.5185    
  23  Prefactor     9.2537        9.6014        .13175E-03   -1.5099    
  24  norm          .10000E-03    1.2226        .11020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.5150        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10002E-03    12.494        .29088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.2437        3.8968        .15444E-03   -1.5408    
  29  Prefactor     .10000E-03    17.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    19.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     17.774        16.628        .94997E-04   -1.4865    
  32  Normalizat    .71579        .22286        .24271E-03   -1.0327    
  33  Prefactor     1.0129        .25737        .24550E-03   -.92299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58953e-09
Minuit parameter uncertainties:
  1  0.00426511
  2  43.1568
  3  2.70695
  4  3.32018e-05
  5  0.000538864
  6  2.62928
  7  3.39149e-06
  8  2.43958e-06
  9  0.000211835
  10  1.37988e-05
  11  35.2922
  12  3.2047
  13  25.8201
  14  3.15836
  15  6.92465e-06
  16  9.34729e-06
  17  5.73162e-06
  18  4.99295e-05
  19  7.19806e-06
  20  1.13057e-05
  21  5.8844e-06
  22  13.8444
  23  9.60303
  24  2.52069e-06
  25  1.66131e-05
  26  0.00106747
  27  0.000164537
  28  3.89728
  29  2.90019e-05
  30  1.40688e-05
  31  16.6326
  32  0.223145
  33  0.257685
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  6.847e+00  1.384e+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.013e+00  2.577e-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:  7.158e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/681834/likelihoodResults_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.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) = 4239.91900538
delta logL = 0.0412920612425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4239.911155
delta logL = 0.0491424438778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8266       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8858       1.0000          .0000       10.000    
     3 'Normalizat'    .72249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0071       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=   4239.911     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      205 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8266        1099.4        .33728E-02    .65576E-04
   2  Index         1.8858        6.9108        .26491        .61742E-04
   3  Normalizat    .72249        .87065E-01    .42590E-01    .24958E-04
   4  Prefactor     1.0070        .83290E-01    .43797E-01   -.64173E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82662
  Index      = 1.8858
  Normalizat = 0.72249
  Prefactor  = 1.00705
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.911     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8266        16.565        .13491E-03   -1.5114    
   2  Index         1.8858        1.1793        .13565E-01   -.67237    
   3  Normalizat    .72249        .21361        .24170E-03   -1.0301    
   4  Prefactor     1.0070        .25472        .24611E-03   -.92495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17529e-10
Minuit parameter uncertainties:
  1  16.5735
  2  1.19793
  3  0.213854
  4  0.255022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681834': 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) = 4239.911155
delta logL = 0.0491424440625

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  8.827e+00  1.657e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.886e+00  1.198e+00  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.007e+00  2.550e-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:  7.225e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/681834/cmap_HighResolution_414028801_414288001_4FGL_J1439.7+4958_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-10 04:14:50.690033', job_id='681834', GAL2='1.01', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1631272490.69', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.91e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='674' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:14:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 681834: <4FGL_J1439.7+4958_daily_bin674> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin674> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 04:01:06 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 04:01:08 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:01:08 2021
Terminated at Fri Sep 10 04:14:51 2021
Results reported at Fri Sep 10 04:14:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin674 219.941 49.9775 414028801 414288001 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 :                                   802.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

