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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin961
RA = 199.877, Dec = -0.7613
tmin = 488419201, tmax = 488678401
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='473389', job_status='RUN', time_executed='2021-09-07 11:53:24.112908', time_epoch_executed='1631040804.11' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473389/ft1_4FGL_J1319.5-0045_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473389/ft2_4FGL_J1319.5-0045_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473389/ft1_4FGL_J1319.5-0045_daily_bin961.fits outfile=/scratch/kocevski/473389/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin961.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.21
user 6.94
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473389/ft1_filtered_4FGL_J1319.5-0045_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/473389/ft2_4FGL_J1319.5-0045_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/473389/ltcube_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.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/473389/ft2_4FGL_J1319.5-0045_daily_bin961.fits
.....................!
real 13.99
user 13.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473389/ft1_filtered_4FGL_J1319.5-0045_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/473389/ft2_4FGL_J1319.5-0045_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/473389/ltcube_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.fits outfile=/scratch/kocevski/473389/expmap_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.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/473389/ltcube_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.fits
.....................!
real 190.70
user 186.12
sys 3.89

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/473389/ft1_filtered_4FGL_J1319.5-0045_daily_bin961.fits scfile=/scratch/kocevski/473389/ft2_4FGL_J1319.5-0045_daily_bin961.fits outfile=/scratch/kocevski/473389/cmap_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.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/473389/ft1_filtered_4FGL_J1319.5-0045_daily_bin961.fits scfile=/scratch/kocevski/473389/ft2_4FGL_J1319.5-0045_daily_bin961.fits outfile=/scratch/kocevski/473389/cmap_HighResolution_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473389/ft1_filtered_4FGL_J1319.5-0045_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/473389/ft2_4FGL_J1319.5-0045_daily_bin961.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473389/Model_4FGL_J1319.5-0045_daily_bin961.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/473389/ft1_filtered_4FGL_J1319.5-0045_daily_bin961.fits.....................!
real 36.59
user 35.31
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.272       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.386       1.0000         .10000E-03   10000.    
     6 'norm      '    26.275       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8210       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.661       1.0000         .10000E-03   10000.    
     9 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.958       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91673       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2189       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=   3956.927     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2247 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.271        15.174        .56605E-05    .99798E-05
   2  norm          1.7059        1.7349       -.38230E-07   -.10009E-03
   3  Prefactor     .10000E-03    3.5007        .30580E-07** at limit **
   4  Prefactor     .10000E-03    18.005        .49724E-05** at limit **
   5  Prefactor     12.145        135.60       -.24347E-03    .81119E-04
   6  norm          26.271        31.355        .23563E-04    .41215E-04
   7  norm          1.8218        .50698        .16406E-05   -.86381E-02
   8  Prefactor     47.609        88.515       -.42298E-04    .56863E-04
   9  norm          .10000E-03    11.858       -.10299E-05** at limit **
  10  norm          .10000E-03    5.5615        .21543E-07** at limit **
  11  Prefactor     .10000E-03    4.6081        .49554E-07** at limit **
  12  Prefactor     18.283        23.641       -.13206E-04    .17783E-04
  13  Prefactor     16.960        12.846       -.30814E-05    .76567E-05
  14  Prefactor     .10000E-03    4.6487       -.12220E-07** at limit **
  15  norm          .10001E-03    1.0667       -.60729E-06** at limit **
  16  norm          5.8502        144.54        .11797E-03    .46005E-05
  17  Prefactor     .10000E-03    6.0668       -.21744E-06** at limit **
  18  Prefactor     77.753        42.780        .13857E-04    .39176E-04
  19  Prefactor     .10000E-03    18.828       -.55066E-05** at limit **
  20  Normalizat    .91603        .30228        .44127E-05    .17868E-03
  21  Prefactor     1.2195        .21908       -.19905E-05    .45478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2706
  norm       = 1.7059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1445
  norm       = 26.271
  norm       = 1.8218
  Prefactor  = 47.609
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2833
  Prefactor  = 16.9599
  Prefactor  = 0.0001
  norm       = 0.000100007
  norm       = 5.85016
  Prefactor  = 0.0001
  Prefactor  = 77.7532
  Prefactor  = 0.000100002
  Normalizat = 0.916033
  Prefactor  = 1.2195
 **********
 **   18 **HESSE 
 **********

 FCN=   3956.927     FROM HESSE     STATUS=OK           309 CALLS     2556 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.271        15.169        .10249E-03   -1.4926    
   2  norm          1.7059        1.7281        .81136E-04   -1.5447    
   3  Prefactor     .10000E-03    3.5032        .11494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.145        136.90        .11382E-03   -1.5011    
   6  norm          26.271        31.387        .78151E-04   -1.4682    
   7  norm          1.8218        .51051        .20357E-04   -1.5438    
   8  Prefactor     47.609        88.518        .58082E-04   -1.4327    
   9  norm          .10000E-03    11.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.5643        .14489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6093        .13189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.283        23.695        .93670E-04   -1.4853    
  13  Prefactor     16.960        12.859        .97258E-04   -1.4884    
  14  Prefactor     .10000E-03    4.6699        .13245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    11.168        .12389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8502        145.18        .16384E-03   -1.5224    
  17  Prefactor     .10000E-03    6.3292        .30230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     77.753        42.881        .45538E-04   -1.3942    
  19  Prefactor     .10000E-03    18.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91603        .36120        .34312E-03   -.95899    
  21  Prefactor     1.2195        .26413        .22573E-03   -.85733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23616e-09
Minuit parameter uncertainties:
  1  15.1726
  2  1.72815
  3  6.39816e-06
  4  2.31063e-05
  5  81.7875
  6  31.4064
  7  0.510507
  8  88.7642
  9  0.000201579
  10  1.4675e-06
  11  4.95259e-07
  12  23.707
  13  12.861
  14  1.1763e-06
  15  0.000570543
  16  58.446
  17  3.54546e-05
  18  42.8978
  19  0.000354895
  20  0.36216
  21  0.264421
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.828e+01  2.371e+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.220e+00  2.644e-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.160e-01  3.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/473389/likelihoodResults_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.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) = 3956.85497369
delta logL = 0.0719546946648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3956.85228019
delta logL = 0.0746481924784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.356       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8552       1.0000          .0000       10.000    
     3 'Normalizat'    .89052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2327       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=   3956.852     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      309 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.350        33.810        .11888E-03   -.23190E-03
   2  Index         2.8561        1.7073        .72723E-02   -.41038E-04
   3  Normalizat    .89035        .35681        .34758E-03    .30533E-04
   4  Prefactor     1.2328        .26341        .22471E-03   -.47912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.35
  Index      = 2.85607
  Normalizat = 0.89035
  Prefactor  = 1.23278
 **********
 **   18 **HESSE 
 **********

 FCN=   3956.852     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.350        25.202        .47553E-05   -1.5034    
   2  Index         2.8561        1.2841        .29089E-03   -.44315    
   3  Normalizat    .89035        .35452        .13903E-04   -.96800    
   4  Prefactor     1.2328        .26194        .44941E-04   -.85328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6234e-10
Minuit parameter uncertainties:
  1  25.2259
  2  1.30207
  3  0.355457
  4  0.262213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473389': 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) = 3956.85227972
delta logL = 0.0746486641833

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.135e+01  2.523e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.856e+00  1.302e+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.233e+00  2.622e-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:  8.903e-01  3.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 2.86 +/- 1.30
Photon Flux (Free Index): 5.75e-08 +/- 7.45e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.50e-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/473389/cmap_HighResolution_488419201_488678401_4FGL_J1319.5-0045_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='7.46e-02', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-09-07 12:02:11.805106', photon_index_error2='1.30', photon_index2='2.86', ts='0.86', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.50e-05', EG='0.92', time_epoch_completed='1631041331.81', return_code='0', job_id='473389', GAL2='1.23', EG2='0.89', return_code2='0', photon_flux_error2='7.45e-08', ts2='1.02', photon_index='2.40' WHERE bin_id='961' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:02:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 473389: <4FGL_J1319.5-0045_daily_bin961> in cluster <slac> Done

Job <4FGL_J1319.5-0045_daily_bin961> 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) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:53:10 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:10 2021
Terminated at Tue Sep  7 12:02:12 2021
Results reported at Tue Sep  7 12:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin961 199.877 -0.7613 488419201 488678401 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 :                                   523.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            677 sec.

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

