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


Performing analysis on: 4FGL_J0719.3+3307_daily_bin909
RA = 109.84, Dec = 33.1232
tmin = 474940801, tmax = 475200001
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='217024', job_status='RUN', time_executed='2021-08-26 23:54:41.632384', time_epoch_executed='1630047281.63' WHERE source_name='4FGL J0719.3+3307' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217024/ft1_4FGL_J0719.3+3307_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217024/ft1_4FGL_J0719.3+3307_daily_bin909.fits outfile=/scratch/kocevski/217024/ft1_filteredMKT_4FGL_J0719.3+3307_daily_bin909.fits ra=109.84 dec=33.1232 rad=12.0 tmin=474940801.0 tmax=475200001.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.89
user 3.35
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.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/217024/ft1_filteredMKT_4FGL_J0719.3+3307_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.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.84
user 0.32
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/217024/ltcube_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.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/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits
.....................!
real 12.16
user 11.43
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/217024/ltcube_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.fits outfile=/scratch/kocevski/217024/expmap_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.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/217024/ltcube_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.fits
.....................!
real 190.86
user 184.93
sys 5.56

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/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits scfile=/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits outfile=/scratch/kocevski/217024/cmap_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.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 0.87
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits scfile=/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits outfile=/scratch/kocevski/217024/cmap_HighResolution_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.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 0.88
user 0.38
sys 0.49

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217024/Model_4FGL_J0719.3+3307_daily_bin909.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/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits.....................!
real 144.73
user 142.86
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits', '/scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits', expMap='/scratch/kocevski/217024/expmap_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.fits', expCube='/scratch/kocevski/217024/ltcube_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217024/Model_4FGL_J0719.3+3307_daily_bin909.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/217024/ft1_filtered_4FGL_J0719.3+3307_daily_bin909.fits
Spacecraft file(s): /scratch/kocevski/217024/ft2_4FGL_J0719.3+3307_daily_bin909.fits
Exposure map: /scratch/kocevski/217024/expmap_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.fits
Exposure cube: /scratch/kocevski/217024/ltcube_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217024/Model_4FGL_J0719.3+3307_daily_bin909.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) = 8531.58978836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9146       1.0000         .10000E-03   10000.    
     2 'norm      '    13.573       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89044       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68925E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .20430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.6447       1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .93175       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=   8531.557     FROM MIGRAD    STATUS=CONVERGED    272 CALLS     1242 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9175        5.1584        .10722E-05    .14953E-02
   2  norm          13.578        9.9980        .10321E-06    .92582E-05
   3  Prefactor     .10000E-03    7.2537        .20895E-06** at limit **
   4  Prefactor     .10000E-03    8.2912       -.24345E-06** at limit **
   5  norm          .10000E-03    .13235       -.17963E-07** at limit **
   6  Prefactor     .88261        11.489        .93563E-05   -.12061E-03
   7  Prefactor     .10012E-03    9.9746       -.37886E-05** at limit **
   8  norm          .20456        2.3355       -.15163E-05    .23989E-04
   9  Prefactor     .10000E-03    20.751       -.12526E-05** at limit **
  10  Prefactor     28.918        20.582       -.13152E-05   -.20377E-03
  11  Prefactor     .10000E-03    18.192        .93572E-06** at limit **
  12  norm          6.6422        10.731        .81054E-06    .14888E-03
  13  Normalizat    1.1285        .17839       -.13268E-05   -.15522E-03
  14  Prefactor     .93160        .86736E-01    .21397E-06   -.11695E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.91751
  norm       = 13.578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.882615
  Prefactor  = 0.000100119
  norm       = 0.204557
  Prefactor  = 0.000100002
  Prefactor  = 28.918
  Prefactor  = 0.000100001
  norm       = 6.6422
  Normalizat = 1.12848
  Prefactor  = 0.931596
 **********
 **   18 **HESSE 
 **********

 FCN=   8531.557     FROM HESSE     STATUS=OK           168 CALLS     1410 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9175        5.2345        .23798E-03   -1.5366    
   2  norm          13.578        10.006        .10872E-03   -1.4971    
   3  Prefactor     .10000E-03    7.2561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .13439        .32798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .88261        12.249        .29594E-02   -1.5520    
   7  Prefactor     .10012E-03    83.130        .49506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20456        19.300        .22879E-02   -1.5618    
   9  Prefactor     .10000E-03    20.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.918        22.002        .74514E-04   -1.4632    
  11  Prefactor     .10000E-03    18.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.6422        10.782        .15567E-03   -1.5192    
  13  Normalizat    1.1285        .19914        .29920E-03   -.88843    
  14  Prefactor     .93160        .99577E-01    .16991E-03   -.95046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29612e-08
Minuit parameter uncertainties:
  1  5.23537
  2  10.0076
  3  6.31671e-05
  4  6.76755e-06
  5  9.97156e-07
  6  6.57727
  7  0.00631217
  8  3.97425
  9  0.000391442
  10  22.0078
  11  0.000299899
  12  10.785
  13  0.199269
  14  0.099597
Done.

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

Extracting fit parameters...

4FGL J0719.3+3307
   Spectrum: LogParabola
295         norm:  1.000e-04  9.972e-07  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:  9.316e-01  9.960e-02  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.128e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 109.840 33.123
Photon Flux Upper Limit: 3.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217024/likelihoodResults_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.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) = 8531.55781462
delta logL = -0.00050964842012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8531.55730683
delta logL = -1.8563841877e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0832       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93174       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8531.557     FROM MIGRAD    STATUS=FAILED        80 CALLS      225 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    .13923        .32798E-03** at limit **
   2  alpha         2.0946        3.9521        .16759       -.96206E-05
   3  Normalizat    1.1285        .18149        .29920E-03    .17251E-03
   4  Prefactor     .93160        .95226E-01    .16991E-03    .42392E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8531.557     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      340 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    .13923        .27070E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0946        3.9521        .34689E-02   -.16288    
   3  Normalizat    1.1285        .18149        .14664E-03   -.88843    
   4  Prefactor     .93160        .95226E-01    .68570E-04   -.95046    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8531.557     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      369 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .13443        .65596E-04** at limit **
   2  alpha         2.1075        3.9459        .67038E-02   -.13567E-07
   3  Normalizat    1.1285        .18159        .11968E-04   -.49016E-04
   4  Prefactor     .93160        .95278E-01    .33982E-04   -.10291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.10752
  Normalizat = 1.12848
  Prefactor  = 0.931596
 **********
 **   18 **HESSE 
 **********

 FCN=   8531.557     FROM HESSE     STATUS=OK            23 CALLS      392 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .13443        .13119E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1075        3.9458        .26815E-03   -.15764    
   3  Normalizat    1.1285        .18157        .23936E-05   -.88843    
   4  Prefactor     .93160        .95274E-01    .67963E-05   -.95046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90676e-12
Minuit parameter uncertainties:
  1  4.44476e-08
  2  57.8522
  3  0.181666
  4  0.0952911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217024': 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) = 8531.55730488
delta logL = 9.63191268966e-08

Extracting fit parameters...

4FGL J0719.3+3307
   Spectrum: LogParabola
295         norm:  1.000e-04  4.445e-08  1.000e-04  1.000e+04 ( 1.000e-11)
296        alpha:  2.108e+00  5.785e+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:  9.316e-01  9.529e-02  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.128e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 109.840 33.123

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/217024/cmap_HighResolution_474940801_475200001_4FGL_J0719.3+3307_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-05', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2021-08-27 00:06:14.000758', job_id='217024', GAL2='0.93', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630047974.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='909' AND source_name='4FGL J0719.3+3307' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 00:06:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 217024: <4FGL_J0719.3+3307_daily_bin909> in cluster <slac> Done

Job <4FGL_J0719.3+3307_daily_bin909> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 23:50:38 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:50:40 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:50:40 2021
Terminated at Fri Aug 27 00:06:17 2021
Results reported at Fri Aug 27 00:06:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0719.3+3307_daily_bin909 109.84 33.1232 474940801 475200001 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 :                                   691.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            939 sec.

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

