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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1065
RA = 331.892, Dec = -53.7719
tmin = 515376001, tmax = 515635201
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='194069', job_status='RUN', time_executed='2021-09-28 05:36:13.973394', time_epoch_executed='1632832573.97' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194069/ft1_4FGL_J2207.5-5346_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194069/ft2_4FGL_J2207.5-5346_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194069/ft1_4FGL_J2207.5-5346_daily_bin1065.fits outfile=/scratch/kocevski/194069/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1065.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=515376001.0 tmax=515635201.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194069/ft1_filtered_4FGL_J2207.5-5346_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/194069/ft2_4FGL_J2207.5-5346_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/194069/ltcube_515376001_515635201_4FGL_J2207.5-5346_daily_bin1065.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/194069/ft2_4FGL_J2207.5-5346_daily_bin1065.fits
.....................!
real 12.26
user 11.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194069/ft1_filtered_4FGL_J2207.5-5346_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/194069/ft2_4FGL_J2207.5-5346_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/194069/ltcube_515376001_515635201_4FGL_J2207.5-5346_daily_bin1065.fits outfile=/scratch/kocevski/194069/expmap_515376001_515635201_4FGL_J2207.5-5346_daily_bin1065.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/194069/ltcube_515376001_515635201_4FGL_J2207.5-5346_daily_bin1065.fits
.....................!
real 192.61
user 187.28
sys 5.03

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/194069/ft1_filtered_4FGL_J2207.5-5346_daily_bin1065.fits scfile=/scratch/kocevski/194069/ft2_4FGL_J2207.5-5346_daily_bin1065.fits outfile=/scratch/kocevski/194069/cmap_515376001_515635201_4FGL_J2207.5-5346_daily_bin1065.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194069/ft1_filtered_4FGL_J2207.5-5346_daily_bin1065.fits scfile=/scratch/kocevski/194069/ft2_4FGL_J2207.5-5346_daily_bin1065.fits outfile=/scratch/kocevski/194069/cmap_HighResolution_515376001_515635201_4FGL_J2207.5-5346_daily_bin1065.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194069/ft1_filtered_4FGL_J2207.5-5346_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/194069/ft2_4FGL_J2207.5-5346_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194069/Model_4FGL_J2207.5-5346_daily_bin1065.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/194069/ft1_filtered_4FGL_J2207.5-5346_daily_bin1065.fits.....................!
real 52.99
user 51.74
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0600       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .63742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16879E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4612       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3119       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2271       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0269       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4343       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82851       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=   6919.368     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2433 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0612        2.5738        .26893E-06   -.61204E-05
   2  Prefactor     23.590        20.816        .21317E-06   -.28527E-05
   3  Prefactor     .10000E-03    10.738       -.91875E-07** at limit **
   4  Prefactor     .10000E-03    71.544        .15540E-07** at limit **
   5  Prefactor     6.9552        6.6000        .29911E-07   -.55333E-05
   6  Prefactor     .10000E-03    10.802       -.17145E-06** at limit **
   7  Prefactor     .10000E-03    1.3658       -.13364E-06** at limit **
   8  norm          .63723        .70040        .73944E-07    .83304E-04
   9  Prefactor     53.197        34.249        .30878E-05   -.16741E-04
  10  Prefactor     .10000E-03    7.4193       -.11410E-05** at limit **
  11  Prefactor     6.4612        3.9377       -.21413E-07    .72491E-05
  12  Prefactor     .10000E-03    29.522        .21490E-05** at limit **
  13  norm          .10000E-03    4.0063        .56514E-07** at limit **
  14  Prefactor     3.3133        3.2974        .47194E-07   -.83935E-05
  15  Prefactor     2.2293        5.0321       -.14549E-06   -.96850E-05
  16  Prefactor     .10000E-03    11.511       -.22948E-07** at limit **
  17  Prefactor     3.0296        9.1687        .43639E-05   -.72183E-05
  18  Prefactor     .10000E-03    32.808       -.23195E-05** at limit **
  19  Prefactor     .10000E-03    10.321        .39319E-06** at limit **
  20  Prefactor     4.4360        7.8073        .85388E-07   -.96180E-07
  21  Normalizat    1.0830        .16891       -.40380E-06    .72023E-04
  22  Prefactor     .82889        .12619       -.34013E-06   -.24651E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06123
  Prefactor  = 23.5903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.9552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.637226
  Prefactor  = 53.1972
  Prefactor  = 0.0001
  Prefactor  = 6.46116
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.31331
  Prefactor  = 2.2293
  Prefactor  = 0.0001
  Prefactor  = 3.02955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43595
  Normalizat = 1.08303
  Prefactor  = 0.828889
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.368     FROM HESSE     STATUS=OK           346 CALLS     2779 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0612        2.5472        .19480E-03   -1.5502    
   2  Prefactor     23.590        20.704        .82465E-04   -1.4736    
   3  Prefactor     .10000E-03    10.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9552        6.5966        .15214E-03   -1.5180    
   6  Prefactor     .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3797        .94941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .63723        .66966        .70306E-03   -1.5548    
   9  Prefactor     53.197        34.308        .54971E-04   -1.4248    
  10  Prefactor     .10000E-03    7.6878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4612        3.9396        .12257E-03   -1.5200    
  12  Prefactor     .10000E-03    29.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0249        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3133        3.2939        .14422E-03   -1.5344    
  15  Prefactor     2.2293        5.0227        .26409E-03   -1.5409    
  16  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0296        9.1970        .11662E-02   -1.5360    
  18  Prefactor     .10000E-03    32.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4360        7.8007        .19123E-03   -1.5287    
  21  Normalizat    1.0830        .19931        .24463E-03   -.90299    
  22  Prefactor     .82889        .14863        .21447E-03   -.98672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14889e-10
Minuit parameter uncertainties:
  1  2.54745
  2  20.7102
  3  4.26422e-07
  4  1.46821e-05
  5  6.59733
  6  1.21276e-06
  7  4.18255e-06
  8  0.669673
  9  34.321
  10  9.79816e-05
  11  3.93976
  12  6.03335e-05
  13  1.47108e-07
  14  3.29412
  15  5.02363
  16  5.40741e-06
  17  9.20128
  18  3.94636e-05
  19  2.61489e-07
  20  7.80246
  21  0.199447
  22  0.148702
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  6.461e+00  3.940e+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:  8.289e-01  1.487e-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:  1.083e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.93e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.13e-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) = 6919.36722023
delta logL = 0.000750847108975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6919.36692631
delta logL = 0.00104476499382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5638       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4125       1.0000          .0000       10.000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82832       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6919.367     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5638        4.6685        .12382E-03    .41933E-03
   2  Index         2.4125        .51208        .67174E-02    .70901E-04
   3  Normalizat    1.0841        .19091        .24452E-03   -.48494E-04
   4  Prefactor     .82832        .14747        .21454E-03   -.64119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56375
  Index      = 2.41253
  Normalizat = 1.08414
  Prefactor  = 0.828316
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.367     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5638        4.5592        .49527E-05   -1.5196    
   2  Index         2.4125        .49981        .26869E-03   -.54392    
   3  Normalizat    1.0841        .19104        .97806E-05   -.90263    
   4  Prefactor     .82832        .14756        .85816E-05   -.98693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24764e-11
Minuit parameter uncertainties:
  1  4.55939
  2  0.500952
  3  0.191158
  4  0.14763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194069': 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) = 6919.36692631
delta logL = 0.00104476651723

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  6.564e+00  4.559e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.413e+00  5.010e-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:  8.283e-01  1.476e-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:  1.084e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 2.41 +/- 0.50
Photon Flux (Free Index): 5.84e-08 +/- 4.01e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.31e-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/194069/cmap_HighResolution_515376001_515635201_4FGL_J2207.5-5346_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.93e-08', energy_flux2='1.88e-05', photon_flux_error='3.61e-08', dlogl='1.04e-03', energy_flux='1.86e-05', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-28 05:46:40.036542', photon_index_error2='0.50', photon_index2='2.41', ts='4.50', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.08', time_epoch_completed='1632833200.04', return_code='0', job_id='194069', GAL2='0.83', EG2='1.08', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.01e-08', ts2='4.49', photon_index='2.44' WHERE bin_id='1065' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 194069: <4FGL_J2207.5-5346_daily_bin1065> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1065> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:35:44 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:35:46 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:35:46 2021
Terminated at Tue Sep 28 05:46:40 2021
Results reported at Tue Sep 28 05:46:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1065 331.892 -53.7719 515376001 515635201 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 :                                   614.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

