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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1314
RA = 331.892, Dec = -53.7719
tmin = 579916801, tmax = 580176001
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='195493', job_status='RUN', time_executed='2021-09-28 05:42:20.810374', time_epoch_executed='1632832940.81' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195493/ft1_4FGL_J2207.5-5346_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195493/ft1_4FGL_J2207.5-5346_daily_bin1314.fits outfile=/scratch/kocevski/195493/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1314.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=579916801.0 tmax=580176001.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.50
user 3.27
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.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/195493/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1314.fits evtable="EVENTS" outfile="/scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/195493/ltcube_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.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/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits
.....................!
real 12.23
user 11.91
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/195493/ltcube_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.fits outfile=/scratch/kocevski/195493/expmap_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.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/195493/ltcube_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.fits
.....................!
real 192.20
user 186.47
sys 5.33

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2207.5-5346 @ 331.892 -53.7719

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits scfile=/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits outfile=/scratch/kocevski/195493/cmap_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.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=331.892 yref=-53.7719 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits scfile=/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits outfile=/scratch/kocevski/195493/cmap_HighResolution_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.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=331.892 yref=-53.7719 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195493/Model_4FGL_J2207.5-5346_daily_bin1314.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/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits.....................!
real 55.59
user 54.25
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits', '/scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits', expMap='/scratch/kocevski/195493/expmap_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.fits', expCube='/scratch/kocevski/195493/ltcube_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/195493/Model_4FGL_J2207.5-5346_daily_bin1314.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.5-5346'

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.875e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/195493/ft1_filtered_4FGL_J2207.5-5346_daily_bin1314.fits
Spacecraft file(s): /scratch/kocevski/195493/ft2_4FGL_J2207.5-5346_daily_bin1314.fits
Exposure map: /scratch/kocevski/195493/expmap_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.fits
Exposure cube: /scratch/kocevski/195493/ltcube_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/195493/Model_4FGL_J2207.5-5346_daily_bin1314.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) = 7455.14548051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9660       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2479       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17977       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11798E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0745       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .82631E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3550       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9920       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14490E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8000       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92591       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7455.138     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2403 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9664        2.9999        .29892E-06    .28600E-04
   2  Prefactor     .10000E-03    7.6097        .78322E-08** at limit **
   3  Prefactor     .10000E-03    15.153       -.21262E-07** at limit **
   4  Prefactor     6.2491        71.072        .51136E-06    .18830E-05
   5  Prefactor     3.1770        6.3718        .43216E-05    .17315E-03
   6  Prefactor     .10000E-03    13.019       -.54440E-07** at limit **
   7  Prefactor     .10000E-03    2.2492       -.22825E-07** at limit **
   8  norm          .17948        .61547        .20739E-06   -.26629E-03
   9  Prefactor     27.953        19.681       -.93721E-08   -.30312E-04
  10  Prefactor     .10000E-03    6.9713       -.21995E-06** at limit **
  11  Prefactor     7.0748        4.1665        .80358E-07   -.28768E-03
  12  Prefactor     .10000E-03    29.198        .23984E-07** at limit **
  13  norm          .10004E-03    8.4282       -.50476E-05** at limit **
  14  Prefactor     7.3546        3.3704        .72442E-07   -.74085E-04
  15  Prefactor     .10000E-03    1.4780        .86423E-07** at limit **
  16  Prefactor     18.202        25.601       -.91304E-06   -.35958E-04
  17  Prefactor     1.9862        12.944        .23655E-05    .23039E-03
  18  Prefactor     .10001E-03    35.864       -.81529E-07** at limit **
  19  Prefactor     .10000E-03    65.714       -.18661E-06** at limit **
  20  Prefactor     2.7992        7.1449        .25497E-06   -.49077E-05
  21  Normalizat    .92596        .16894       -.91840E-06   -.22672E-03
  22  Prefactor     1.0215        .13039       -.45641E-06   -.18434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.24911
  Prefactor  = 3.17701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.17948
  Prefactor  = 27.9528
  Prefactor  = 0.0001
  Prefactor  = 7.07476
  Prefactor  = 0.000100003
  norm       = 0.000100037
  Prefactor  = 7.35457
  Prefactor  = 0.0001
  Prefactor  = 18.202
  Prefactor  = 1.98619
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 2.79923
  Normalizat = 0.925962
  Prefactor  = 1.02151
 **********
 **   18 **HESSE 
 **********

 FCN=   7455.138     FROM HESSE     STATUS=OK           350 CALLS     2753 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9664        2.9950        .17470E-03   -1.5428    
   2  Prefactor     .10000E-03    7.6327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2491        71.073        .16060E-03   -1.5208    
   5  Prefactor     3.1770        6.7375        .11370E-02   -1.5351    
   6  Prefactor     .10000E-03    13.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3536        .25271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .17948        .87237        .11846E-02   -1.5623    
   9  Prefactor     27.953        19.680        .75773E-04   -1.4650    
  10  Prefactor     .10000E-03    7.2573        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0748        4.1655        .12749E-03   -1.5176    
  12  Prefactor     .10000E-03    29.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10004E-03    29.891        .35245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3546        3.3804        .10296E-03   -1.5166    
  15  Prefactor     .10000E-03    1.4899        .10250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.202        25.040        .93889E-04   -1.4854    
  17  Prefactor     1.9862        12.492        .29353E-03   -1.5426    
  18  Prefactor     .10001E-03    36.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    66.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7992        7.1242        .24313E-03   -1.5373    
  21  Normalizat    .92596        .19716        .26664E-03   -.95554    
  22  Prefactor     1.0215        .15213        .20224E-03   -.92016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69001e-08
Minuit parameter uncertainties:
  1  2.99527
  2  1.12422e-05
  3  0.000133906
  4  42.2124
  5  6.73908
  6  8.90191e-05
  7  2.69131e-06
  8  0.791184
  9  19.6846
  10  4.4696e-05
  11  4.16564
  12  0.000560761
  13  0.0021046
  14  3.3805
  15  8.36568e-06
  16  25.0546
  17  9.96497
  18  0.000917257
  19  0.000726813
  20  7.12635
  21  0.197315
  22  0.152189
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  7.075e+00  4.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.022e+00  1.522e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  9.260e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.49e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.20e-05

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) = 7454.5306951
delta logL = 0.607378239128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7454.51827012
delta logL = 0.61980322274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1527       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2568       1.0000          .0000       10.000    
     3 'Normalizat'    .87845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0484       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7454.518     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1517        22.909        .57071E-02    .74995E-03
   2  Index         3.2569        2.8496        .12937        .19867E-03
   3  Normalizat    .87845        .58909E-01    .44626E-01    .51350E-04
   4  Prefactor     1.0484        .45065E-01    .40004E-01    .22518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15168
  Index      = 3.2569
  Normalizat = 0.878455
  Prefactor  = 1.0484
 **********
 **   18 **HESSE 
 **********

 FCN=   7454.518     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1517        6.8696        .71885E-04   -1.5353    
   2  Index         3.2569        1.4418        .48978E-02   -.35610    
   3  Normalizat    .87845        .19389        .27280E-03   -.97221    
   4  Prefactor     1.0484        .15161        .19992E-03   -.91133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95208e-11
Minuit parameter uncertainties:
  1  6.87134
  2  1.46558
  3  0.194042
  4  0.151667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195493': 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) = 7454.51827006
delta logL = 0.619803283055

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  3.152e+00  6.871e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.257e+00  1.466e+00  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.048e+00  1.517e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  8.785e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 3.26 +/- 1.47
Photon Flux (Free Index): 9.55e-08 +/- 5.02e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.04e-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/195493/cmap_HighResolution_579916801_580176001_4FGL_J2207.5-5346_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.49e-08', energy_flux2='1.71e-05', photon_flux_error='3.82e-08', dlogl='6.20e-01', energy_flux='2.03e-05', photon_flux2='9.55e-08', job_status='DONE', time_completed='2021-09-28 05:53:10.059192', photon_index_error2='1.47', photon_index2='3.26', ts='4.49', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.93', time_epoch_completed='1632833590.06', return_code='0', job_id='195493', GAL2='1.05', EG2='0.88', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.02e-08', ts2='5.88', photon_index='2.44' WHERE bin_id='1314' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:53:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 195493: <4FGL_J2207.5-5346_daily_bin1314> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1314> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:45 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:40:47 2021
Terminated at Tue Sep 28 05:53:10 2021
Results reported at Tue Sep 28 05:53:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1314 331.892 -53.7719 579916801 580176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2207.5-5346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            745 sec.

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

