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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin1012
RA = 199.877, Dec = -0.7613
tmin = 501638401, tmax = 501897601
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='475320', job_status='RUN', time_executed='2021-09-07 11:58:53.463729', time_epoch_executed='1631041133.46' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475320/ft1_4FGL_J1319.5-0045_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475320/ft1_4FGL_J1319.5-0045_daily_bin1012.fits outfile=/scratch/kocevski/475320/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin1012.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=501638401.0 tmax=501897601.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 3.55
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.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/475320/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/475320/ltcube_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.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/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits
.....................!
real 16.43
user 16.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/475320/ltcube_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.fits outfile=/scratch/kocevski/475320/expmap_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.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/475320/ltcube_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.fits
.....................!
real 193.01
user 186.71
sys 5.37

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1319.5-0045 @ 199.877 -0.7613

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits scfile=/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits outfile=/scratch/kocevski/475320/cmap_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.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.877 yref=-0.7613 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits scfile=/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits outfile=/scratch/kocevski/475320/cmap_HighResolution_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.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.877 yref=-0.7613 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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475320/Model_4FGL_J1319.5-0045_daily_bin1012.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/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits.....................!
real 55.91
user 54.38
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits', '/scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits', expMap='/scratch/kocevski/475320/expmap_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.fits', expCube='/scratch/kocevski/475320/ltcube_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/475320/Model_4FGL_J1319.5-0045_daily_bin1012.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1319.5-0045'

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.809e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.099e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/475320/ft1_filtered_4FGL_J1319.5-0045_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/475320/ft2_4FGL_J1319.5-0045_daily_bin1012.fits
Exposure map: /scratch/kocevski/475320/expmap_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.fits
Exposure cube: /scratch/kocevski/475320/ltcube_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/475320/Model_4FGL_J1319.5-0045_daily_bin1012.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) = 6757.4630036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.653       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12152E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    122.21       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    27.201       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.914       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.787       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7699       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.579       1.0000         .10000E-03   10000.    
    15 'norm      '    .63883       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.638       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.9702       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .55382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6757.391     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1891 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.651        11.186        .74856E-06   -.20781E-04
   2  norm          .10000E-03    .95972        .25854E-06** at limit **
   3  Prefactor     .10000E-03    6.9591        .51988E-07** at limit **
   4  Prefactor     .10000E-03    11.734       -.96429E-07** at limit **
   5  Prefactor     .10000E-03    19.738        .49477E-06** at limit **
   6  norm          122.18        46.707       -.11777E-04   -.24571E-05
   7  norm          1.1159        .30680        .47034E-07    .27866E-04
   8  Prefactor     .10000E-03    132.89        .31075E-05** at limit **
   9  norm          27.201        13.243        .28298E-06    .19288E-04
  10  norm          .10000E-03    4.2145        .37478E-06** at limit **
  11  Prefactor     16.913        16.631        .48952E-06   -.49255E-05
  12  Prefactor     16.789        14.463       -.15764E-05    .82152E-05
  13  Prefactor     4.7694        10.072       -.75292E-06   -.12915E-03
  14  Prefactor     18.580        12.172       -.92112E-06    .14527E-04
  15  norm          .63832        1.4075       -.63503E-06   -.15303E-02
  16  norm          .10000E-03    10.412       -.32035E-06** at limit **
  17  Prefactor     .10000E-03    1.0617        .65077E-07** at limit **
  18  Prefactor     .10000E-03    5.4944       -.45129E-07** at limit **
  19  Prefactor     23.640        14.626       -.20486E-05    .12971E-05
  20  Normalizat    1.9699        .24144        .14148E-05   -.39807E-04
  21  Prefactor     .55402        .16580        .31081E-06    .51962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6509
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 122.184
  norm       = 1.11588
  Prefactor  = 0.0001
  norm       = 27.2009
  norm       = 0.0001
  Prefactor  = 16.9133
  Prefactor  = 16.7888
  Prefactor  = 4.76944
  Prefactor  = 18.5804
  norm       = 0.638322
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.64
  Normalizat = 1.96991
  Prefactor  = 0.554019
 **********
 **   18 **HESSE 
 **********

 FCN=   6757.391     FROM HESSE     STATUS=OK           319 CALLS     2210 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.651        11.179        .11735E-03   -1.5025    
   2  norm          .10000E-03    .99675        .15711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          122.18        46.457        .18204E-03   -1.3493    
   7  norm          1.1159        .30638        .22667E-04   -1.5497    
   8  Prefactor     .10000E-03    133.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          27.201        13.238        .76813E-04   -1.4664    
  10  norm          .10000E-03    4.2217        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.913        16.615        .97386E-04   -1.4885    
  12  Prefactor     16.789        14.474        .97753E-04   -1.4888    
  13  Prefactor     4.7694        10.083        .18422E-03   -1.5271    
  14  Prefactor     18.580        12.156        .92921E-04   -1.4846    
  15  norm          .63832        1.3903        .13861E-03   -1.5548    
  16  norm          .10000E-03    10.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.0679        .82712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.640        14.635        .82389E-04   -1.4735    
  20  Normalizat    1.9699        .28166        .26785E-03   -.65307    
  21  Prefactor     .55402        .19112        .32666E-03   -1.0956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58269e-10
Minuit parameter uncertainties:
  1  11.1808
  2  2.67518e-06
  3  0.000112948
  4  2.2256e-05
  5  9.30365e-06
  6  46.4713
  7  0.306378
  8  0.000198097
  9  13.2398
  10  2.99048e-07
  11  16.6197
  12  14.4773
  13  10.0862
  14  12.1581
  15  1.39041
  16  6.2385e-08
  17  7.34657e-07
  18  2.488e-06
  19  14.6368
  20  0.281897
  21  0.191341
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.679e+01  1.448e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.099e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  5.540e-01  1.913e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.970e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.10
Ra Dec: 199.877 -0.761
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.78e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.07e-05

TS (Fixed Index): 3.10
Ra Dec: 199.877 -0.761
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/475320/likelihoodResults_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.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) = 6757.39015536
delta logL = 0.00104722983451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6757.389532
delta logL = 0.00167058847455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.184       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4487       1.0000          .0000       10.000    
     3 'Normalizat'    1.9679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+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=   6757.390     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      273 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.161        18.822        .99559E-04    .13623E-03
   2  Index         2.4453        .81007        .88669E-02    .56450E-04
   3  Normalizat    1.9682        .27465        .26793E-03    .60362E-04
   4  Prefactor     .55480        .19115        .32645E-03    .27547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1615
  Index      = 2.44534
  Normalizat = 1.96816
  Prefactor  = 0.554796
 **********
 **   18 **HESSE 
 **********

 FCN=   6757.390     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.161        17.735        .39824E-05   -1.4904    
   2  Index         2.4453        .76352        .35468E-03   -.53627    
   3  Normalizat    1.9682        .27464        .53587E-04   -.65351    
   4  Prefactor     .55480        .19120        .13058E-04   -1.0952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5281e-11
Minuit parameter uncertainties:
  1  17.7404
  2  0.767591
  3  0.274858
  4  0.191422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475320': 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) = 6757.38950624
delta logL = 0.00169634670965

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.616e+01  1.774e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.445e+00  7.676e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.099e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  5.548e-01  1.914e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.968e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 2.45 +/- 0.77
Photon Flux (Free Index): 3.93e-08 +/- 4.14e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/475320/cmap_HighResolution_501638401_501897601_4FGL_J1319.5-0045_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='3.78e-08', energy_flux2='1.21e-05', photon_flux_error='3.26e-08', dlogl='1.70e-03', energy_flux='1.24e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-07 12:09:17.921253', photon_index_error2='0.77', photon_index2='2.45', ts='3.10', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.11e-05', EG='1.97', time_epoch_completed='1631041757.92', return_code='0', job_id='475320', GAL2='0.55', EG2='1.97', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.14e-08', ts2='3.09', photon_index='2.40' WHERE bin_id='1012' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:09:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 475320: <4FGL_J1319.5-0045_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin1012> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 11:55:23 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:56:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 11:56:50 2021
Terminated at Tue Sep  7 12:09:18 2021
Results reported at Tue Sep  7 12:09:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin1012 199.877 -0.7613 501638401 501897601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1319.5-0045 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.32 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            835 sec.

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

