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


Performing analysis on: 4FGL_J1319.5-0045_daily_bin829
RA = 199.877, Dec = -0.7613
tmin = 454204801, tmax = 454464001
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='473193', job_status='RUN', time_executed='2021-09-07 11:52:24.066575', time_epoch_executed='1631040744.07' WHERE source_name='4FGL J1319.5-0045' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473193/ft1_4FGL_J1319.5-0045_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473193/ft2_4FGL_J1319.5-0045_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473193/ft1_4FGL_J1319.5-0045_daily_bin829.fits outfile=/scratch/kocevski/473193/ft1_filteredMKT_4FGL_J1319.5-0045_daily_bin829.fits ra=199.877 dec=-0.7613 rad=12.0 tmin=454204801.0 tmax=454464001.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.62
user 3.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473193/ft1_filtered_4FGL_J1319.5-0045_daily_bin829.fits" evtable="EVENTS" scfile=/scratch/kocevski/473193/ft2_4FGL_J1319.5-0045_daily_bin829.fits sctable="SC_DATA" outfile=/scratch/kocevski/473193/ltcube_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.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/473193/ft2_4FGL_J1319.5-0045_daily_bin829.fits
.....................!
real 16.80
user 16.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473193/ft1_filtered_4FGL_J1319.5-0045_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/473193/ft2_4FGL_J1319.5-0045_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/473193/ltcube_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.fits outfile=/scratch/kocevski/473193/expmap_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.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/473193/ltcube_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.fits
.....................!
real 191.05
user 186.66
sys 4.02

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/473193/ft1_filtered_4FGL_J1319.5-0045_daily_bin829.fits scfile=/scratch/kocevski/473193/ft2_4FGL_J1319.5-0045_daily_bin829.fits outfile=/scratch/kocevski/473193/cmap_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.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.55
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473193/ft1_filtered_4FGL_J1319.5-0045_daily_bin829.fits scfile=/scratch/kocevski/473193/ft2_4FGL_J1319.5-0045_daily_bin829.fits outfile=/scratch/kocevski/473193/cmap_HighResolution_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13202E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23624E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.537       1.0000         .10000E-03   10000.    
     9 'norm      '    10.572       1.0000         .10000E-03   10000.    
    10 'norm      '    .70703E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2313       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2491       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84010       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=   8059.284     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2286 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4082        .90712E-01** at limit **
   2  norm          1.5635        1.2127        .85039E-02    .33454E-03
   3  Prefactor     4.5635        5.9121        .47108E-02    .33818E-03
   4  Prefactor     .10000E-03    115.50        .90712E-02** at limit **
   5  Prefactor     .10000E-03    84.270        .90712E-02** at limit **
   6  norm          .10000E-03    16.918        .90712E-02** at limit **
   7  norm          2.6925        .32743        .38253E-02   -.29410E-02
   8  Prefactor     62.537        56.272        .12686E-02    .25627E-03
   9  norm          10.575        9.8556        .30806E-02    .13024E-03
  10  norm          .10029E-03    6.0496        .93706E-01** at limit **
  11  Prefactor     2.2311        5.4839        .68803E-02    .54011E-03
  12  Prefactor     11.362        13.949        .29713E-02    .16258E-02
  13  Prefactor     6.3650        9.5711        .39772E-02    .51656E-03
  14  Prefactor     .10000E-03    2.8844        .90712E-02** at limit **
  15  norm          .10000E-03    .66471        .24084E-01** at limit **
  16  norm          .10000E-03    16.788        .90712E-02** at limit **
  17  Prefactor     .10000E-03    2.2642        .90712E-02** at limit **
  18  Prefactor     .10000E-03    27.847        .90712E-02** at limit **
  19  Prefactor     .10000E-03    3.3743        .90712E-02** at limit **
  20  Normalizat    1.2490        .18982        .63532E-01   -.10773E-03
  21  Prefactor     .84021        .13597        .44237E-01   -.22881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.56348
  Prefactor  = 4.56347
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 2.69252
  Prefactor  = 62.5368
  norm       = 10.5745
  norm       = 0.000100286
  Prefactor  = 2.23108
  Prefactor  = 11.3623
  Prefactor  = 6.36501
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24899
  Prefactor  = 0.840213
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.284     FROM HESSE     STATUS=OK           323 CALLS     2609 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.570        .32129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5635        1.2070        .84565E-04   -1.5458    
   3  Prefactor     4.5635        5.8799        .18843E-03   -1.5281    
   4  Prefactor     .10000E-03    119.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    85.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6925        .32842        .16908E-04   -1.5380    
   8  Prefactor     62.537        56.270        .50742E-04   -1.4125    
   9  norm          10.575        9.8407        .12322E-03   -1.5057    
  10  norm          .10029E-03    8.1874        .73382E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2311        5.4585        .27521E-03   -1.5409    
  12  Prefactor     11.362        13.967        .11885E-03   -1.5034    
  13  Prefactor     6.3650        9.5657        .15909E-03   -1.5203    
  14  Prefactor     .10000E-03    2.9082        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6474        .14086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3181        .13185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3798        .16105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2490        .22487        .28102E-03   -.85102    
  21  Prefactor     .84021        .16162        .24315E-03   -.98263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27789e-09
Minuit parameter uncertainties:
  1  0.00010063
  2  1.20698
  3  5.88068
  4  0.00067637
  5  0.000413125
  6  0.000227738
  7  0.328416
  8  56.3179
  9  9.8422
  10  0.00305845
  11  5.45975
  12  13.9707
  13  9.56795
  14  2.71017e-06
  15  2.26015e-06
  16  5.69634e-05
  17  1.33184e-06
  18  0.000209414
  19  3.93121e-06
  20  0.225045
  21  0.161708
Done.

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

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  1.136e+01  1.397e+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:  8.402e-01  1.617e-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.249e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 199.877 -0.761
Photon Flux Upper Limit: 9.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473193/likelihoodResults_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.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) = 8059.11073423
delta logL = 0.17366044866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8059.0819388
delta logL = 0.202455877466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2345       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2467       1.0000          .0000       10.000    
     3 'Normalizat'    1.2188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85591       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8059.082     FROM MIGRAD    STATUS=FAILED        82 CALLS      284 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2331        207.88        .17698E-03   -.20908E-02
   2  Index         3.2470        6.3250        .80383E-02   -.48793E-03
   3  Normalizat    1.2187        .24249        .28397E-03   -.70886E-03
   4  Prefactor     .85595        .16748        .24117E-03   -.82290E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8059.082     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      374 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2331        207.88        .20727E-03   -.20908E-02
   2  Index         3.2470        6.3250        .10641E-02   -.48793E-03
   3  Normalizat    1.2187        .24249        .15227E-03   -.70886E-03
   4  Prefactor     .85595        .16748        .99289E-04   -.82290E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8059.082     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      403 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2323        13.373        .70791E-05   -.24944E-02
   2  Index         3.2471        1.7551        .32153E-03   -.41111E-03
   3  Normalizat    1.2187        .22961        .56794E-04   -.69705E-03
   4  Prefactor     .85596        .16409        .48234E-04   -.83941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23229
  Index      = 3.24707
  Normalizat = 1.21873
  Prefactor  = 0.855956
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.082     FROM HESSE     STATUS=OK            23 CALLS      426 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2323        12.947        .14158E-05   -1.5296    
   2  Index         3.2471        1.7018        .12861E-04   -.35820    
   3  Normalizat    1.2187        .22942        .11359E-04   -.86026    
   4  Prefactor     .85596        .16397        .96468E-05   -.97698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79521e-09
Minuit parameter uncertainties:
  1  12.956
  2  1.7417
  3  0.229606
  4  0.164062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473193': 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) = 8059.08193867
delta logL = 0.20245600685

Extracting fit parameters...

4FGL J1319.5-0045
   Spectrum: PowerLaw
300    Prefactor:  4.232e+00  1.296e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.247e+00  1.742e+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:  8.560e-01  1.641e-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.219e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 199.877 -0.761
Photon Index (Free Index): 3.25 +/- 1.74
Photon Flux (Free Index): 4.52e-08 +/- 5.14e-08
Energy Flux (Free Index): 8.14e-06 +/- 8.31e-06

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/473193/cmap_HighResolution_454204801_454464001_4FGL_J1319.5-0045_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', energy_flux2='8.14e-06', dlogl='2.02e-01', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-09-07 12:04:36.413554', photon_index_error2='1.74', photon_index2='3.25', ts='0.89', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.83e-08', energy_flux_error2='8.31e-06', EG='1.25', time_epoch_completed='1631041476.41', return_code='0', job_id='473193', GAL2='0.86', EG2='1.22', return_code2='0', photon_flux_error2='5.14e-08', ts2='1.34', photon_index='2.40' WHERE bin_id='829' AND source_name='4FGL J1319.5-0045' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:04:36 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1319.5-0045_daily_bin829 199.877 -0.7613 454204801 454464001 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 :                                   732.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            836 sec.

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

