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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1364
RA = 331.892, Dec = -53.7719
tmin = 592876801, tmax = 593136001
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='195577', job_status='RUN', time_executed='2021-09-28 05:44:50.662732', time_epoch_executed='1632833090.66' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195577

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195577/ft1_4FGL_J2207.5-5346_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195577/ft1_4FGL_J2207.5-5346_daily_bin1364.fits outfile=/scratch/kocevski/195577/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1364.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=592876801.0 tmax=593136001.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.84
user 3.61
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.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/195577/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1364.fits evtable="EVENTS" outfile="/scratch/kocevski/195577/ft1_filtered_4FGL_J2207.5-5346_daily_bin1364.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195577/ft1_filtered_4FGL_J2207.5-5346_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/195577/ltcube_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.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/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.fits
.....................!
real 12.01
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195577/ft1_filtered_4FGL_J2207.5-5346_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/195577/ltcube_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.fits outfile=/scratch/kocevski/195577/expmap_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.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/195577/ltcube_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.fits
.....................!
real 191.18
user 185.16
sys 5.64

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/195577/ft1_filtered_4FGL_J2207.5-5346_daily_bin1364.fits scfile=/scratch/kocevski/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.fits outfile=/scratch/kocevski/195577/cmap_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195577/ft1_filtered_4FGL_J2207.5-5346_daily_bin1364.fits scfile=/scratch/kocevski/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.fits outfile=/scratch/kocevski/195577/cmap_HighResolution_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.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/195577/ft1_filtered_4FGL_J2207.5-5346_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/195577/ft2_4FGL_J2207.5-5346_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195577/Model_4FGL_J2207.5-5346_daily_bin1364.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/195577/ft1_filtered_4FGL_J2207.5-5346_daily_bin1364.fits.....................!
real 53.34
user 51.90
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2113       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0045       1.0000         .10000E-03   10000.    
     8 'norm      '    .12010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0466       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12872E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .50022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97464       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96245       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=   6962.882     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2432 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1034       -.83183E-07** at limit **
   2  Prefactor     .10000E-03    8.1057       -.80755E-07** at limit **
   3  Prefactor     .10000E-03    24.095       -.45245E-06** at limit **
   4  Prefactor     .10000E-03    86.946        .16356E-05** at limit **
   5  Prefactor     6.2123        6.9955        .14099E-05    .11222E-02
   6  Prefactor     .57875        31.831        .79102E-05   -.39931E-03
   7  Prefactor     3.0036        4.6763        .80908E-07    .16199E-03
   8  norm          .12094        .55996        .21745E-06    .61467E-03
   9  Prefactor     72.035        38.550        .11088E-06    .42680E-04
  10  Prefactor     .10000E-03    4.4574       -.90847E-07** at limit **
  11  Prefactor     2.8013        3.1470        .68939E-07   -.28431E-04
  12  Prefactor     .10000E-03    61.122       -.30417E-05** at limit **
  13  norm          .10000E-03    2.8837       -.29212E-07** at limit **
  14  Prefactor     1.0459        2.3217       -.15770E-06   -.23054E-03
  15  Prefactor     .10000E-03    3.3598       -.16638E-06** at limit **
  16  Prefactor     .10000E-03    15.385        .30881E-06** at limit **
  17  Prefactor     .10008E-03    8.8709        .26115E-05** at limit **
  18  Prefactor     68.051        68.038       -.52421E-05   -.30809E-03
  19  Prefactor     13.080        29.086        .11036E-06   -.24918E-04
  20  Prefactor     .10000E-03    12.036       -.23879E-06** at limit **
  21  Normalizat    .97489        .16674       -.57239E-06   -.16304E-03
  22  Prefactor     .96220        .12715        .38868E-06   -.19214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.21226
  Prefactor  = 0.578753
  Prefactor  = 3.00359
  norm       = 0.120942
  Prefactor  = 72.035
  Prefactor  = 0.0001
  Prefactor  = 2.80134
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.04595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 68.0508
  Prefactor  = 13.0803
  Prefactor  = 0.0001
  Normalizat = 0.974892
  Prefactor  = 0.962197
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.882     FROM HESSE     STATUS=OK           348 CALLS     2780 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1302        .85596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    87.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2123        7.3647        .80537E-03   -1.5209    
   6  Prefactor     .57875        58.643        .50333E-02   -1.5556    
   7  Prefactor     3.0036        4.6462        .20968E-03   -1.5361    
   8  norm          .12094        .58758        .12073E-03   -1.5638    
   9  Prefactor     72.035        38.565        .47301E-04   -1.4008    
  10  Prefactor     .10000E-03    4.5089        .17190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8013        3.1373        .14983E-03   -1.5373    
  12  Prefactor     .10000E-03    61.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8931        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0459        2.1589        .18418E-02   -1.5503    
  15  Prefactor     .10000E-03    9.5954        .29274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10008E-03    75.240        .41739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     68.051        70.013        .24335E-03   -1.4056    
  19  Prefactor     13.080        29.030        .11076E-03   -1.4984    
  20  Prefactor     .10000E-03    12.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97489        .19032        .25412E-03   -.93876    
  22  Prefactor     .96220        .14847        .20340E-03   -.94000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29792e-08
Minuit parameter uncertainties:
  1  6.17011e-06
  2  1.63544e-05
  3  9.72752e-05
  4  0.000340678
  5  7.36572
  6  11.6624
  7  4.64674
  8  0.532942
  9  38.578
  10  1.46948e-05
  11  3.13749
  12  0.000715755
  13  3.44072e-06
  14  2.15904
  15  6.22688e-06
  16  4.15797e-05
  17  0.00495099
  18  70.0983
  19  29.0611
  20  3.72236e-05
  21  0.190453
  22  0.148534
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.801e+00  3.137e+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:  9.622e-01  1.485e-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.749e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 8.05e-06 +/- 9.01e-06

TS (Fixed Index): 1.06
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195577/likelihoodResults_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.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) = 6962.68430125
delta logL = 0.19758306463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6962.68123215
delta logL = 0.200652159256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6513       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0698       1.0000          .0000       10.000    
     3 'Normalizat'    .95855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97049       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=   6962.681     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6516        3.5091        .98247E-04    .20192E-03
   2  Index         3.0701        1.3799        .85386E-02    .42794E-04
   3  Normalizat    .95860        .18814        .25602E-03    .55641E-04
   4  Prefactor     .97047        .14834        .20261E-03    .90619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65156
  Index      = 3.07009
  Normalizat = 0.958603
  Prefactor  = 0.970467
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.681     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6516        2.7695        .39299E-05   -1.5451    
   2  Index         3.0701        1.0944        .34155E-03   -.39627    
   3  Normalizat    .95860        .18809        .10241E-04   -.94430    
   4  Prefactor     .97047        .14825        .81045E-05   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57156e-11
Minuit parameter uncertainties:
  1  2.76967
  2  1.10495
  3  0.188221
  4  0.148314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195577': 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) = 6962.68123187
delta logL = 0.200652440137

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.652e+00  2.770e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.070e+00  1.105e+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:  9.705e-01  1.483e-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.586e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 3.07 +/- 1.10
Photon Flux (Free Index): 3.75e-08 +/- 3.77e-08
Energy Flux (Free Index): 7.24e-06 +/- 7.07e-06

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/195577/cmap_HighResolution_592876801_593136001_4FGL_J2207.5-5346_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='7.24e-06', photon_flux_error='2.88e-08', dlogl='2.01e-01', energy_flux='8.05e-06', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-28 05:57:19.465964', photon_index_error2='1.10', photon_index2='3.07', ts='1.06', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.08e-08', energy_flux_error2='7.07e-06', EG='0.97', time_epoch_completed='1632833839.47', return_code='0', job_id='195577', GAL2='0.97', EG2='0.96', return_code2='0', energy_flux_error='9.01e-06', photon_flux_error2='3.77e-08', ts2='1.48', photon_index='2.44' WHERE bin_id='1364' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 195577: <4FGL_J2207.5-5346_daily_bin1364> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1364 331.892 -53.7719 592876801 593136001 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

