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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1643
RA = 331.892, Dec = -53.7719
tmin = 665193601, tmax = 665452801
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='496554', job_status='RUN', time_executed='2022-02-02 00:38:36.694661', time_epoch_executed='1643791116.69' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496554/ft1_4FGL_J2207.5-5346_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496554/ft2_4FGL_J2207.5-5346_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496554/ft1_4FGL_J2207.5-5346_daily_bin1643.fits outfile=/scratch/kocevski/496554/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1643.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=665193601.0 tmax=665452801.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.63
user 3.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496554/ft1_filtered_4FGL_J2207.5-5346_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/496554/ft2_4FGL_J2207.5-5346_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/496554/ltcube_665193601_665452801_4FGL_J2207.5-5346_daily_bin1643.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/496554/ft2_4FGL_J2207.5-5346_daily_bin1643.fits
.....................!
real 13.00
user 12.56
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496554/ft1_filtered_4FGL_J2207.5-5346_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496554/ft2_4FGL_J2207.5-5346_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/496554/ltcube_665193601_665452801_4FGL_J2207.5-5346_daily_bin1643.fits outfile=/scratch/kocevski/496554/expmap_665193601_665452801_4FGL_J2207.5-5346_daily_bin1643.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/496554/ltcube_665193601_665452801_4FGL_J2207.5-5346_daily_bin1643.fits
.....................!
real 192.33
user 187.44
sys 4.52

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/496554/ft1_filtered_4FGL_J2207.5-5346_daily_bin1643.fits scfile=/scratch/kocevski/496554/ft2_4FGL_J2207.5-5346_daily_bin1643.fits outfile=/scratch/kocevski/496554/cmap_665193601_665452801_4FGL_J2207.5-5346_daily_bin1643.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.58
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496554/ft1_filtered_4FGL_J2207.5-5346_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496554/ft2_4FGL_J2207.5-5346_daily_bin1643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496554/Model_4FGL_J2207.5-5346_daily_bin1643.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/496554/ft1_filtered_4FGL_J2207.5-5346_daily_bin1643.fits.....................!
real 42.93
user 41.60
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8543       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46177E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.362       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.071       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    69.658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .31798E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.135       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7315       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .54025       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2984       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=   5488.487     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2417 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8724       -.11195E-05** at limit **
   2  Prefactor     1.8019        95.642        .74680E-04   -.18992E-06
   3  Prefactor     .10000E-03    219.60       -.88231E-05** at limit **
   4  Prefactor     56.431        89.405        .74939E-04    .27499E-05
   5  Prefactor     17.068        9.5871        .13882E-05   -.68441E-04
   6  Prefactor     .10000E-03    8.6277       -.14290E-06** at limit **
   7  Prefactor     .10000E-03    2.0086       -.35859E-06** at limit **
   8  norm          .10000E-03    .25770        .72647E-08** at limit **
   9  Prefactor     69.726        48.028        .36082E-04    .12286E-04
  10  Prefactor     .10000E-03    6.5065       -.10845E-05** at limit **
  11  Prefactor     2.0311        3.1026        .24979E-06   -.54863E-03
  12  Prefactor     .10000E-03    40.848       -.58888E-05** at limit **
  13  norm          .10000E-03    4.5006        .34515E-06** at limit **
  14  Prefactor     9.0673        5.7990       -.23325E-05   -.23705E-03
  15  Prefactor     .10000E-03    3.3290        .26025E-06** at limit **
  16  Prefactor     26.127        25.022        .33216E-05   -.31916E-04
  17  Prefactor     13.256        11.805        .22220E-05   -.60445E-04
  18  Prefactor     .10000E-03    36.662        .23789E-05** at limit **
  19  Prefactor     8.7305        21.963        .21441E-05   -.14671E-04
  20  Prefactor     .10000E-03    11.253        .78117E-06** at limit **
  21  Normalizat    .54026        .21029       -.14710E-04   -.19852E-03
  22  Prefactor     1.2985        .16378       -.14054E-05   -.18989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 1.80186
  Prefactor  = 0.000100003
  Prefactor  = 56.4312
  Prefactor  = 17.0677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.7255
  Prefactor  = 0.000100004
  Prefactor  = 2.03108
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.0673
  Prefactor  = 0.0001
  Prefactor  = 26.1268
  Prefactor  = 13.2556
  Prefactor  = 0.0001
  Prefactor  = 8.73053
  Prefactor  = 0.0001
  Normalizat = 0.54026
  Prefactor  = 1.29852
 **********
 **   18 **HESSE 
 **********

 FCN=   5488.487     FROM HESSE     STATUS=OK           342 CALLS     2759 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3669        .19490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8019        93.984        .30611E-03   -1.5439    
   3  Prefactor     .10000E-03    223.36        .19310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.431        89.294        .53433E-04   -1.4204    
   5  Prefactor     17.068        9.5839        .96937E-04   -1.4881    
   6  Prefactor     .10000E-03    8.6346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0233        .10251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .31012        .73243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     69.726        48.035        .48096E-04   -1.4036    
  10  Prefactor     .10000E-03    6.5645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0311        3.0792        .15455E-03   -1.5423    
  12  Prefactor     .10000E-03    40.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.085        .30644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0673        5.7981        .13309E-03   -1.5106    
  15  Prefactor     .10000E-03    3.3533        .13191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.127        25.027        .78361E-04   -1.4685    
  17  Prefactor     13.256        11.792        .11001E-03   -1.4980    
  18  Prefactor     .10000E-03    36.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7305        21.950        .13565E-03   -1.5117    
  20  Prefactor     .10000E-03    11.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .54026        .23160        .34541E-03   -1.1058    
  22  Prefactor     1.2985        .18186        .18725E-03   -.83351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72716e-09
Minuit parameter uncertainties:
  1  0.000187826
  2  26.0691
  3  0.00164578
  4  89.5071
  5  9.58477
  6  8.25877e-07
  7  1.36113e-05
  8  2.27537e-07
  9  48.0613
  10  0.000330478
  11  3.07942
  12  0.000225104
  13  2.4693e-05
  14  5.79845
  15  2.39387e-05
  16  25.0371
  17  11.7938
  18  9.92463e-06
  19  21.9699
  20  9.98809e-05
  21  0.232018
  22  0.181944
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.031e+00  3.079e+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:  1.299e+00  1.819e-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:  5.403e-01  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/496554/likelihoodResults_665193601_665452801_4FGL_J2207.5-5346_daily_bin1643.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) = 5488.28749173
delta logL = 0.199077790479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5488.28378928
delta logL = 0.202780237042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1478       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2239       1.0000          .0000       10.000    
     3 'Normalizat'    .52292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3063       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=   5488.284     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      241 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1482        28.637        .10812E-01    .65037E-03
   2  Index         3.2238        3.8677        .21639        .67796E-04
   3  Normalizat    .52289        .45803E-01    .79221E-01    .34242E-04
   4  Prefactor     1.3063        .36294E-01    .32501E-01   -.53453E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14823
  Index      = 3.22376
  Normalizat = 0.522889
  Prefactor  = 1.30629
 **********
 **   18 **HESSE 
 **********

 FCN=   5488.284     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1482        2.9003        .91192E-04   -1.5494    
   2  Index         3.2238        1.6364        .82945E-02   -.36318    
   3  Normalizat    .52289        .22242        .35083E-03   -1.1137    
   4  Prefactor     1.3063        .17930        .18674E-03   -.83120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49015e-09
Minuit parameter uncertainties:
  1  2.90061
  2  1.67187
  3  0.222794
  4  0.179385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496554': 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) = 5488.28378925
delta logL = 0.202780271257

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.148e+00  2.901e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.224e+00  1.672e+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:  1.306e+00  1.794e-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:  5.229e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 3.22 +/- 1.67
Photon Flux (Free Index): 3.30e-08 +/- 4.07e-08
Energy Flux (Free Index): 5.99e-06 +/- 7.22e-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/496554/cmap_HighResolution_665193601_665452801_4FGL_J2207.5-5346_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', comment='SUCCESS', energy_flux2='5.99e-06', dlogl='2.03e-01', photon_flux2='3.30e-08', job_status='DONE', time_completed='2022-02-02 00:48:30.010669', photon_index_error2='1.67', photon_index2='3.22', ts='0.59', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='7.22e-06', EG='0.54', time_epoch_completed='1643791710.01', return_code='0', job_id='496554', GAL2='1.31', EG2='0.52', return_code2='0', photon_flux_error2='4.07e-08', ts2='1.01', photon_index='2.44' WHERE bin_id='1643' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:48:30 PST 2022


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

Job <4FGL_J2207.5-5346_daily_bin1643> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Feb  2 00:35:50 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:35:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:35:52 2022
Terminated at Wed Feb  2 00:48:30 2022
Results reported at Wed Feb  2 00:48:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1643 331.892 -53.7719 665193601 665452801 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 :                                   595.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

