/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 19 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0709.7-0255_daily_bin239
RA = 107.445, Dec = -2.9301
tmin = 301276801, tmax = 301536001
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='125612', job_status='RUN', time_executed='2021-08-26 19:01:30.045674', time_epoch_executed='1630029690.05' WHERE source_name='4FGL J0709.7-0255' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125612/ft1_4FGL_J0709.7-0255_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125612/ft1_4FGL_J0709.7-0255_daily_bin239.fits outfile=/scratch/kocevski/125612/ft1_filteredMKT_4FGL_J0709.7-0255_daily_bin239.fits ra=107.445 dec=-2.9301 rad=12.0 tmin=301276801.0 tmax=301536001.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 5.21
user 4.26
sys 0.91

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.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/125612/ft1_filteredMKT_4FGL_J0709.7-0255_daily_bin239.fits evtable="EVENTS" outfile="/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.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 1.24
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/125612/ltcube_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.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/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits
.....................!
real 12.58
user 11.44
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/125612/ltcube_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.fits outfile=/scratch/kocevski/125612/expmap_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.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/125612/ltcube_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.fits
.....................!
real 192.23
user 186.64
sys 5.15

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 155 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 J0709.7-0255 @ 107.445 -2.9301

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits scfile=/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits outfile=/scratch/kocevski/125612/cmap_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.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=107.445 yref=-2.9301 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.31
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits scfile=/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits outfile=/scratch/kocevski/125612/cmap_HighResolution_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.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=107.445 yref=-2.9301 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.40
user 0.40
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125612/Model_4FGL_J0709.7-0255_daily_bin239.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 Monoceros
adding source Rosette
Working on...
/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits.....................!
real 242.27
user 239.56
sys 2.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits', '/scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits', expMap='/scratch/kocevski/125612/expmap_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.fits', expCube='/scratch/kocevski/125612/ltcube_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/125612/Model_4FGL_J0709.7-0255_daily_bin239.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0709.7-0255'

4FGL J0709.7-0255
   Spectrum: LogParabola
240         norm:  3.255e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.218e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
242         beta:  6.923e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.522e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/125612/ft1_filtered_4FGL_J0709.7-0255_daily_bin239.fits
Spacecraft file(s): /scratch/kocevski/125612/ft2_4FGL_J0709.7-0255_daily_bin239.fits
Exposure map: /scratch/kocevski/125612/expmap_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.fits
Exposure cube: /scratch/kocevski/125612/ltcube_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/125612/Model_4FGL_J0709.7-0255_daily_bin239.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) = 14461.7857748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0949       1.0000         .10000E-03   10000.    
     6 'norm      '    .81487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6036       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.180       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2721       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1849       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0525       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14461.78     FROM MIGRAD    STATUS=CONVERGED    307 CALLS     1442 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .85895        .90712E-02** at limit **
   2  norm          .10000E-03    11.073        .90712E-02** at limit **
   3  norm          .10000E-03    27.165        .90712E-02** at limit **
   4  Prefactor     .10000E-03    69.086        .90712E-02** at limit **
   5  norm          6.0946        5.0725        .40656E-02    .45967E-02
   6  norm          .81296        1.6235        .44485E-01    .20302E-02
   7  Prefactor     .10000E-03    27.340        .90712E-02** at limit **
   8  Prefactor     4.6032        10.256        .46899E-02    .18306E-03
   9  norm          2.3787        1.7207        .66406E-02    .78403E-03
  10  Prefactor     .10000E-03    12.032        .90712E-02** at limit **
  11  Prefactor     34.181        42.569        .17136E-02   -.91754E-03
  12  norm          1.8978        1.8276        .75484E-02    .93395E-03
  13  Prefactor     6.2695        19.490        .40071E-02    .94585E-04
  14  norm          .10000E-03    7.0738        .90712E-02** at limit **
  15  Normalizat    1.1850        .30206        .16133        .20948E-04
  16  Prefactor     1.0524        .46926E-01    .29064E-01   -.11703E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.09458
  norm       = 0.812965
  Prefactor  = 0.000100002
  Prefactor  = 4.60322
  norm       = 2.3787
  Prefactor  = 0.0001
  Prefactor  = 34.181
  norm       = 1.89778
  Prefactor  = 6.26949
  norm       = 0.0001
  Normalizat = 1.18503
  Prefactor  = 1.05245
 **********
 **   18 **HESSE 
 **********

 FCN=   14461.78     FROM HESSE     STATUS=OK           203 CALLS     1645 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .86722        .10880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    69.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0946        5.0694        .81313E-03   -1.5214    
   6  norm          .81296        1.4837        .19974E-02   -1.5528    
   7  Prefactor     .10000E-03    27.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6032        10.254        .18759E-03   -1.5279    
   9  norm          2.3787        1.7145        .12941E-03   -1.5399    
  10  Prefactor     .10000E-03    12.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.181        42.600        .68544E-04   -1.4538    
  12  norm          1.8978        1.8168        .15075E-03   -1.5432    
  13  Prefactor     6.2695        19.481        .16028E-03   -1.5207    
  14  norm          .10000E-03    7.0770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1850        .30616        .71771E-03   -.87067    
  16  Prefactor     1.0524        .48383E-01    .12845E-03   -.91001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45721e-08
Minuit parameter uncertainties:
  1  5.22221e-07
  2  5.50281e-06
  3  0.00047425
  4  6.13598e-06
  5  5.06975
  6  1.48381
  7  0.000434271
  8  10.2578
  9  1.71457
  10  9.94426e-06
  11  42.6382
  12  1.81688
  13  19.5003
  14  6.09276e-07
  15  0.306623
  16  0.0483846
Done.

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

Extracting fit parameters...

4FGL J0709.7-0255
   Spectrum: LogParabola
240         norm:  6.095e+00  5.070e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.218e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
242         beta:  6.923e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.522e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.052e+00  4.838e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.185e+00  3.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 107.445 -2.930
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 5.14e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 2.17e-05

TS (Fixed Index): 2.74
Ra Dec: 107.445 -2.930
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125612/likelihoodResults_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.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) = 14461.5346493
delta logL = 0.245376957031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14461.5327297
delta logL = 0.247296528783

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14461.53     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3079        9.2135        .39955E-02    .30131E-02
   2  alpha         1.7652        .81671        .43659       -.42784E-04
   3  Normalizat    1.1984        .27170        .16062        .47326E-04
   4  Prefactor     1.0525        .45956E-01    .29063E-01   -.25661E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.30785
  alpha      = 1.76525
  Normalizat = 1.19837
  Prefactor  = 1.05252
 **********
 **   18 **HESSE 
 **********

 FCN=   14461.53     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3079        5.4991        .15982E-03   -1.5206    
   2  alpha         1.7652        .60938        .23353E-01   -.29831    
   3  Normalizat    1.1984        .27406        .71449E-03   -.86653    
   4  Prefactor     1.0525        .47134E-01    .12844E-03   -.90999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09154e-09
Minuit parameter uncertainties:
  1  5.4995
  2  0.616183
  3  0.274393
  4  0.0471357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125612': 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) = 14461.5327297
delta logL = 0.247296548157

Extracting fit parameters...

4FGL J0709.7-0255
   Spectrum: LogParabola
240         norm:  6.308e+00  5.499e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  1.765e+00  6.162e-01  0.000e+00  5.000e+00 ( 1.000e+00)
242         beta:  6.923e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.522e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.053e+00  4.714e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.198e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 107.445 -2.930
Photon Index (Free Index): 1.77 +/- 0.62
Photon Flux (Free Index): 3.74e-08 +/- 4.38e-08
Energy Flux (Free Index): 3.73e-05 +/- 3.96e-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/125612/cmap_HighResolution_301276801_301536001_4FGL_J0709.7-0255_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-05', comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='3.73e-05', photon_flux_error='5.14e-08', dlogl='2.47e-01', energy_flux='2.61e-05', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-08-26 19:16:59.964073', photon_index_error2='0.62', photon_index2='1.77', ts='2.74', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='3.96e-05', EG='1.19', time_epoch_completed='1630030619.96', return_code='0', job_id='125612', GAL2='1.05', EG2='1.20', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='4.38e-08', ts2='3.23', photon_index='2.22' WHERE bin_id='239' AND source_name='4FGL J0709.7-0255' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 19:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 125612: <4FGL_J0709.7-0255_daily_bin239> in cluster <slac> Done

Job <4FGL_J0709.7-0255_daily_bin239> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 26 19:00:44 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 19:00:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 19:00:46 2021
Terminated at Thu Aug 26 19:17:00 2021
Results reported at Thu Aug 26 19:17:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0709.7-0255_daily_bin239 107.445 -2.9301 301276801 301536001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0709.7-0255 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   938.43 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             390.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

