/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0719.3+3307_daily_bin353
RA = 109.84, Dec = 33.1232
tmin = 330825601, tmax = 331084801
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='213638', job_status='RUN', time_executed='2021-08-26 23:45:33.176780', time_epoch_executed='1630046733.18' WHERE source_name='4FGL J0719.3+3307' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/213638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/213638/ft1_4FGL_J0719.3+3307_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/213638/ft1_4FGL_J0719.3+3307_daily_bin353.fits outfile=/scratch/kocevski/213638/ft1_filteredMKT_4FGL_J0719.3+3307_daily_bin353.fits ra=109.84 dec=33.1232 rad=12.0 tmin=330825601.0 tmax=331084801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.90
user 3.16
sys 1.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.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/213638/ft1_filteredMKT_4FGL_J0719.3+3307_daily_bin353.fits evtable="EVENTS" outfile="/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.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 2.04
user 0.33
sys 1.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/213638/ltcube_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.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/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits
.....................!
real 13.84
user 11.90
sys 1.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/213638/ltcube_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.fits outfile=/scratch/kocevski/213638/expmap_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.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/213638/ltcube_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.fits
.....................!
real 194.76
user 187.56
sys 6.65

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 183 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0719.3+3307 @ 109.84 33.1232

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits scfile=/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits outfile=/scratch/kocevski/213638/cmap_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.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=109.84 yref=33.1232 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 1.89
user 0.39
sys 1.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits scfile=/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits outfile=/scratch/kocevski/213638/cmap_HighResolution_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.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=109.84 yref=33.1232 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 1.90
user 0.38
sys 1.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/213638/Model_4FGL_J0719.3+3307_daily_bin353.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits.....................!
real 156.84
user 153.20
sys 3.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits', '/scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits', expMap='/scratch/kocevski/213638/expmap_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.fits', expCube='/scratch/kocevski/213638/ltcube_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/213638/Model_4FGL_J0719.3+3307_daily_bin353.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0719.3+3307'

4FGL J0719.3+3307
   Spectrum: LogParabola
295         norm:  1.022e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
296        alpha:  2.082e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.031e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.981e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/213638/ft1_filtered_4FGL_J0719.3+3307_daily_bin353.fits
Spacecraft file(s): /scratch/kocevski/213638/ft2_4FGL_J0719.3+3307_daily_bin353.fits
Exposure map: /scratch/kocevski/213638/expmap_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.fits
Exposure cube: /scratch/kocevski/213638/ltcube_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/213638/Model_4FGL_J0719.3+3307_daily_bin353.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) = 9241.42281498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8891       1.0000         .10000E-03   10000.    
     2 'norm      '    26.777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .82268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13799E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2997       1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.3257       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9240.511     FROM MIGRAD    STATUS=CONVERGED    250 CALLS     1044 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8885        2.6941        .78816E-06   -.29952E-02
   2  norm          26.777        13.869       -.14423E-07    .17306E-04
   3  Prefactor     .10000E-03    7.4509        .21847E-06** at limit **
   4  Prefactor     .10000E-03    2.5832        .16776E-06** at limit **
   5  norm          .82270        .70955        .32561E-07    .37144E-03
   6  Prefactor     .10000E-03    16.302       -.11981E-04** at limit **
   7  Prefactor     .10000E-03    4.0791        .22760E-07** at limit **
   8  norm          .10000E-03    3.7894       -.16301E-07** at limit **
   9  Prefactor     .10000E-03    17.182        .12218E-04** at limit **
  10  Prefactor     4.8639        18.062        .74289E-06   -.24003E-03
  11  Prefactor     .10000E-03    38.281       -.34575E-05** at limit **
  12  norm          5.2996        7.5307       -.17380E-07   -.77178E-05
  13  Normalizat    1.3257        .19950       -.32105E-07    .26990E-03
  14  Prefactor     1.0500        .96519E-01    .11921E-06    .33671E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.88847
  norm       = 26.7768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.822697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.86385
  Prefactor  = 0.0001
  norm       = 5.29965
  Normalizat = 1.32572
  Prefactor  = 1.04996
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.511     FROM HESSE     STATUS=OK           160 CALLS     1204 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8885        5.2620        .11955E-02   -1.5368    
   2  norm          26.777        13.885        .77417E-04   -1.4673    
   3  Prefactor     .10000E-03    7.4541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5848        .15089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .82270        .67882        .72272E-03   -1.5527    
   6  Prefactor     .10000E-03    16.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8639        18.411        .91184E-03   -1.5267    
  11  Prefactor     .10000E-03    38.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2996        7.5301        .17459E-03   -1.5248    
  13  Normalizat    1.3257        .22648        .34356E-03   -.82802    
  14  Prefactor     1.0500        .11124        .18516E-03   -.91082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20033e-09
Minuit parameter uncertainties:
  1  5.26281
  2  13.8867
  3  2.74852e-06
  4  1.6993e-06
  5  0.678829
  6  7.78507e-05
  7  1.27477e-07
  8  2.28486e-06
  9  0.000294677
  10  18.4323
  11  0.000131516
  12  7.53141
  13  0.226649
  14  0.111269
Done.

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

Extracting fit parameters...

4FGL J0719.3+3307
   Spectrum: LogParabola
295         norm:  8.227e-01  6.788e-01  1.000e-04  1.000e+04 ( 1.000e-11)
296        alpha:  2.082e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.031e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.981e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
601    Prefactor:  1.050e+00  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
602        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
603        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.326e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 109.840 33.123
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.39e-05

TS (Fixed Index): 2.44
Ra Dec: 109.840 33.123
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/213638/likelihoodResults_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.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) = 9240.24863694
delta logL = 0.262779246621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9240.24030804
delta logL = 0.271108140076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77734       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5822       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0561       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9240.240     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77736        9.8647        .12355E-01    .20416E-02
   2  alpha         2.5822        3.7564        .41180        .13749E-04
   3  Normalizat    1.3002        .61865E-01    .78253E-01   -.12644E-03
   4  Prefactor     1.0561        .29570E-01    .39564E-01    .11747E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.777355
  alpha      = 2.58221
  Normalizat = 1.30023
  Prefactor  = 1.05615
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.240     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77736        .67865        .61259E-03   -1.5532    
   2  alpha         2.5822        .71748        .17929E-01    .32890E-01
   3  Normalizat    1.3002        .22611        .34636E-03   -.83560    
   4  Prefactor     1.0561        .10901        .18466E-03   -.90881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56021e-10
Minuit parameter uncertainties:
  1  0.678656
  2  0.727725
  3  0.226286
  4  0.109035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/213638': 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) = 9240.24030801
delta logL = 0.271108173782

Extracting fit parameters...

4FGL J0719.3+3307
   Spectrum: LogParabola
295         norm:  7.774e-01  6.787e-01  1.000e-04  1.000e+04 ( 1.000e-11)
296        alpha:  2.582e+00  7.277e-01  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.031e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.981e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
601    Prefactor:  1.056e+00  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
602        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
603        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.300e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 109.840 33.123
Photon Index (Free Index): 2.58 +/- 0.73
Photon Flux (Free Index): 6.01e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/213638/cmap_HighResolution_330825601_331084801_4FGL_J0719.3+3307_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-05', comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='1.64e-05', photon_flux_error='2.99e-08', dlogl='2.71e-01', energy_flux='1.69e-05', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-08-26 23:57:03.853925', photon_index_error2='0.73', photon_index2='2.58', ts='2.44', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.21e-05', EG='1.33', time_epoch_completed='1630047423.85', return_code='0', job_id='213638', GAL2='1.06', EG2='1.30', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.07e-08', ts2='3.01', photon_index='2.08' WHERE bin_id='353' AND source_name='4FGL J0719.3+3307' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 213638: <4FGL_J0719.3+3307_daily_bin353> in cluster <slac> Done

Job <4FGL_J0719.3+3307_daily_bin353> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 26 23:40:25 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:43:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 23:43:19 2021
Terminated at Thu Aug 26 23:57:04 2021
Results reported at Thu Aug 26 23:57:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0719.3+3307_daily_bin353 109.84 33.1232 330825601 331084801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0719.3+3307 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   706.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            999 sec.

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

