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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin1545
RA = 199.877, Dec = -0.7613
tmin = 639792001, tmax = 640051201
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='477539', job_status='RUN', time_executed='2021-09-07 12:04:44.190041', time_epoch_executed='1631041484.19' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477539/ft1_4FGL_J1319.5-0045_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477539/ft1_4FGL_J1319.5-0045_daily_bin1545.fits outfile=/scratch/kocevski/477539/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin1545.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=639792001.0 tmax=640051201.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.61
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.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/477539/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin1545.fits evtable="EVENTS" outfile="/scratch/kocevski/477539/ft1_filtered_4FGL_J1319.5-0045_daily_bin1545.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477539/ft1_filtered_4FGL_J1319.5-0045_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/477539/ltcube_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.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/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.fits
.....................!
real 13.73
user 12.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477539/ft1_filtered_4FGL_J1319.5-0045_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/477539/ltcube_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.fits outfile=/scratch/kocevski/477539/expmap_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.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/477539/ltcube_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.fits
.....................!
real 193.60
user 186.49
sys 4.46

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/477539/ft1_filtered_4FGL_J1319.5-0045_daily_bin1545.fits scfile=/scratch/kocevski/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.fits outfile=/scratch/kocevski/477539/cmap_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477539/ft1_filtered_4FGL_J1319.5-0045_daily_bin1545.fits scfile=/scratch/kocevski/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.fits outfile=/scratch/kocevski/477539/cmap_HighResolution_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/477539/ft1_filtered_4FGL_J1319.5-0045_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/477539/ft2_4FGL_J1319.5-0045_daily_bin1545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/477539/Model_4FGL_J1319.5-0045_daily_bin1545.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/477539/ft1_filtered_4FGL_J1319.5-0045_daily_bin1545.fits.....................!
real 56.19
user 54.66
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7959       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5817       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6881       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    76.529       1.0000         .10000E-03   10000.    
     6 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.252       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.476       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4461       1.0000         .10000E-03   10000.    
    16 'norm      '    12.919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.885       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96633       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98095       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=   6691.145     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2514 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7962        11.352        .11089E-07   -.17335E-05
   2  norm          1.5817        1.5493       -.12192E-07   -.84647E-05
   3  Prefactor     8.6875        8.2488        .49500E-07   -.50585E-05
   4  Prefactor     13.939        41.697        .16553E-06   -.16679E-05
   5  Prefactor     76.459        74.063        .38031E-06   -.92080E-05
   6  norm          .10000E-03    40.480        .19476E-06** at limit **
   7  norm          3.9689        .53319        .20226E-07   -.36022E-03
   8  Prefactor     10.440        135.26       -.74501E-05   -.34177E-05
   9  norm          .10000E-03    5.7825        .32899E-05** at limit **
  10  norm          11.149        12.721        .10263E-06   -.94102E-05
  11  Prefactor     .10000E-03    8.2706       -.14151E-06** at limit **
  12  Prefactor     12.474        15.461        .19993E-06   -.91720E-05
  13  Prefactor     .10000E-03    6.0419       -.20979E-06** at limit **
  14  Prefactor     .10000E-03    4.5708       -.67325E-07** at limit **
  15  norm          4.4463        2.0350        .36282E-07   -.47246E-04
  16  norm          12.919        27.399        .22274E-07   -.51247E-06
  17  Prefactor     12.886        6.3488        .17291E-07    .46739E-05
  18  Prefactor     .10000E-03    20.669       -.46462E-06** at limit **
  19  Prefactor     .10000E-03    5.8428       -.14690E-06** at limit **
  20  Normalizat    .96625        .23428        .53469E-06   -.17959E-04
  21  Prefactor     .98096        .16846       -.61065E-07   -.27752E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.79617
  norm       = 1.58165
  Prefactor  = 8.68752
  Prefactor  = 13.9387
  Prefactor  = 76.4591
  norm       = 0.0001
  norm       = 3.96893
  Prefactor  = 10.4404
  norm       = 0.0001
  norm       = 11.1491
  Prefactor  = 0.0001
  Prefactor  = 12.4742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.44626
  norm       = 12.919
  Prefactor  = 12.8856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.966246
  Prefactor  = 0.980957
 **********
 **   18 **HESSE 
 **********

 FCN=   6691.145     FROM HESSE     STATUS=OK           321 CALLS     2835 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7962        11.344        .12803E-03   -1.5082    
   2  norm          1.5817        1.5457        .97104E-04   -1.5456    
   3  Prefactor     8.6875        8.2402        .13599E-03   -1.5118    
   4  Prefactor     13.939        41.660        .10726E-03   -1.4961    
   5  Prefactor     76.459        74.949        .22951E-03   -1.3957    
   6  norm          .10000E-03    40.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9689        .54151        .19025E-04   -1.5309    
   8  Prefactor     10.440        135.09        .12514E-03   -1.5062    
   9  norm          .10000E-03    5.7698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.149        12.741        .11998E-03   -1.5040    
  11  Prefactor     .10000E-03    8.3430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.474        15.459        .11341E-03   -1.5001    
  13  Prefactor     .10000E-03    6.0611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5920        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4463        2.0345        .74242E-04   -1.5286    
  16  norm          12.919        27.448        .11144E-03   -1.4989    
  17  Prefactor     12.886        6.3634        .11159E-03   -1.4990    
  18  Prefactor     .10000E-03    20.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .96625        .27653        .34489E-03   -.94170    
  21  Prefactor     .98096        .19969        .24936E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87457e-12
Minuit parameter uncertainties:
  1  11.3468
  2  1.5457
  3  8.24128
  4  41.7466
  5  75.0417
  6  8.28339e-06
  7  0.541514
  8  75.3194
  9  3.9333e-06
  10  12.7445
  11  1.0888e-06
  12  15.464
  13  1.79121e-06
  14  2.06584e-06
  15  2.03453
  16  27.4748
  17  6.36375
  18  6.84471e-06
  19  1.10463e-06
  20  0.276941
  21  0.19984
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.247e+01  1.546e+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:  9.810e-01  1.998e-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:  9.662e-01  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 199.877 -0.761
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 9.20e-06 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/477539/likelihoodResults_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.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) = 6691.05459635
delta logL = 0.090513231632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6691.05036214
delta logL = 0.0947474424192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.678       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0798       1.0000          .0000       10.000    
     3 'Normalizat'    .97337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97632       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=   6691.050     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      264 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.678        743.12        .23815E-02   -.19259E-03
   2  Index         2.0797        5.8753        .25349        .25380E-04
   3  Normalizat    .97342        .87387E-01    .77664E-01    .14433E-03
   4  Prefactor     .97628        .58702E-01    .45970E-01    .80695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.678
  Index      = 2.07974
  Normalizat = 0.973419
  Prefactor  = 0.976282
 **********
 **   18 **HESSE 
 **********

 FCN=   6691.050     FROM HESSE     STATUS=OK            31 CALLS      295 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.678        22.192        .95258E-04   -1.4867    
   2  Index         2.0797        .69679        .91508E-02   -.62371    
   3  Normalizat    .97342        .26809        .34373E-03   -.93926    
   4  Prefactor     .97628        .19644        .24985E-03   -.93524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68282e-10
Minuit parameter uncertainties:
  1  22.2024
  2  0.700255
  3  0.268463
  4  0.196584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477539': 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) = 6691.05036212
delta logL = 0.0947474617196

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.768e+01  2.220e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.080e+00  7.003e-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:  9.763e-01  1.966e-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:  9.734e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 2.08 +/- 0.70
Photon Flux (Free Index): 2.39e-08 +/- 3.07e-08
Energy Flux (Free Index): 1.37e-05 +/- 2.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/477539/cmap_HighResolution_639792001_640051201_4FGL_J1319.5-0045_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='1.37e-05', photon_flux_error='3.48e-08', dlogl='9.47e-02', energy_flux='9.20e-06', photon_flux2='2.39e-08', job_status='DONE', time_completed='2021-09-07 12:15:43.191945', photon_index_error2='0.70', photon_index2='2.08', ts='1.02', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.10e-05', EG='0.97', time_epoch_completed='1631042143.19', return_code='0', job_id='477539', GAL2='0.98', EG2='0.97', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.07e-08', ts2='1.21', photon_index='2.40' WHERE bin_id='1545' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 477539: <4FGL_J1319.5-0045_daily_bin1545> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin1545> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 12:00:34 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:00:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:00:45 2021
Terminated at Tue Sep  7 12:15:43 2021
Results reported at Tue Sep  7 12:15:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin1545 199.877 -0.7613 639792001 640051201 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 :                                   653.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            909 sec.

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

