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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1265
RA = 331.892, Dec = -53.7719
tmin = 567216001, tmax = 567475201
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='195411', job_status='RUN', time_executed='2021-09-28 05:40:51.467408', time_epoch_executed='1632832851.47' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195411/ft1_4FGL_J2207.5-5346_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195411/ft1_4FGL_J2207.5-5346_daily_bin1265.fits outfile=/scratch/kocevski/195411/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1265.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=567216001.0 tmax=567475201.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 2.86
user 2.62
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.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/195411/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/195411/ltcube_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.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/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits
.....................!
real 12.55
user 12.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/195411/ltcube_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.fits outfile=/scratch/kocevski/195411/expmap_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.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/195411/ltcube_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.fits
.....................!
real 190.31
user 185.23
sys 4.63

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/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits scfile=/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits outfile=/scratch/kocevski/195411/cmap_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits scfile=/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits outfile=/scratch/kocevski/195411/cmap_HighResolution_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195411/Model_4FGL_J2207.5-5346_daily_bin1265.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/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits.....................!
real 57.12
user 55.75
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits', '/scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits', expMap='/scratch/kocevski/195411/expmap_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.fits', expCube='/scratch/kocevski/195411/ltcube_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/195411/Model_4FGL_J2207.5-5346_daily_bin1265.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/195411/ft1_filtered_4FGL_J2207.5-5346_daily_bin1265.fits
Spacecraft file(s): /scratch/kocevski/195411/ft2_4FGL_J2207.5-5346_daily_bin1265.fits
Exposure map: /scratch/kocevski/195411/expmap_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.fits
Exposure cube: /scratch/kocevski/195411/ltcube_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/195411/Model_4FGL_J2207.5-5346_daily_bin1265.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) = 7728.00908055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7733       1.0000         .10000E-03   10000.    
     8 'norm      '    .19766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    69.841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7585       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1351       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72168E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.931       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.629       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80306       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1366       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=   7728.000     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2416 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7812        .82544E-07** at limit **
   2  Prefactor     .10000E-03    6.0299       -.26188E-06** at limit **
   3  Prefactor     56.574        45.395       -.20692E-04    .60398E-04
   4  Prefactor     40.199        81.029       -.60288E-04    .36630E-05
   5  Prefactor     .10000E-03    6.9956        .73226E-06** at limit **
   6  Prefactor     .10000E-03    41.652       -.14607E-04** at limit **
   7  Prefactor     6.7722        4.4463       -.24872E-06    .13571E-03
   8  norm          .19751        .49547        .20076E-06   -.55918E-03
   9  Prefactor     69.845        36.525        .90701E-06    .29890E-03
  10  Prefactor     .17572        5.4596       -.18874E-05    .22170E-03
  11  Prefactor     7.7579        3.9056       -.11129E-06    .55039E-03
  12  Prefactor     .10000E-03    78.319       -.26475E-04** at limit **
  13  norm          1.1367        3.4771       -.13737E-05   -.13020E-02
  14  Prefactor     .10000E-03    1.3352       -.39373E-07** at limit **
  15  Prefactor     .10001E-03    2.3691       -.15925E-05** at limit **
  16  Prefactor     23.947        21.639        .14821E-05    .33769E-03
  17  Prefactor     .10000E-03    5.1868        .12969E-06** at limit **
  18  Prefactor     .10000E-03    57.094        .38787E-04** at limit **
  19  Prefactor     .10000E-03    14.196        .47370E-06** at limit **
  20  Prefactor     21.629        14.031       -.63702E-06    .42184E-04
  21  Normalizat    .80298        .16893        .87335E-06    .72415E-03
  22  Prefactor     1.1368        .13360        .33386E-05    .52100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.5737
  Prefactor  = 40.1987
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.77216
  norm       = 0.197507
  Prefactor  = 69.8449
  Prefactor  = 0.175716
  Prefactor  = 7.75793
  Prefactor  = 0.0001
  norm       = 1.13668
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 23.9471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6289
  Normalizat = 0.802981
  Prefactor  = 1.13676
 **********
 **   18 **HESSE 
 **********

 FCN=   7728.000     FROM HESSE     STATUS=OK           340 CALLS     2756 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8224        .11450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.574        45.323        .53322E-04   -1.4202    
   4  Prefactor     40.199        80.792        .63187E-04   -1.4439    
   5  Prefactor     .10000E-03    7.1089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7722        4.4387        .14321E-03   -1.5187    
   8  norm          .19751        .64296        .92671E-03   -1.5619    
   9  Prefactor     69.845        36.570        .48033E-04   -1.4035    
  10  Prefactor     .17572        58.074        .37828E-02   -1.5624    
  11  Prefactor     7.7579        3.9013        .11693E-03   -1.5151    
  12  Prefactor     .10000E-03    78.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1367        3.2073        .28074E-02   -1.5495    
  14  Prefactor     .10000E-03    1.3611        .99152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    11.076        .25382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.947        21.382        .81883E-04   -1.4729    
  17  Prefactor     .10000E-03    5.2320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    57.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.629        14.044        .86126E-04   -1.4777    
  21  Normalizat    .80298        .19363        .28958E-03   -.99958    
  22  Prefactor     1.1368        .15459        .20172E-03   -.88300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67382e-08
Minuit parameter uncertainties:
  1  4.8877e-06
  2  1.09812e-05
  3  45.351
  4  81.0129
  5  3.92417e-05
  6  0.00072212
  7  4.43896
  8  0.642979
  9  36.5817
  10  6.39335
  11  3.90138
  12  4.22323e-05
  13  3.20782
  14  6.83012e-06
  15  0.000766949
  16  21.3885
  17  3.61916e-05
  18  0.000182268
  19  2.10902e-05
  20  14.0466
  21  0.193797
  22  0.154648
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  7.758e+00  3.901e+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.137e+00  1.546e-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.030e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.97
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 7.12e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.12e-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) = 7727.91463179
delta logL = 0.0854175557952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7727.91283614
delta logL = 0.087213201361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4603       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2131       1.0000          .0000       10.000    
     3 'Normalizat'    .81945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1288       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=   7727.913     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4725        103.46        .34455E-02    .10296E-03
   2  Index         2.2148        5.9358        .16059        .43584E-04
   3  Normalizat    .81937        .17037        .64875E-01    .24795E-04
   4  Prefactor     1.1287        .83475E-01    .36582E-01    .46746E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.47253
  Index      = 2.21481
  Normalizat = 0.819368
  Prefactor  = 1.12874
 **********
 **   18 **HESSE 
 **********

 FCN=   7727.913     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4725        4.5438        .12803E-03   -1.5126    
   2  Index         2.2148        .51882        .83541E-02   -.59081    
   3  Normalizat    .81937        .18975        .28699E-03   -.99354    
   4  Prefactor     1.1287        .15248        .20234E-03   -.88553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03371e-10
Minuit parameter uncertainties:
  1  4.54396
  2  0.520184
  3  0.189899
  4  0.152539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195411': 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) = 7727.91282397
delta logL = 0.0872253699226

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  8.473e+00  4.544e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.215e+00  5.202e-01  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.129e+00  1.525e-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.194e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.12
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 2.21 +/- 0.52
Photon Flux (Free Index): 5.90e-08 +/- 4.21e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.78e-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/195411/cmap_HighResolution_567216001_567475201_4FGL_J2207.5-5346_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.12e-08', energy_flux2='2.58e-05', photon_flux_error='3.58e-08', dlogl='8.72e-02', energy_flux='2.23e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-28 05:51:41.745925', photon_index_error2='0.52', photon_index2='2.21', ts='8.97', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.80', time_epoch_completed='1632833501.75', return_code='0', job_id='195411', GAL2='1.13', EG2='0.82', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.21e-08', ts2='9.12', photon_index='2.44' WHERE bin_id='1265' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 195411: <4FGL_J2207.5-5346_daily_bin1265> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1265> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:38 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:40 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:40 2021
Terminated at Tue Sep 28 05:51:42 2021
Results reported at Tue Sep 28 05:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1265 331.892 -53.7719 567216001 567475201 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 :                                   644.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            664 sec.

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

