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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin937
RA = 199.877, Dec = -0.7613
tmin = 482198401, tmax = 482457601
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='473353', job_status='RUN', time_executed='2021-09-07 11:56:24.107001', time_epoch_executed='1631040984.11' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473353

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473353/ft1_4FGL_J1319.5-0045_daily_bin937.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473353/ft2_4FGL_J1319.5-0045_daily_bin937.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473353/ft1_4FGL_J1319.5-0045_daily_bin937.fits outfile=/scratch/kocevski/473353/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin937.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=482198401.0 tmax=482457601.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.76
user 3.48
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473353/ft1_filtered_4FGL_J1319.5-0045_daily_bin937.fits" evtable="EVENTS" scfile=/scratch/kocevski/473353/ft2_4FGL_J1319.5-0045_daily_bin937.fits sctable="SC_DATA" outfile=/scratch/kocevski/473353/ltcube_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.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/473353/ft2_4FGL_J1319.5-0045_daily_bin937.fits
.....................!
real 15.61
user 15.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473353/ft1_filtered_4FGL_J1319.5-0045_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/473353/ft2_4FGL_J1319.5-0045_daily_bin937.fits sctable="SC_DATA" expcube=/scratch/kocevski/473353/ltcube_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.fits outfile=/scratch/kocevski/473353/expmap_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.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/473353/ltcube_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.fits
.....................!
real 193.66
user 188.27
sys 4.70

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/473353/ft1_filtered_4FGL_J1319.5-0045_daily_bin937.fits scfile=/scratch/kocevski/473353/ft2_4FGL_J1319.5-0045_daily_bin937.fits outfile=/scratch/kocevski/473353/cmap_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473353/ft1_filtered_4FGL_J1319.5-0045_daily_bin937.fits scfile=/scratch/kocevski/473353/ft2_4FGL_J1319.5-0045_daily_bin937.fits outfile=/scratch/kocevski/473353/cmap_HighResolution_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.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.63
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21779E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2194       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.087       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5310       1.0000         .10000E-03   10000.    
    10 'norm      '    6.3403       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8926       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0548       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5312       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67213       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=   6600.531     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2330 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2842        .17918E-07** at limit **
   2  norm          2.1567        2.1932        .24966E-06   -.30849E-04
   3  Prefactor     .10000E-03    4.9748        .73710E-07** at limit **
   4  Prefactor     4.8765        31.499        .58196E-06   -.66892E-05
   5  Prefactor     .10004E-03    20.179        .14679E-07** at limit **
   6  norm          .10000E-03    11.424        .73064E-08** at limit **
   7  norm          1.2191        .28733       -.83593E-07   -.26662E-03
   8  Prefactor     24.170        73.952        .13742E-04    .15225E-03
   9  norm          1.5479        13.985        .16982E-05   -.86312E-04
  10  norm          6.3395        7.1465        .38040E-06   -.50676E-04
  11  Prefactor     .10000E-03    5.4378       -.15435E-06** at limit **
  12  Prefactor     .10000E-03    47.510        .36184E-06** at limit **
  13  Prefactor     .10000E-03    5.9992       -.57930E-08** at limit **
  14  Prefactor     5.8927        7.2663        .39506E-05   -.18252E-03
  15  norm          1.0544        1.4467        .10016E-06   -.14301E-03
  16  norm          .10000E-03    8.1436        .67830E-07** at limit **
  17  Prefactor     .10000E-03    4.0802       -.11059E-07** at limit **
  18  Prefactor     .10000E-03    14.725        .11298E-06** at limit **
  19  Prefactor     .10000E-03    7.1486       -.15680E-08** at limit **
  20  Normalizat    1.5311        .21089       -.15257E-05   -.14778E-04
  21  Prefactor     .67207        .14587       -.38159E-06   -.11060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.1567
  Prefactor  = 0.0001
  Prefactor  = 4.87649
  Prefactor  = 0.000100039
  norm       = 0.0001
  norm       = 1.21912
  Prefactor  = 24.1695
  norm       = 1.54786
  norm       = 6.33946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.89267
  norm       = 1.05445
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53114
  Prefactor  = 0.672073
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.531     FROM HESSE     STATUS=OK           317 CALLS     2647 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2850        .11992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1567        2.1852        .11546E-03   -1.5414    
   3  Prefactor     .10000E-03    5.0373        .17693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8765        31.435        .18219E-03   -1.5266    
   5  Prefactor     .10004E-03    172.74        .70004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2191        .28553        .19372E-04   -1.5487    
   8  Prefactor     24.170        78.295        .81619E-04   -1.4724    
   9  norm          1.5479        14.089        .34493E-03   -1.5459    
  10  norm          6.3395        7.1440        .79704E-03   -1.5204    
  11  Prefactor     .10000E-03    5.4699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8927        7.4192        .82715E-03   -1.5222    
  15  norm          1.0544        1.4169        .10764E-03   -1.5503    
  16  norm          .10000E-03    8.1446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1784        .32025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5311        .24727        .25731E-03   -.76907    
  21  Prefactor     .67207        .17116        .26026E-03   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02898e-09
Minuit parameter uncertainties:
  1  1.1882e-06
  2  2.18525
  3  6.10954e-06
  4  24.7809
  5  0.00518691
  6  1.02093e-05
  7  0.285532
  8  78.6302
  9  9.34236
  10  7.14497
  11  1.34971e-05
  12  3.4145e-06
  13  1.08244e-05
  14  7.42032
  15  1.41697
  16  5.87259e-06
  17  1.86712e-05
  18  3.38642e-05
  19  1.20074e-05
  20  0.247466
  21  0.171291
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.414e-06  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.721e-01  1.713e-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.531e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/473353/likelihoodResults_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.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): 102
logL (Free Index) = 6600.53138624
delta logL = -9.81169141596e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6600.53128859
delta logL = -4.70361555927e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6136       1.0000          .0000       10.000    
     3 'Normalizat'    1.5311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67208       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=   6600.531     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10260E-03    104.99        .36285E-02** at limit **
   2  Index         2.5341        7.8373        .50000        .85754E-05
   3  Normalizat    1.5311        .83235E-02    .25731E-03   -.57045E-03
   4  Prefactor     .67208        .58726E-02    .26026E-03   -.23143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102602
  Index      = 2.53406
  Normalizat = 1.53113
  Prefactor  = 0.672077
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.531     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10260E-03    539.85        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5341        7.9367        .50000       -.51575    
   3  Normalizat    1.5311        .19189E-01    .51462E-04   -.76907    
   4  Prefactor     .67208        .13538E-01    .10410E-04   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01084e-09
Minuit parameter uncertainties:
  1  0.0756459
  2  486.425
  3  0.0191886
  4  0.0135383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473353': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6600.53128833
delta logL = -2.09590325539e-07

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.026e-04  7.565e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.534e+00  4.864e+02  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.721e-01  1.354e-02  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.531e+00  1.919e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.877 -0.761

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/473353/cmap_HighResolution_482198401_482457601_4FGL_J1319.5-0045_daily_bin937.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-07 12:07:13.367214', job_id='473353', GAL2='0.67', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631041633.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='-2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='937' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:07:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 473353: <4FGL_J1319.5-0045_daily_bin937> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin937 199.877 -0.7613 482198401 482457601 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 :                                   646.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            982 sec.

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

