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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1288
RA = 331.892, Dec = -53.7719
tmin = 573177601, tmax = 573436801
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='195448', job_status='RUN', time_executed='2021-09-28 05:44:43.368388', time_epoch_executed='1632833083.37' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195448

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195448/ft1_4FGL_J2207.5-5346_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195448/ft2_4FGL_J2207.5-5346_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195448/ft1_4FGL_J2207.5-5346_daily_bin1288.fits outfile=/scratch/kocevski/195448/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1288.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=573177601.0 tmax=573436801.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 5.52
user 5.24
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195448/ft2_4FGL_J2207.5-5346_daily_bin1288.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/195448/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1288.fits evtable="EVENTS" outfile="/scratch/kocevski/195448/ft1_filtered_4FGL_J2207.5-5346_daily_bin1288.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/195448/ft1_filtered_4FGL_J2207.5-5346_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/195448/ft2_4FGL_J2207.5-5346_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/195448/ltcube_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.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/195448/ft2_4FGL_J2207.5-5346_daily_bin1288.fits
.....................!
real 12.08
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195448/ft1_filtered_4FGL_J2207.5-5346_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/195448/ft2_4FGL_J2207.5-5346_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/195448/ltcube_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.fits outfile=/scratch/kocevski/195448/expmap_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.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/195448/ltcube_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.fits
.....................!
real 190.02
user 185.01
sys 4.65

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/195448/ft1_filtered_4FGL_J2207.5-5346_daily_bin1288.fits scfile=/scratch/kocevski/195448/ft2_4FGL_J2207.5-5346_daily_bin1288.fits outfile=/scratch/kocevski/195448/cmap_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195448/ft1_filtered_4FGL_J2207.5-5346_daily_bin1288.fits scfile=/scratch/kocevski/195448/ft2_4FGL_J2207.5-5346_daily_bin1288.fits outfile=/scratch/kocevski/195448/cmap_HighResolution_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6685       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.672       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4050       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11945E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.901       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.113       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.603       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2532       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94364       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=   5538.652     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2447 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6683        3.5834       -.20661E-06   -.15717E-03
   2  Prefactor     72.140        32.498        .37298E-05   -.14113E-04
   3  Prefactor     .10000E-03    26.511        .75327E-05** at limit **
   4  Prefactor     .10000E-03    81.815        .53207E-04** at limit **
   5  Prefactor     10.680        11.505       -.20084E-06   -.87065E-04
   6  Prefactor     .10000E-03    24.196       -.14041E-05** at limit **
   7  Prefactor     2.4016        4.6056       -.51539E-06   -.58368E-03
   8  norm          .10000E-03    .34817        .57604E-07** at limit **
   9  Prefactor     .10000E-03    16.861        .68578E-06** at limit **
  10  Prefactor     .44898        7.4082        .30107E-05   -.92560E-03
  11  Prefactor     .18463        2.2388       -.13806E-05    .61067E-03
  12  Prefactor     .10000E-03    121.26       -.52480E-04** at limit **
  13  norm          .10000E-03    2.2246        .75396E-07** at limit **
  14  Prefactor     17.835        7.3507       -.94038E-06   -.41963E-04
  15  Prefactor     4.8099        6.6834        .21694E-06   -.15805E-03
  16  Prefactor     .10000E-03    47.420       -.19235E-04** at limit **
  17  Prefactor     36.903        19.559        .16387E-05    .27476E-03
  18  Prefactor     23.089        227.71       -.45912E-04    .87155E-05
  19  Prefactor     58.627        55.353        .20623E-04    .20579E-04
  20  Prefactor     .10000E-03    6.9560       -.33104E-06** at limit **
  21  Normalizat    1.2531        .22058       -.93968E-06    .25799E-04
  22  Prefactor     .94364        .16121       -.39963E-06   -.72057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66834
  Prefactor  = 72.14
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6803
  Prefactor  = 0.0001
  Prefactor  = 2.40161
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.448976
  Prefactor  = 0.184632
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8354
  Prefactor  = 4.80994
  Prefactor  = 0.0001
  Prefactor  = 36.9032
  Prefactor  = 23.0895
  Prefactor  = 58.6268
  Prefactor  = 0.0001
  Normalizat = 1.25311
  Prefactor  = 0.943639
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.652     FROM HESSE     STATUS=OK           346 CALLS     2793 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6683        3.5835        .99106E-04   -1.5191    
   2  Prefactor     72.140        32.482        .47271E-04   -1.4007    
   3  Prefactor     .10000E-03    26.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    81.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.680        11.497        .12265E-03   -1.5054    
   6  Prefactor     .10000E-03    24.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4016        4.5843        .21086E-03   -1.5398    
   8  norm          .10000E-03    .60949        .85147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44898        29.699        .38100E-02   -1.5574    
  11  Prefactor     .18463        10.513        .21087E-02   -1.5622    
  12  Prefactor     .10000E-03    121.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2247        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.835        7.3599        .94842E-04   -1.4863    
  15  Prefactor     4.8099        6.6749        .18347E-03   -1.5269    
  16  Prefactor     .10000E-03    47.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.903        19.611        .65976E-04   -1.4492    
  18  Prefactor     23.089        227.70        .83318E-04   -1.4747    
  19  Prefactor     58.627        55.369        .52407E-04   -1.4175    
  20  Prefactor     .10000E-03    6.9613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2531        .25619        .27506E-03   -.84977    
  22  Prefactor     .94364        .18743        .23537E-03   -.94632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14169e-08
Minuit parameter uncertainties:
  1  3.58366
  2  32.4898
  3  1.56192e-05
  4  4.35894e-08
  5  11.4993
  6  1.78817e-05
  7  4.58497
  8  1.02392e-06
  9  8.26864e-06
  10  7.30615
  11  2.78613
  12  9.30881e-05
  13  3.22626e-07
  14  7.36024
  15  6.67595
  16  6.36474e-05
  17  19.6142
  18  145.743
  19  55.4176
  20  9.3444e-06
  21  0.256446
  22  0.187563
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.846e-01  2.786e+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.436e-01  1.876e-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.253e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/195448/likelihoodResults_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.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): 102
logL (Free Index) = 5538.33969361
delta logL = 0.312034106578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5537.95364297
delta logL = 0.698084752717

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 'Index     '    8.8466       1.0000          .0000       10.000    
     3 'Normalizat'    1.1754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98088       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5537.954     FROM MIGRAD    STATUS=FAILED       203 CALLS      481 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .77434E-02    .25685E-03** at limit **
   2  Index         8.8465        8.5935        .14336        .15472E-03
   3  Normalizat    1.1753        .72105E-01    .27488E-02    .54164E-04
   4  Prefactor     .98094        .53406E-01    .23542E-03    .54955E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5537.954     FROM SIMPLEX   STATUS=UNCHANGED    168 CALLS      649 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .77434E-02    .42754E-05** at limit **
   2  Index         8.8465        8.5935        .31982E-03    .15472E-03
   3  Normalizat    1.1753        .72105E-01    .56281E-05    .54164E-04
   4  Prefactor     .98094        .53406E-01    .49876E-05    .54955E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5537.954     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      685 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .86483E-03    .12020E-04** at limit **
   2  Index         8.8465        .51870        .10982E-02    .52587E-05
   3  Normalizat    1.1753        .25241        .10995E-03    .51699E-06
   4  Prefactor     .98094        .18856        .94168E-05    .23904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.8465
  Normalizat = 1.17533
  Prefactor  = 0.980937
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.954     FROM HESSE     STATUS=OK            23 CALLS      708 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .86283E-03    .48082E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8465        .50981        .43930E-04    .87774    
   3  Normalizat    1.1753        .25209        .43980E-05   -.87369    
   4  Prefactor     .98094        .18828        .18834E-05   -.93368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64944e-11
Minuit parameter uncertainties:
  1  1.28441e-08
  2  0.511996
  3  0.252353
  4  0.188409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195448': 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) = 5537.95364159
delta logL = 0.698086129505

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.284e-08  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  8.846e+00  5.120e-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.809e-01  1.884e-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.175e+00  2.524e-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): 8.85 +/- 0.51
Photon Flux (Free Index): 6.51e-08 +/- 6.10e-08
Energy Flux (Free Index): 7.42e-06 +/- 6.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/195448/cmap_HighResolution_573177601_573436801_4FGL_J2207.5-5346_daily_bin1288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', comment='SUCCESS', energy_flux2='7.42e-06', dlogl='6.98e-01', photon_flux2='6.51e-08', job_status='DONE', time_completed='2021-09-28 05:56:48.492763', photon_index_error2='0.51', photon_index2='8.85', ts='0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.81e-08', energy_flux_error2='6.92e-06', EG='1.25', time_epoch_completed='1632833808.49', return_code='0', job_id='195448', GAL2='0.98', EG2='1.18', return_code2='0', photon_flux_error2='6.10e-08', ts2='1.48', photon_index='2.44' WHERE bin_id='1288' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:56:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 195448: <4FGL_J2207.5-5346_daily_bin1288> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1288 331.892 -53.7719 573177601 573436801 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 :                             253.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

