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


Performing analysis on: 4FGL_J1319.8+7759_daily_bin717
RA = 199.966, Dec = 77.9882
tmin = 425174401, tmax = 425433601
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='482038', job_status='RUN', time_executed='2021-09-07 12:15:57.180324', time_epoch_executed='1631042157.18' WHERE source_name='4FGL J1319.8+7759' and cadence='daily' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482038/ft1_4FGL_J1319.8+7759_daily_bin717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482038/ft1_4FGL_J1319.8+7759_daily_bin717.fits outfile=/scratch/kocevski/482038/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin717.fits ra=199.966 dec=77.9882 rad=12.0 tmin=425174401.0 tmax=425433601.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.31
user 5.00
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.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/482038/ft1_filteredMKT_4FGL_J1319.8+7759_daily_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/482038/ltcube_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.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/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits
.....................!
real 15.00
user 14.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/482038/ltcube_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.fits outfile=/scratch/kocevski/482038/expmap_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.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/482038/ltcube_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.fits
.....................!
real 194.92
user 188.53
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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1319.8+7759 @ 199.966 77.9882

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits scfile=/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits outfile=/scratch/kocevski/482038/cmap_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.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=199.966 yref=77.9882 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits scfile=/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits outfile=/scratch/kocevski/482038/cmap_HighResolution_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.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=199.966 yref=77.9882 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482038/Model_4FGL_J1319.8+7759_daily_bin717.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/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits.....................!
real 77.04
user 75.57
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits', '/scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits', expMap='/scratch/kocevski/482038/expmap_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.fits', expCube='/scratch/kocevski/482038/ltcube_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482038/Model_4FGL_J1319.8+7759_daily_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1319.8+7759'

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  8.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/482038/ft1_filtered_4FGL_J1319.8+7759_daily_bin717.fits
Spacecraft file(s): /scratch/kocevski/482038/ft2_4FGL_J1319.8+7759_daily_bin717.fits
Exposure map: /scratch/kocevski/482038/expmap_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.fits
Exposure cube: /scratch/kocevski/482038/ltcube_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482038/Model_4FGL_J1319.8+7759_daily_bin717.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) = 6464.53196252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11271E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.435       1.0000         .10000E-03   10000.    
     5 'Prefactor '    72.307       1.0000         .10000E-03   10000.    
     6 'norm      '    .29035E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4678       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0752       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5555       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    202.87       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4969       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    168.56       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.437       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0831       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28339E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.4455       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.9419       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6464.530     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4122 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3646       -.42915E-07** at limit **
   2  Prefactor     .10000E-03    17.986       -.21328E-05** at limit **
   3  Prefactor     .10000E-03    10.500        .38314E-05** at limit **
   4  Prefactor     17.434        29.584        .12548E-04   -.80410E-05
   5  Prefactor     72.243        82.709       -.59333E-04   -.14840E-03
   6  norm          .10119E-03    2.7501       -.64397E-06** at limit **
   7  Prefactor     2.4743        7.6895        .19874E-04    .14042E-04
   8  norm          2.0752        1.1407       -.38057E-06   -.53103E-03
   9  Prefactor     9.7040        8.9405        .39485E-05    .54564E-03
  10  Prefactor     .10000E-03    9.8572       -.12287E-05** at limit **
  11  Prefactor     2.5555        3.1549       -.71801E-07   -.56505E-04
  12  Prefactor     .30489        9.5681       -.31876E-05    .16786E-03
  13  Prefactor     202.88        93.994        .40249E-05    .78937E-04
  14  norm          3.4965        4.3385       -.15906E-06   -.19762E-03
  15  norm          4.9597        3.6719        .49726E-07    .86937E-03
  16  Prefactor     168.55        94.082       -.91667E-05    .20234E-04
  17  Prefactor     39.438        31.640        .46466E-07    .53346E-04
  18  Prefactor     .10000E-03    10.913       -.28967E-05** at limit **
  19  Prefactor     8.0818        32.675        .93803E-06    .13577E-04
  20  Prefactor     .10000E-03    11.887       -.11204E-05** at limit **
  21  Prefactor     .10025E-03    7.5370       -.76018E-06** at limit **
  22  Prefactor     .10000E-03    17.672       -.12742E-05** at limit **
  23  Prefactor     .10000E-03    27.075        .16154E-04** at limit **
  24  Prefactor     .10000E-03    45.848       -.18153E-04** at limit **
  25  Prefactor     9.4396        30.599       -.40787E-05    .20602E-05
  26  Prefactor     .10000E-03    23.267       -.89370E-05** at limit **
  27  norm          9.9414        11.055       -.93263E-07    .19710E-04
  28  Prefactor     .10000E-03    1.0289       -.91342E-08** at limit **
  29  Prefactor     .10000E-03    17.504        .41832E-05** at limit **
  30  Normalizat    1.0752        .17443        .13183E-05    .49036E-03
  31  Prefactor     .91148        .12520        .77253E-08    .56050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 17.4338
  Prefactor  = 72.2428
  norm       = 0.000101192
  Prefactor  = 2.47434
  norm       = 2.07515
  Prefactor  = 9.70405
  Prefactor  = 0.0001
  Prefactor  = 2.55555
  Prefactor  = 0.304885
  Prefactor  = 202.876
  norm       = 3.49645
  norm       = 4.95975
  Prefactor  = 168.545
  Prefactor  = 39.4377
  Prefactor  = 0.0001
  Prefactor  = 8.08179
  Prefactor  = 0.0001
  Prefactor  = 0.000100248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.43961
  Prefactor  = 0.0001
  norm       = 9.94135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07523
  Prefactor  = 0.911483
 **********
 **   18 **HESSE 
 **********

 FCN=   6464.530     FROM HESSE     STATUS=OK           628 CALLS     4750 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.434        29.428        .95921E-04   -1.4873    
   5  Prefactor     72.243        81.506        .47212E-04   -1.4006    
   6  norm          .10119E-03    6.0625        .41178E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4743        7.4714        .26031E-03   -1.5393    
   8  norm          2.0752        1.1282        .54667E-04   -1.5420    
   9  Prefactor     9.7040        9.0771        .12874E-03   -1.5085    
  10  Prefactor     .10000E-03    9.9983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5555        3.1489        .15457E-03   -1.5388    
  12  Prefactor     .30489        93.074        .42937E-02   -1.5598    
  13  Prefactor     202.88        94.150        .14186E-03   -1.2850    
  14  norm          3.4965        4.3324        .18084E-03   -1.5334    
  15  norm          4.9597        3.7219        .12056E-03   -1.5263    
  16  Prefactor     168.55        94.351        .15536E-03   -1.3104    
  17  Prefactor     39.438        31.640        .63826E-04   -1.4451    
  18  Prefactor     .10000E-03    11.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0818        32.526        .14102E-03   -1.5139    
  20  Prefactor     .10000E-03    11.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10025E-03    126.88        .41075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.4396        30.607        .13040E-03   -1.5093    
  26  Prefactor     .10000E-03    23.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.9414        11.054        .12708E-03   -1.5077    
  28  Prefactor     .10000E-03    1.0334        .79637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0752        .19106        .26078E-03   -.90551    
  31  Prefactor     .91148        .14069        .21456E-03   -.95741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51985e-09
Minuit parameter uncertainties:
  1  1.57298e-05
  2  0.00035671
  3  8.48629e-05
  4  29.4523
  5  81.6321
  6  0.00537669
  7  7.4742
  8  1.12826
  9  9.07838
  10  3.06873e-05
  11  3.14907
  12  10.669
  13  94.2202
  14  4.3328
  15  3.72207
  16  94.4359
  17  31.6539
  18  2.36265e-07
  19  32.4572
  20  3.49186e-05
  21  0.0112499
  22  3.59195e-06
  23  7.04897e-07
  24  3.07892e-05
  25  30.6575
  26  1.10629e-06
  27  11.0568
  28  6.84441e-07
  29  4.80836e-06
  30  0.191185
  31  0.140748
Done.

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

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  3.944e+01  3.165e+01  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  2.047e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  9.115e-01  1.407e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.075e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.82
Ra Dec: 199.966 77.988
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.06e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.02e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.85106308
delta logL = 0.678950803449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.74945176
delta logL = 0.780562122785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.347       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3691       1.0000          .0000       10.000    
     3 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90821       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+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=   6463.749     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      248 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.393        47.337        .26261E-03   -.68833E-05
   2  Index         1.3694        .49178        .96609E-02   -.10746E-04
   3  Normalizat    1.0855        .18118        .25968E-03   -.14412E-03
   4  Prefactor     .90823        .13920        .21488E-03    .57721E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.3934
  Index      = 1.36936
  Normalizat = 1.08548
  Prefactor  = 0.908225
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.749     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.393        47.478        .10504E-04   -1.4178    
   2  Index         1.3694        .49330        .38644E-03   -.81267    
   3  Normalizat    1.0855        .18129        .10387E-04   -.90219    
   4  Prefactor     .90823        .13929        .85953E-05   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20063e-10
Minuit parameter uncertainties:
  1  47.5087
  2  0.495013
  3  0.181396
  4  0.139341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482038': 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) = 6463.7494512
delta logL = 0.780562685555

Extracting fit parameters...

4FGL J1319.8+7759
   Spectrum: PowerLaw
383    Prefactor:  5.839e+01  4.751e+01  1.000e-04  1.000e+04 ( 1.000e-14)
384        Index:  1.369e+00  4.950e-01  0.000e+00  1.000e+01 (-1.000e+00)
385        Scale:  2.178e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  9.082e-01  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.085e+00  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.39
Ra Dec: 199.966 77.988
Photon Index (Free Index): 1.37 +/- 0.50
Photon Flux (Free Index): 9.91e-09 +/- 9.82e-09
Energy Flux (Free Index): 4.85e-05 +/- 6.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/482038/cmap_HighResolution_425174401_425433601_4FGL_J1319.8+7759_daily_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.06e-08', energy_flux2='4.85e-05', photon_flux_error='1.66e-08', dlogl='7.81e-01', energy_flux='1.28e-05', photon_flux2='9.91e-09', job_status='DONE', time_completed='2021-09-07 12:31:44.884346', photon_index_error2='0.50', photon_index2='1.37', ts='6.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.43e-05', EG='1.08', time_epoch_completed='1631043104.88', return_code='0', job_id='482038', GAL2='0.91', EG2='1.09', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='9.82e-09', ts2='8.39', photon_index='2.05' WHERE bin_id='717' AND source_name='4FGL J1319.8+7759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 482038: <4FGL_J1319.8+7759_daily_bin717> in cluster <slac> Done

Job <4FGL_J1319.8+7759_daily_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 12:15:21 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:15:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:15:41 2021
Terminated at Tue Sep  7 12:31:45 2021
Results reported at Tue Sep  7 12:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.8+7759_daily_bin717 199.966 77.9882 425174401 425433601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1319.8+7759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   945.41 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             353.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            984 sec.

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

