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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin959
RA = 199.877, Dec = -0.7613
tmin = 487900801, tmax = 488160001
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='473386', job_status='RUN', time_executed='2021-09-07 11:57:12.701829', time_epoch_executed='1631041032.7' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473386/ft1_4FGL_J1319.5-0045_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473386/ft1_4FGL_J1319.5-0045_daily_bin959.fits outfile=/scratch/kocevski/473386/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin959.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.09
user 5.83
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.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/473386/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.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/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/473386/ltcube_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.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/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits
.....................!
real 13.89
user 13.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/473386/ltcube_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.fits outfile=/scratch/kocevski/473386/expmap_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.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/473386/ltcube_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.fits
.....................!
real 194.10
user 188.26
sys 5.27

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/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits scfile=/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits outfile=/scratch/kocevski/473386/cmap_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits scfile=/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits outfile=/scratch/kocevski/473386/cmap_HighResolution_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473386/Model_4FGL_J1319.5-0045_daily_bin959.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/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits.....................!
real 52.39
user 50.83
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits', '/scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits', expMap='/scratch/kocevski/473386/expmap_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.fits', expCube='/scratch/kocevski/473386/ltcube_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473386/Model_4FGL_J1319.5-0045_daily_bin959.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/473386/ft1_filtered_4FGL_J1319.5-0045_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/473386/ft2_4FGL_J1319.5-0045_daily_bin959.fits
Exposure map: /scratch/kocevski/473386/expmap_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.fits
Exposure cube: /scratch/kocevski/473386/ltcube_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473386/Model_4FGL_J1319.5-0045_daily_bin959.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) = 6316.99024034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    72.562       1.0000         .10000E-03   10000.    
     6 'norm      '    52.132       1.0000         .10000E-03   10000.    
     7 'norm      '    .76678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7542       1.0000         .10000E-03   10000.    
    10 'norm      '    .16178E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5827       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.479       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .69539       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25150E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.856       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6542       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .69167       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=   6316.950     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2251 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0627       -.26248E-06** at limit **
   2  norm          5.6477        2.7444       -.14003E-07    .27687E-03
   3  Prefactor     .10000E-03    9.8044       -.13012E-05** at limit **
   4  Prefactor     .10000E-03    20.300       -.72410E-06** at limit **
   5  Prefactor     72.564        55.851       -.38471E-06   -.11993E-04
   6  norm          52.135        35.830       -.14647E-06   -.12030E-04
   7  norm          .76660        .29833        .16717E-08    .13930E-02
   8  Prefactor     .10000E-03    31.449        .10787E-05** at limit **
   9  norm          2.7532        5.2686       -.26668E-05    .25150E-03
  10  norm          .10000E-03    61.261       -.31688E-04** at limit **
  11  Prefactor     4.5781        11.210       -.14869E-05    .37692E-03
  12  Prefactor     40.463        24.627       -.64514E-06    .24508E-03
  13  Prefactor     .10000E-03    8.9426       -.56148E-06** at limit **
  14  Prefactor     .69449        10.667       -.68254E-06    .16376E-03
  15  norm          .10000E-03    .59791       -.35118E-07** at limit **
  16  norm          .10000E-03    9.8426        .11528E-06** at limit **
  17  Prefactor     .10000E-03    2.5069       -.72268E-06** at limit **
  18  Prefactor     22.122        20.864       -.55237E-06    .17460E-03
  19  Prefactor     11.854        14.685        .27531E-07    .22291E-03
  20  Normalizat    1.6551        .23814       -.84654E-06    .96421E-03
  21  Prefactor     .69119        .15986        .31765E-05    .11256E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.64767
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 72.5636
  norm       = 52.1352
  norm       = 0.7666
  Prefactor  = 0.0001
  norm       = 2.75315
  norm       = 0.000100004
  Prefactor  = 4.57811
  Prefactor  = 40.463
  Prefactor  = 0.0001
  Prefactor  = 0.694486
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1218
  Prefactor  = 11.8542
  Normalizat = 1.65514
  Prefactor  = 0.691189
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.950     FROM HESSE     STATUS=OK           315 CALLS     2566 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6477        2.7456        .88939E-04   -1.5233    
   3  Prefactor     .10000E-03    9.9715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     72.564        55.985        .47130E-04   -1.4002    
   6  norm          52.135        35.801        .55547E-04   -1.4263    
   7  norm          .76660        .29913        .25112E-04   -1.5533    
   8  Prefactor     .10000E-03    31.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7532        5.2772        .12264E-02   -1.5376    
  10  norm          .10000E-03    59.476        .35849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5781        11.205        .94017E-03   -1.5280    
  12  Prefactor     40.463        24.708        .63003E-04   -1.4435    
  13  Prefactor     .10000E-03    8.9980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .69449        47.857        .45343E-02   -1.5541    
  15  norm          .10000E-03    .61852        .11982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.8489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6699        .24339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.122        20.896        .85138E-04   -1.4767    
  19  Prefactor     11.854        14.667        .11634E-03   -1.5019    
  20  Normalizat    1.6551        .28538        .26877E-03   -.73507    
  21  Prefactor     .69119        .18985        .27461E-03   -1.0387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63408e-09
Minuit parameter uncertainties:
  1  4.77223e-05
  2  2.74565
  3  0.00032378
  4  3.41098e-05
  5  56.0261
  6  35.816
  7  0.299132
  8  0.000234035
  9  5.27809
  10  0.00101548
  11  11.21
  12  24.714
  13  9.32243e-05
  14  11.5389
  15  3.21501e-06
  16  1.35056e-05
  17  8.76092e-05
  18  20.9032
  19  14.6715
  20  0.285659
  21  0.190027
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  4.046e+01  2.471e+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:  6.912e-01  1.900e-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.655e+00  2.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.77
Ra Dec: 199.877 -0.761
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 2.98e-05 +/- 1.82e-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) = 6316.88271319
delta logL = 0.0670358911675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6316.87962262
delta logL = 0.070126459701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.276       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2074       1.0000          .0000       10.000    
     3 'Normalizat'    1.6707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68297       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.

 FCN=   6316.880     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      270 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.226        648.51        .14428E-02    .22772E-05
   2  Index         2.2059        3.4707        .17845        .69492E-04
   3  Normalizat    1.6709        .12764        .60552E-01    .70309E-06
   4  Prefactor     .68307        .67156E-01    .62409E-01    .22601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.2261
  Index      = 2.20589
  Normalizat = 1.67087
  Prefactor  = 0.683068
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.880     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.226        35.350        .57713E-04   -1.4318    
   2  Index         2.2059        .51615        .62160E-02   -.59296    
   3  Normalizat    1.6709        .27162        .26777E-03   -.73084    
   4  Prefactor     .68307        .18752        .27608E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05965e-12
Minuit parameter uncertainties:
  1  35.3658
  2  0.517488
  3  0.271864
  4  0.187693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473386': 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) = 6316.87961089
delta logL = 0.070138188441

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  4.823e+01  3.537e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.206e+00  5.175e-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:  6.831e-01  1.877e-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.671e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 2.21 +/- 0.52
Photon Flux (Free Index): 7.91e-08 +/- 5.89e-08
Energy Flux (Free Index): 3.51e-05 +/- 2.87e-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/473386/cmap_HighResolution_487900801_488160001_4FGL_J1319.5-0045_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='3.51e-05', photon_flux_error='5.57e-08', dlogl='7.01e-02', energy_flux='2.98e-05', photon_flux2='7.91e-08', job_status='DONE', time_completed='2021-09-07 12:06:50.131849', photon_index_error2='0.52', photon_index2='2.21', ts='5.77', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.87e-05', EG='1.66', time_epoch_completed='1631041610.13', return_code='0', job_id='473386', GAL2='0.68', EG2='1.67', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='5.89e-08', ts2='5.88', photon_index='2.40' WHERE bin_id='959' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:06:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 473386: <4FGL_J1319.5-0045_daily_bin959> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin959> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep  7 11:50:55 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:53:09 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:53:09 2021
Terminated at Tue Sep  7 12:06:50 2021
Results reported at Tue Sep  7 12:06:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin959 199.877 -0.7613 487900801 488160001 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            955 sec.

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

