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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin759
RA = 219.941, Dec = 49.9775
tmin = 436060801, tmax = 436320001
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='681968', job_status='RUN', time_executed='2021-09-10 04:01:32.321704', time_epoch_executed='1631271692.32' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681968/ft1_4FGL_J1439.7+4958_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681968/ft2_4FGL_J1439.7+4958_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681968/ft1_4FGL_J1439.7+4958_daily_bin759.fits outfile=/scratch/kocevski/681968/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin759.fits ra=219.941 dec=49.9775 rad=12.0 tmin=436060801.0 tmax=436320001.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.74
user 5.46
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681968/ft2_4FGL_J1439.7+4958_daily_bin759.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/681968/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/681968/ft1_filtered_4FGL_J1439.7+4958_daily_bin759.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.52
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681968/ft1_filtered_4FGL_J1439.7+4958_daily_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/681968/ft2_4FGL_J1439.7+4958_daily_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/681968/ltcube_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.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/681968/ft2_4FGL_J1439.7+4958_daily_bin759.fits
.....................!
real 12.16
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681968/ft1_filtered_4FGL_J1439.7+4958_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/681968/ft2_4FGL_J1439.7+4958_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/681968/ltcube_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.fits outfile=/scratch/kocevski/681968/expmap_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.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/681968/ltcube_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.fits
.....................!
real 191.65
user 186.06
sys 5.16

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/681968/ft1_filtered_4FGL_J1439.7+4958_daily_bin759.fits scfile=/scratch/kocevski/681968/ft2_4FGL_J1439.7+4958_daily_bin759.fits outfile=/scratch/kocevski/681968/cmap_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.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/681968/ft1_filtered_4FGL_J1439.7+4958_daily_bin759.fits scfile=/scratch/kocevski/681968/ft2_4FGL_J1439.7+4958_daily_bin759.fits outfile=/scratch/kocevski/681968/cmap_HighResolution_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681968/ft1_filtered_4FGL_J1439.7+4958_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/681968/ft2_4FGL_J1439.7+4958_daily_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681968/Model_4FGL_J1439.7+4958_daily_bin759.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/681968/ft1_filtered_4FGL_J1439.7+4958_daily_bin759.fits.....................!
real 41.40
user 39.97
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    28.376       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1660       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8359       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.274       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9655       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0674       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7529       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.817       1.0000         .10000E-03   10000.    
    21 'Prefactor '    101.13       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7752       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .62893E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.0426       1.0000         .10000E-03   10000.    
    28 'norm      '    11.065       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .77703       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1009       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=   4691.742     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     4687 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0938       -.10277E-06** at limit **
   2  Prefactor     28.371        46.755        .73306E-06    .56094E-05
   3  norm          .10000E-03    3.9266       -.87218E-07** at limit **
   4  Prefactor     .10000E-03    19.599       -.53652E-06** at limit **
   5  Prefactor     2.1482        107.92       -.12086E-05    .53310E-06
   6  norm          3.8358        1.9326        .14887E-07    .23647E-04
   7  norm          .10000E-03    31.810       -.36635E-05** at limit **
   8  norm          4.4959        4.4003       -.17159E-07    .21313E-04
   9  Prefactor     .10000E-03    340.43        .10205E-04** at limit **
  10  Prefactor     17.266        72.488        .13862E-05    .11073E-04
  11  Prefactor     .10000E-03    95.346       -.76246E-05** at limit **
  12  Prefactor     6.9677        7.0548        .20306E-06    .71403E-04
  13  Prefactor     .10000E-03    6.6279        .61041E-08** at limit **
  14  Prefactor     6.9291        5.7695        .50132E-06    .69088E-04
  15  Prefactor     2.0419        54.164        .95574E-05    .12189E-04
  16  Prefactor     9.8174        47.242        .71125E-06    .45056E-05
  17  Prefactor     9.7507        59.185       -.26752E-05   -.15636E-05
  18  Prefactor     .10000E-03    68.678        .59394E-05** at limit **
  19  Prefactor     .10000E-03    12.500        .13938E-06** at limit **
  20  Prefactor     49.820        52.002       -.89062E-06   -.32937E-05
  21  Prefactor     101.14        65.039       -.43865E-06   -.59312E-06
  22  Prefactor     3.7700        13.532        .22971E-05   -.12814E-04
  23  Prefactor     .10000E-03    27.279        .29158E-05** at limit **
  24  norm          .10000E-03    .67538       -.37907E-07** at limit **
  25  Prefactor     .10000E-03    4.3875        .51934E-07** at limit **
  26  Prefactor     .10000E-03    3.8376       -.72299E-06** at limit **
  27  Prefactor     6.0404        8.9101        .13458E-05    .23081E-04
  28  norm          11.066        5.0304       -.74781E-07    .13594E-03
  29  Prefactor     .10000E-03    9.5393       -.29850E-06** at limit **
  30  Prefactor     .10000E-03    9.2004        .52070E-06** at limit **
  31  Prefactor     .10000E-03    10.715        .21081E-06** at limit **
  32  Normalizat    .77710        .20009       -.13195E-05    .68882E-04
  33  Prefactor     1.1010        .21486        .31162E-06    .15201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.3708
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14819
  norm       = 3.83581
  norm       = 0.0001
  norm       = 4.49592
  Prefactor  = 0.0001
  Prefactor  = 17.2661
  Prefactor  = 0.0001
  Prefactor  = 6.96775
  Prefactor  = 0.0001
  Prefactor  = 6.92911
  Prefactor  = 2.04194
  Prefactor  = 9.81736
  Prefactor  = 9.75067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.8201
  Prefactor  = 101.14
  Prefactor  = 3.77001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.04042
  norm       = 11.0656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.777103
  Prefactor  = 1.10098
 **********
 **   18 **HESSE 
 **********

 FCN=   4691.742     FROM HESSE     STATUS=OK           693 CALLS     5380 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.371        46.766        .75209E-04   -1.4642    
   3  norm          .10000E-03    4.0532        .26490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1482        108.28        .27984E-03   -1.5415    
   6  norm          3.8358        1.9304        .64991E-04   -1.5316    
   7  norm          .10000E-03    31.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4959        4.3907        .13448E-03   -1.5284    
   9  Prefactor     .10000E-03    340.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.266        72.461        .96365E-04   -1.4877    
  11  Prefactor     .10000E-03    96.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9677        7.0485        .15201E-03   -1.5180    
  13  Prefactor     .10000E-03    6.6318        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9291        5.7375        .52036E-03   -1.5181    
  15  Prefactor     2.0419        54.409        .14367E-02   -1.5422    
  16  Prefactor     9.8174        46.480        .12774E-03   -1.5081    
  17  Prefactor     9.7507        58.327        .12832E-03   -1.5083    
  18  Prefactor     .10000E-03    68.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.820        51.810        .56817E-04   -1.4295    
  21  Prefactor     101.14        65.040        .39978E-04   -1.3693    
  22  Prefactor     3.7700        13.537        .10389E-02   -1.5320    
  23  Prefactor     .10000E-03    27.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .68567        .54933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3928        .14007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.962        .25308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.0404        8.9330        .81669E-03   -1.5216    
  28  norm          11.066        5.0027        .98477E-04   -1.5043    
  29  Prefactor     .10000E-03    9.6498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.2396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    10.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .77710        .24093        .25155E-03   -1.0092    
  33  Prefactor     1.1010        .26026        .24771E-03   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72088e-10
Minuit parameter uncertainties:
  1  1.13361e-06
  2  46.8268
  3  2.48132e-06
  4  2.20765e-06
  5  30.5604
  6  1.93039
  7  3.07077e-05
  8  4.39097
  9  0.000277252
  10  70.8894
  11  0.000148672
  12  7.04936
  13  9.15095e-07
  14  5.73793
  15  21.1016
  16  42.7769
  17  47.7656
  18  6.07491e-05
  19  8.46111e-07
  20  51.8571
  21  65.0856
  22  13.5479
  23  2.73885e-05
  24  7.23308e-07
  25  1.94999e-08
  26  0.000363777
  27  8.93499
  28  5.00288
  29  3.94764e-05
  30  5.23071e-06
  31  2.34916e-05
  32  0.241262
  33  0.260559
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  3.770e+00  1.355e+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.101e+00  2.606e-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.771e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/681968/likelihoodResults_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.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) = 4691.29412029
delta logL = 0.448308327452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4691.25803433
delta logL = 0.484394292755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1692       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9266       1.0000          .0000       10.000    
     3 'Normalizat'    .73140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1315       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=   4691.258     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1649        30.253        .10616E-01    .42422E-03
   2  Index         3.9283        3.6306        .11501        .10263E-03
   3  Normalizat    .73141        .47180E-01    .42708E-01   -.82984E-05
   4  Prefactor     1.1315        .54165E-01    .55324E-01   -.22912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16492
  Index      = 3.92826
  Normalizat = 0.73141
  Prefactor  = 1.13147
 **********
 **   18 **HESSE 
 **********

 FCN=   4691.258     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1649        70.637        .79141E-04   -1.5492    
   2  Index         3.9283        6.8913        .60233E-02   -.21602    
   3  Normalizat    .73141        .20821        .25843E-03   -1.0267    
   4  Prefactor     1.1315        .23830        .24462E-03   -.88467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.83035e-07
Minuit parameter uncertainties:
  1  18.164
  2  7.79818
  3  0.20844
  4  0.238525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681968': 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) = 4691.25803356
delta logL = 0.484395059593

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.165e+00  1.816e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  3.928e+00  7.798e+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.131e+00  2.385e-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.314e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 219.941 49.977
Photon Index (Free Index): 3.93 +/- 7.80
Photon Flux (Free Index): 4.63e-08 +/- 5.33e-08
Energy Flux (Free Index): 7.02e-06 +/- 1.05e-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/681968/cmap_HighResolution_436060801_436320001_4FGL_J1439.7+4958_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', energy_flux2='7.02e-06', dlogl='4.84e-01', photon_flux2='4.63e-08', job_status='DONE', time_completed='2021-09-10 04:15:45.935693', photon_index_error2='7.80', photon_index2='3.93', ts='0.09', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='8.28e-08', energy_flux_error2='1.05e-05', EG='0.78', time_epoch_completed='1631272545.94', return_code='0', job_id='681968', GAL2='1.13', EG2='0.73', return_code2='102', photon_flux_error2='5.33e-08', ts2='1.11', photon_index='2.30' WHERE bin_id='759' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 04:15:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 681968: <4FGL_J1439.7+4958_daily_bin759> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin759 219.941 49.9775 436060801 436320001 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 :                                   849.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

