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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin631
RA = 331.892, Dec = -53.7719
tmin = 402883201, tmax = 403142401
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='192303', job_status='RUN', time_executed='2021-09-28 05:30:48.982279', time_epoch_executed='1632832248.98' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192303/ft1_4FGL_J2207.5-5346_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192303/ft2_4FGL_J2207.5-5346_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192303/ft1_4FGL_J2207.5-5346_daily_bin631.fits outfile=/scratch/kocevski/192303/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin631.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=402883201.0 tmax=403142401.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 4.73
user 4.50
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192303/ft1_filtered_4FGL_J2207.5-5346_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/192303/ft2_4FGL_J2207.5-5346_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/192303/ltcube_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.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/192303/ft2_4FGL_J2207.5-5346_daily_bin631.fits
.....................!
real 11.69
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192303/ft1_filtered_4FGL_J2207.5-5346_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/192303/ft2_4FGL_J2207.5-5346_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/192303/ltcube_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.fits outfile=/scratch/kocevski/192303/expmap_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.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/192303/ltcube_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.fits
.....................!
real 189.49
user 185.52
sys 3.67

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/192303/ft1_filtered_4FGL_J2207.5-5346_daily_bin631.fits scfile=/scratch/kocevski/192303/ft2_4FGL_J2207.5-5346_daily_bin631.fits outfile=/scratch/kocevski/192303/cmap_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192303/ft1_filtered_4FGL_J2207.5-5346_daily_bin631.fits scfile=/scratch/kocevski/192303/ft2_4FGL_J2207.5-5346_daily_bin631.fits outfile=/scratch/kocevski/192303/cmap_HighResolution_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192303/ft1_filtered_4FGL_J2207.5-5346_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/192303/ft2_4FGL_J2207.5-5346_daily_bin631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192303/Model_4FGL_J2207.5-5346_daily_bin631.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/192303/ft1_filtered_4FGL_J2207.5-5346_daily_bin631.fits.....................!
real 50.67
user 49.46
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.048       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.345       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6105       1.0000         .10000E-03   10000.    
    13 'norm      '    9.2956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7299       1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.241       1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.608       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99991       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97693       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=   6777.963     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2384 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .83100        .71236E-08** at limit **
   2  Prefactor     12.570        14.597        .14381E-06    .69552E-06
   3  Prefactor     .10000E-03    15.134        .28517E-07** at limit **
   4  Prefactor     .10000E-03    51.707       -.80771E-06** at limit **
   5  Prefactor     .10000E-03    1.7141        .16460E-07** at limit **
   6  Prefactor     47.050        27.122       -.12639E-06   -.18721E-05
   7  Prefactor     12.345        5.0374       -.72707E-07   -.21208E-04
   8  norm          .10000E-03    .24711        .55822E-08** at limit **
   9  Prefactor     .10000E-03    52.788        .85015E-06** at limit **
  10  Prefactor     11.881        9.8530       -.88846E-06   -.13215E-03
  11  Prefactor     4.2245        4.2194        .15498E-05   -.89885E-04
  12  Prefactor     7.5757        318.73        .16165E-04    .72721E-07
  13  norm          9.2962        8.2161       -.29345E-06   -.26774E-04
  14  Prefactor     1.2410        3.9299        .57957E-06   -.10473E-04
  15  Prefactor     .10000E-03    5.0506       -.14042E-06** at limit **
  16  Prefactor     .10000E-03    30.815       -.18654E-06** at limit **
  17  Prefactor     7.7298        13.728       -.11058E-07   -.73808E-05
  18  Prefactor     68.996        83.462       -.24167E-06   -.56529E-06
  19  Prefactor     62.241        42.086        .80491E-07   -.90581E-06
  20  Prefactor     75.604        30.111        .42549E-06   -.27424E-05
  21  Normalizat    1.0001        .19502       -.92300E-06   -.13896E-04
  22  Prefactor     .97680        .14093        .72413E-07   -.53632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.5697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.0497
  Prefactor  = 12.3449
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8811
  Prefactor  = 4.22453
  Prefactor  = 7.57566
  norm       = 9.29618
  Prefactor  = 1.24096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.72984
  Prefactor  = 68.996
  Prefactor  = 62.241
  Prefactor  = 75.6042
  Normalizat = 1.00007
  Prefactor  = 0.976803
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.963     FROM HESSE     STATUS=OK           344 CALLS     2728 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .83975        .73268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.570        14.607        .11299E-03   -1.4999    
   3  Prefactor     .10000E-03    15.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7178        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.050        27.119        .58457E-04   -1.4335    
   7  Prefactor     12.345        5.0351        .11244E-03   -1.5005    
   8  norm          .10000E-03    .25349        .79864E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.881        9.8828        .11622E-03   -1.5018    
  11  Prefactor     4.2245        4.2222        .79648E-03   -1.5297    
  12  Prefactor     7.5757        319.38        .14537E-03   -1.5157    
  13  norm          9.2962        8.2164        .13145E-03   -1.5098    
  14  Prefactor     1.2410        3.9397        .27281E-03   -1.5485    
  15  Prefactor     .10000E-03    5.1887        .36103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7298        13.711        .14423E-03   -1.5152    
  18  Prefactor     68.996        83.359        .48325E-04   -1.4045    
  19  Prefactor     62.241        42.089        .50862E-04   -1.4128    
  20  Prefactor     75.604        30.244        .46178E-04   -1.3967    
  21  Normalizat    1.0001        .22479        .27965E-03   -.93028    
  22  Prefactor     .97680        .16362        .21702E-03   -.93507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43461e-11
Minuit parameter uncertainties:
  1  4.73466e-07
  2  14.6114
  3  5.35036e-06
  4  1.33984e-05
  5  1.18608e-06
  6  27.1261
  7  5.03531
  8  2.6654e-07
  9  2.47908e-05
  10  9.88415
  11  4.22251
  12  98.9454
  13  8.2174
  14  3.94055
  15  1.38639e-05
  16  5.15087e-05
  17  13.7167
  18  83.501
  19  42.1087
  20  30.2497
  21  0.225003
  22  0.163701
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  4.225e+00  4.223e+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.768e-01  1.637e-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.000e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.21e-05

TS (Fixed Index): 1.30
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192303/likelihoodResults_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.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) = 6777.29664597
delta logL = 0.665978502341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6777.24534921
delta logL = 0.717275264216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8289       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2560       1.0000          .0000       10.000    
     3 'Normalizat'    1.0272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97123       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=   6777.245     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      221 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8149        2.0586        .77158E-02   -.11230E-03
   2  Index         1.2540        .38088        .22149       -.91703E-04
   3  Normalizat    1.0271        .17690        .62523E-01    .13233E-04
   4  Prefactor     .97131        .13650        .45907E-01    .10887E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81488
  Index      = 1.25401
  Normalizat = 1.02715
  Prefactor  = 0.971306
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.245     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8149        4.5948        .11595E-03   -1.5439    
   2  Index         1.2540        .94070        .87539E-02   -.84685    
   3  Normalizat    1.0271        .20696        .27652E-03   -.92127    
   4  Prefactor     .97131        .15987        .21762E-03   -.93692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03645e-11
Minuit parameter uncertainties:
  1  4.59565
  2  0.953833
  3  0.207118
  4  0.159951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192303': 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) = 6777.24534471
delta logL = 0.717279762982

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.815e+00  4.596e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  1.254e+00  9.538e-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:  9.713e-01  1.600e-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.027e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 1.25 +/- 0.95
Photon Flux (Free Index): 7.29e-09 +/- 1.54e-08
Energy Flux (Free Index): 5.16e-05 +/- 8.10e-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/192303/cmap_HighResolution_402883201_403142401_4FGL_J2207.5-5346_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='5.16e-05', photon_flux_error='3.87e-08', dlogl='7.17e-01', energy_flux='1.21e-05', photon_flux2='7.29e-09', job_status='DONE', time_completed='2021-09-28 05:41:50.951376', photon_index_error2='0.95', photon_index2='1.25', ts='1.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.10e-05', EG='1.00', time_epoch_completed='1632832910.95', return_code='0', job_id='192303', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='1.54e-08', ts2='2.72', photon_index='2.44' WHERE bin_id='631' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 192303: <4FGL_J2207.5-5346_daily_bin631> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin631> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:30:16 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:30:17 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:30:17 2021
Terminated at Tue Sep 28 05:41:51 2021
Results reported at Tue Sep 28 05:41:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin631 331.892 -53.7719 402883201 403142401 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

