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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin566
RA = 199.877, Dec = -0.7613
tmin = 386035201, tmax = 386294401
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='471636', job_status='RUN', time_executed='2021-09-07 11:50:35.289003', time_epoch_executed='1631040635.29' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/471636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/471636/ft1_4FGL_J1319.5-0045_daily_bin566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/471636/ft2_4FGL_J1319.5-0045_daily_bin566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/471636/ft1_4FGL_J1319.5-0045_daily_bin566.fits outfile=/scratch/kocevski/471636/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin566.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=386035201.0 tmax=386294401.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 4.97
user 4.63
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/471636/ft2_4FGL_J1319.5-0045_daily_bin566.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/471636/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin566.fits evtable="EVENTS" outfile="/scratch/kocevski/471636/ft1_filtered_4FGL_J1319.5-0045_daily_bin566.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/471636/ft1_filtered_4FGL_J1319.5-0045_daily_bin566.fits" evtable="EVENTS" scfile=/scratch/kocevski/471636/ft2_4FGL_J1319.5-0045_daily_bin566.fits sctable="SC_DATA" outfile=/scratch/kocevski/471636/ltcube_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.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/471636/ft2_4FGL_J1319.5-0045_daily_bin566.fits
.....................!
real 13.63
user 13.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/471636/ft1_filtered_4FGL_J1319.5-0045_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/471636/ft2_4FGL_J1319.5-0045_daily_bin566.fits sctable="SC_DATA" expcube=/scratch/kocevski/471636/ltcube_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.fits outfile=/scratch/kocevski/471636/expmap_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.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/471636/ltcube_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.fits
.....................!
real 193.50
user 187.15
sys 5.61

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/471636/ft1_filtered_4FGL_J1319.5-0045_daily_bin566.fits scfile=/scratch/kocevski/471636/ft2_4FGL_J1319.5-0045_daily_bin566.fits outfile=/scratch/kocevski/471636/cmap_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/471636/ft1_filtered_4FGL_J1319.5-0045_daily_bin566.fits scfile=/scratch/kocevski/471636/ft2_4FGL_J1319.5-0045_daily_bin566.fits outfile=/scratch/kocevski/471636/cmap_HighResolution_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/471636/ft1_filtered_4FGL_J1319.5-0045_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/471636/ft2_4FGL_J1319.5-0045_daily_bin566.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/471636/Model_4FGL_J1319.5-0045_daily_bin566.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/471636/ft1_filtered_4FGL_J1319.5-0045_daily_bin566.fits.....................!
real 60.69
user 59.24
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.552       1.0000         .10000E-03   10000.    
     2 'norm      '    8.9944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.583       1.0000         .10000E-03   10000.    
     6 'norm      '    13.887       1.0000         .10000E-03   10000.    
     7 'norm      '    .47771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.710       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.353       1.0000         .10000E-03   10000.    
    15 'norm      '    .95377       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8618       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4920       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1212       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=   7519.156     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2197 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.552        9.3468        .29467E-02    .39040E-04
   2  norm          8.9943        2.6427        .33411E-02    .43295E-05
   3  Prefactor     .10000E-03    2.9426        .90712E-02** at limit **
   4  Prefactor     .10000E-03    12.743        .90712E-02** at limit **
   5  Prefactor     44.584        46.628        .15011E-02   -.26443E-03
   6  norm          13.887        21.243        .26870E-02   -.85008E-04
   7  norm          .47764        .24732        .63276E-02    .91935E-03
   8  Prefactor     .10002E-03    23.945        .90712E-02** at limit **
   9  norm          23.709        15.339        .20566E-02    .37074E-03
  10  norm          .10000E-03    4.4609        .90712E-02** at limit **
  11  Prefactor     .10000E-03    9.5563        .90712E-02** at limit **
  12  Prefactor     23.892        23.918        .20487E-02    .26577E-03
  13  Prefactor     .10000E-03    3.4415        .90712E-02** at limit **
  14  Prefactor     11.353        9.8314        .29725E-02    .94801E-04
  15  norm          .95322        1.5653        .28155E-01    .12585E-02
  16  norm          .10001E-03    24.491        .90712E-02** at limit **
  17  Prefactor     .10000E-03    2.3857        .90712E-02** at limit **
  18  Prefactor     .10000E-03    5.8272        .90712E-02** at limit **
  19  Prefactor     4.8587        13.038        .45609E-02    .39583E-03
  20  Normalizat    1.4920        .24242        .72275E-01    .14648E-04
  21  Prefactor     1.1213        .17175        .59063E-01    .16573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5518
  norm       = 8.99428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5836
  norm       = 13.8875
  norm       = 0.477644
  Prefactor  = 0.000100016
  norm       = 23.7092
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8921
  Prefactor  = 0.0001
  Prefactor  = 11.3528
  norm       = 0.953218
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.85871
  Normalizat = 1.49197
  Prefactor  = 1.12128
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.156     FROM HESSE     STATUS=OK           313 CALLS     2510 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.552        9.3456        .11787E-03   -1.5028    
   2  norm          8.9943        2.6432        .73944E-04   -1.5108    
   3  Prefactor     .10000E-03    2.9490        .14524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.584        46.649        .60044E-04   -1.4372    
   6  norm          13.887        21.237        .10748E-03   -1.4962    
   7  norm          .47764        .24290        .28404E-04   -1.5570    
   8  Prefactor     .10002E-03    23.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.709        15.312        .82264E-04   -1.4734    
  10  norm          .10000E-03    4.4662        .17886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.892        24.030        .81950E-04   -1.4730    
  13  Prefactor     .10000E-03    3.4510        .15710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.353        9.8283        .11890E-03   -1.5034    
  15  norm          .95322        1.4331        .12970E-02   -1.5513    
  16  norm          .10001E-03    24.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4054        .13076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.8301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8587        13.030        .18243E-03   -1.5267    
  20  Normalizat    1.4920        .29448        .31979E-03   -.78004    
  21  Prefactor     1.1213        .20858        .26120E-03   -.88789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2497e-09
Minuit parameter uncertainties:
  1  9.34677
  2  2.64326
  3  1.31304e-07
  4  5.81203e-05
  5  46.6875
  6  21.2481
  7  0.2429
  8  0.00122605
  9  15.3148
  10  2.25175e-06
  11  2.03805e-05
  12  24.0394
  13  2.48928e-06
  14  9.82971
  15  1.43319
  16  0.00121194
  17  1.93507e-06
  18  6.29931e-06
  19  13.0374
  20  0.29482
  21  0.208734
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  2.389e+01  2.404e+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:  1.121e+00  2.087e-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.492e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 199.877 -0.761
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 5.41e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.77e-05

TS (Fixed Index): 1.50
Ra Dec: 199.877 -0.761
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/471636/likelihoodResults_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.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) = 7517.59854767
delta logL = 1.55793109663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7517.56131527
delta logL = 1.59516349597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4696       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9769       1.0000          .0000       10.000    
     3 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1939       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=   7517.561     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      305 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4717        48.421        .82339E-04    .15216E-02
   2  Index         3.9770        3.3151        .38357E-02    .30906E-03
   3  Normalizat    1.3474        .27341        .33311E-03   -.37096E-03
   4  Prefactor     1.1939        .19764        .25417E-03   -.44298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47174
  Index      = 3.97704
  Normalizat = 1.34739
  Prefactor  = 1.19389
 **********
 **   18 **HESSE 
 **********

 FCN=   7517.561     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4717        8.9289        .32936E-05   -1.5335    
   2  Index         3.9770        1.2391        .15343E-03   -.20605    
   3  Normalizat    1.3474        .30051        .66623E-04   -.82163    
   4  Prefactor     1.1939        .21316        .50835E-04   -.86520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21364e-10
Minuit parameter uncertainties:
  1  8.93231
  2  1.25278
  3  0.300903
  4  0.213317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/471636': 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) = 7517.56131366
delta logL = 1.59516510725

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  3.472e+00  8.932e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.977e+00  1.253e+00  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:  1.194e+00  2.133e-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.347e+00  3.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 3.98 +/- 1.25
Photon Flux (Free Index): 1.61e-07 +/- 8.98e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.39e-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/471636/cmap_HighResolution_386035201_386294401_4FGL_J1319.5-0045_daily_bin566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='2.42e-05', photon_flux_error='5.41e-08', dlogl='1.60e+00', energy_flux='1.76e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-07 12:01:51.669294', photon_index_error2='1.25', photon_index2='3.98', ts='1.50', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.39e-05', EG='1.49', time_epoch_completed='1631041311.67', return_code='0', job_id='471636', GAL2='1.19', EG2='1.35', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='8.98e-08', ts2='5.03', photon_index='2.40' WHERE bin_id='566' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 471636: <4FGL_J1319.5-0045_daily_bin566> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin566> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 11:45:48 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:46:47 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:46:47 2021
Terminated at Tue Sep  7 12:01:52 2021
Results reported at Tue Sep  7 12:01:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin566 199.877 -0.7613 386035201 386294401 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 :                                   675.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            964 sec.

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

