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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1472
RA = 331.892, Dec = -53.7719
tmin = 620870401, tmax = 621129601
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='196712', job_status='RUN', time_executed='2021-09-28 05:45:52.284810', time_epoch_executed='1632833152.28' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196712/ft1_4FGL_J2207.5-5346_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196712/ft1_4FGL_J2207.5-5346_daily_bin1472.fits outfile=/scratch/kocevski/196712/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1472.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=620870401.0 tmax=621129601.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.20
user 2.99
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.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/196712/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1472.fits evtable="EVENTS" outfile="/scratch/kocevski/196712/ft1_filtered_4FGL_J2207.5-5346_daily_bin1472.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196712/ft1_filtered_4FGL_J2207.5-5346_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/196712/ltcube_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.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/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.fits
.....................!
real 12.27
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196712/ft1_filtered_4FGL_J2207.5-5346_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/196712/ltcube_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.fits outfile=/scratch/kocevski/196712/expmap_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.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/196712/ltcube_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.fits
.....................!
real 191.85
user 186.97
sys 4.54

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/196712/ft1_filtered_4FGL_J2207.5-5346_daily_bin1472.fits scfile=/scratch/kocevski/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.fits outfile=/scratch/kocevski/196712/cmap_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196712/ft1_filtered_4FGL_J2207.5-5346_daily_bin1472.fits scfile=/scratch/kocevski/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.fits outfile=/scratch/kocevski/196712/cmap_HighResolution_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/196712/ft1_filtered_4FGL_J2207.5-5346_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/196712/ft2_4FGL_J2207.5-5346_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196712/Model_4FGL_J2207.5-5346_daily_bin1472.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/196712/ft1_filtered_4FGL_J2207.5-5346_daily_bin1472.fits.......................!
real 24.16
user 22.38
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.787       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    190.93       1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13664E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11895E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15104E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41855E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26374E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14675E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14170E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4822       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .20843       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=   1454.358     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2713 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.797        7.8497        .41224E-06    .18692E-03
   2  Prefactor     71.540        49.361        .83302E-06    .39960E-04
   3  Prefactor     190.88        121.42        .26095E-06    .28273E-05
   4  Prefactor     70.698        122.63        .19709E-05   -.76088E-04
   5  Prefactor     .10000E-03    32.651        .17921E-05** at limit **
   6  Prefactor     .10000E-03    25.307       -.18908E-06** at limit **
   7  Prefactor     .10000E-03    5.8671        .17314E-06** at limit **
   8  norm          .10000E-03    .39197        .15732E-06** at limit **
   9  Prefactor     .10000E-03    120.10        .72593E-06** at limit **
  10  Prefactor     11.788        43.265       -.67054E-05   -.47937E-05
  11  Prefactor     3.6841        13.988        .13126E-04   -.14477E-04
  12  Prefactor     .10000E-03    280.15        .63738E-06** at limit **
  13  norm          .10000E-03    13.382       -.34003E-07** at limit **
  14  Prefactor     .10000E-03    34.708        .17251E-06** at limit **
  15  Prefactor     .10000E-03    84.306       -.58904E-06** at limit **
  16  Prefactor     .10000E-03    133.77       -.47043E-06** at limit **
  17  Prefactor     .10000E-03    37.118        .21532E-07** at limit **
  18  Prefactor     .10000E-03    372.98       -.77084E-07** at limit **
  19  Prefactor     .10000E-03    343.88        .38016E-06** at limit **
  20  Prefactor    10000.0        6351.1        .10520E-04** at limit **
  21  Normalizat    1.4819        .47831        .63191E-05   -.69774E-04
  22  Prefactor     .20850        .27093       -.15806E-04   -.29636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7969
  Prefactor  = 71.5404
  Prefactor  = 190.882
  Prefactor  = 70.6981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7879
  Prefactor  = 3.68409
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Normalizat = 1.48189
  Prefactor  = 0.208503
 **********
 **   18 **HESSE 
 **********

 FCN=   1454.358     FROM HESSE     STATUS=OK           330 CALLS     3043 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.797        7.8659        .29579E-03   -1.4774    
   2  Prefactor     71.540        49.432        .47453E-04   -1.4014    
   3  Prefactor     190.88        121.71        .14615E-03   -1.2936    
   4  Prefactor     70.698        122.32        .23828E-03   -1.4024    
   5  Prefactor     .10000E-03    32.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8794        .90188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .40709        .46591E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    120.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.788        43.472        .11679E-03   -1.5021    
  11  Prefactor     3.6841        14.229        .10548E-02   -1.5324    
  12  Prefactor     .10000E-03    280.16        .20644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.382        .13629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    84.676        .21243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    133.79        .21443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    372.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    343.87        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        6350.8        .18640E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4819        .52846        .23799E-03   -.78288    
  22  Prefactor     .20850        .28915        .34377E-03   -1.2810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7581e-10
Minuit parameter uncertainties:
  1  7.8663
  2  49.4604
  3  121.871
  4  122.759
  5  2.66278e-05
  6  2.61105e-05
  7  4.26581e-07
  8  1.55169e-06
  9  0.000259744
  10  43.5891
  11  14.242
  12  0.00143267
  13  7.94397e-06
  14  4.62491e-05
  15  0.000663168
  16  0.000447055
  17  1.32927e-05
  18  0.000159008
  19  0.000697032
  20  0.0577498
  21  0.530437
  22  0.291165
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  3.684e+00  1.424e+01  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:  2.085e-01  2.912e-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.482e+00  5.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 3.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196712/likelihoodResults_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.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) = 1453.67505831
delta logL = 0.683285869455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1453.59959377
delta logL = 0.758750409541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60654       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9550       1.0000          .0000       10.000    
     3 'Normalizat'    1.2416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31003       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=   1453.600     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59109        13.943        .55584E-02    .57143E-03
   2  Index         4.9698        7.1365        .82337E-01    .51929E-04
   3  Normalizat    1.2431        .13922        .57577E-01    .40258E-05
   4  Prefactor     .30928        .81963E-01    .64400E-01    .14846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.591088
  Index      = 4.96983
  Normalizat = 1.2431
  Prefactor  = 0.309283
 **********
 **   18 **HESSE 
 **********

 FCN=   1453.600     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59109        22.626        .24829E-04   -1.5554    
   2  Index         4.9698        7.4529        .34253E-02   -.60348E-02
   3  Normalizat    1.2431        .48780        .25461E-03   -.85281    
   4  Prefactor     .30928        .27237        .28517E-03   -1.2172    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.47989e-11
Minuit parameter uncertainties:
  1  7.31651
  2  7.02317
  3  0.489606
  4  0.273511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196712': 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): 102
logL (Free Index) = 1453.59957768
delta logL = 0.758766504639

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.911e-01  7.317e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  4.970e+00  7.023e+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:  3.093e-01  2.735e-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.243e+00  4.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 4.97 +/- 7.02
Photon Flux (Free Index): 3.16e-07 +/- 2.87e-07
Energy Flux (Free Index): 4.22e-05 +/- 4.68e-05

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/196712/cmap_HighResolution_620870401_621129601_4FGL_J2207.5-5346_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-02', comment='SUCCESS', energy_flux2='4.22e-05', dlogl='7.59e-01', photon_flux2='3.16e-07', job_status='DONE', time_completed='2021-09-28 05:52:47.787148', photon_index_error2='7.02', photon_index2='4.97', ts='0.09', fit_tolerance='1e-08', GAL='0.21', photon_index_error='0.00', photon_flux_upper_limit='3.68e-07', energy_flux_error2='4.68e-05', EG='1.48', time_epoch_completed='1632833567.79', return_code='0', job_id='196712', GAL2='0.31', EG2='1.24', return_code2='102', photon_flux_error2='2.87e-07', ts2='1.82', photon_index='2.44' WHERE bin_id='1472' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:52:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 196712: <4FGL_J2207.5-5346_daily_bin1472> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1472> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:15 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45: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:45:17 2021
Terminated at Tue Sep 28 05:52:48 2021
Results reported at Tue Sep 28 05:52:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1472 331.892 -53.7719 620870401 621129601 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 :                                   399.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   451 sec.
    Turnaround time :                            453 sec.

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

