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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1086
RA = 331.892, Dec = -53.7719
tmin = 520819201, tmax = 521078401
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='194100', job_status='RUN', time_executed='2021-09-28 05:37:49.718431', time_epoch_executed='1632832669.72' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194100/ft1_4FGL_J2207.5-5346_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194100/ft1_4FGL_J2207.5-5346_daily_bin1086.fits outfile=/scratch/kocevski/194100/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1086.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=520819201.0 tmax=521078401.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.50
user 3.25
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.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/194100/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1086.fits evtable="EVENTS" outfile="/scratch/kocevski/194100/ft1_filtered_4FGL_J2207.5-5346_daily_bin1086.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/194100/ft1_filtered_4FGL_J2207.5-5346_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/194100/ltcube_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.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/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.fits
.....................!
real 12.01
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194100/ft1_filtered_4FGL_J2207.5-5346_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/194100/ltcube_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.fits outfile=/scratch/kocevski/194100/expmap_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.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/194100/ltcube_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.fits
.....................!
real 190.76
user 185.66
sys 4.78

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/194100/ft1_filtered_4FGL_J2207.5-5346_daily_bin1086.fits scfile=/scratch/kocevski/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.fits outfile=/scratch/kocevski/194100/cmap_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194100/ft1_filtered_4FGL_J2207.5-5346_daily_bin1086.fits scfile=/scratch/kocevski/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.fits outfile=/scratch/kocevski/194100/cmap_HighResolution_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=331.892 yref=-53.7719 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194100/ft1_filtered_4FGL_J2207.5-5346_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/194100/ft2_4FGL_J2207.5-5346_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194100/Model_4FGL_J2207.5-5346_daily_bin1086.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/194100/ft1_filtered_4FGL_J2207.5-5346_daily_bin1086.fits.....................!
real 55.21
user 53.96
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.697       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.807       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9766       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2368       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54496       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8260       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6692       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7744       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79461       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0781       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=   7709.032     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2096 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8215       -.17856E-06** at limit **
   2  Prefactor     18.696        14.596        .18035E-07    .94872E-06
   3  Prefactor     11.807        30.342       -.30617E-08   -.17273E-05
   4  Prefactor     .10000E-03    114.73       -.27769E-05** at limit **
   5  Prefactor     .10000E-03    3.9862        .16741E-06** at limit **
   6  Prefactor     .10000E-03    9.9267        .21481E-08** at limit **
   7  Prefactor     9.9769        4.3713       -.92438E-06   -.25888E-03
   8  norm          .10000E-03    .28889       -.71073E-08** at limit **
   9  Prefactor     6.2449        23.376       -.40738E-06   -.43894E-04
  10  Prefactor     .52284        3.7849        .82712E-06   -.43182E-03
  11  Prefactor     .10000E-03    2.1127       -.50377E-07** at limit **
  12  Prefactor     .10000E-03    38.900       -.11286E-06** at limit **
  13  norm          4.0649        2.3344        .78925E-07   -.86035E-03
  14  Prefactor     .10000E-03    1.2240       -.11287E-06** at limit **
  15  Prefactor     9.8253        5.4657        .13492E-06   -.98056E-04
  16  Prefactor     7.6613        23.890       -.98662E-08   -.27149E-04
  17  Prefactor     8.7747        9.3933        .98494E-06   -.13814E-04
  18  Prefactor     .10000E-03    30.014       -.41537E-06** at limit **
  19  Prefactor     .10000E-03    10.730       -.28216E-06** at limit **
  20  Prefactor     .10000E-03    3.1619       -.35468E-07** at limit **
  21  Normalizat    .79499        .16246       -.38305E-06   -.80135E-04
  22  Prefactor     1.0779        .12368        .31377E-06   -.13298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.6965
  Prefactor  = 11.8065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97689
  norm       = 0.0001
  Prefactor  = 6.24486
  Prefactor  = 0.522838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06487
  Prefactor  = 0.0001
  Prefactor  = 9.82532
  Prefactor  = 7.66135
  Prefactor  = 8.77472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.794994
  Prefactor  = 1.07787
 **********
 **   18 **HESSE 
 **********

 FCN=   7709.032     FROM HESSE     STATUS=OK           350 CALLS     2446 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9048        .23103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.696        14.593        .92626E-04   -1.4843    
   3  Prefactor     11.807        30.399        .11659E-03   -1.5021    
   4  Prefactor     .10000E-03    115.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0616        .17124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9769        4.3959        .11602E-03   -1.5076    
   8  norm          .10000E-03    .48421        .91391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2449        23.235        .16074E-03   -1.5208    
  10  Prefactor     .52284        18.790        .30059E-02   -1.5563    
  11  Prefactor     .10000E-03    4.3294        .24317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0649        6.7640        .10001E-02   -1.5305    
  14  Prefactor     .10000E-03    2.3862        .18833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8253        5.4597        .12784E-03   -1.5081    
  16  Prefactor     7.6613        23.767        .14481E-03   -1.5154    
  17  Prefactor     8.7747        9.3417        .13532E-03   -1.5115    
  18  Prefactor     .10000E-03    30.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1647        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .79499        .18731        .27917E-03   -1.0025    
  22  Prefactor     1.0779        .14482        .19376E-03   -.90177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69604e-09
Minuit parameter uncertainties:
  1  3.86542e-07
  2  14.5957
  3  30.4393
  4  3.41752e-05
  5  7.58844e-06
  6  7.93614e-06
  7  4.39601
  8  2.78733e-07
  9  23.2689
  10  6.2703
  11  1.74085e-05
  12  2.27069e-05
  13  6.76531
  14  1.18994e-05
  15  5.45994
  16  23.7967
  17  9.34329
  18  1.82463e-05
  19  4.42631e-06
  20  4.19177e-07
  21  0.187457
  22  0.144868
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.741e-05  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.078e+00  1.449e-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:  7.950e-01  1.875e-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: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194100/likelihoodResults_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.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) = 7709.03304551
delta logL = -0.00109921978583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7709.03195109
delta logL = -4.79599475511e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15339E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4917       1.0000          .0000       10.000    
     3 'Normalizat'    .79526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0777       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=   7709.032     FROM MIGRAD    STATUS=FAILED        93 CALLS      262 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    7.2076        .19619E-02** at limit **
   2  Index         2.5656        6.2828        .94258E-02   -.13177E-03
   3  Normalizat    .79499        .17541        .27917E-03    .25285E-03
   4  Prefactor     1.0779        .14071        .19376E-03    .29331E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7709.032     FROM SIMPLEX   STATUS=UNCHANGED    116 CALLS      378 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    7.2076        .22352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5656        6.2828        .26382E-02   -.50852    
   3  Normalizat    .79499        .17541        .10217E-03   -1.0025    
   4  Prefactor     1.0779        .14071        .57668E-04   -.90177    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7708.969     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      511 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19604        1.8718        .10157E-03   -.36823E-04
   2  Index         3.8741        3.0241        .37703E-02   -.10342E-05
   3  Normalizat    .77528        .18455        .22333E-05   -.34615E-04
   4  Prefactor     1.0857        .14308        .77506E-05   -.62780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.196038
  Index      = 3.8741
  Normalizat = 0.775277
  Prefactor  = 1.08571
 **********
 **   18 **HESSE 
 **********

 FCN=   7708.969     FROM HESSE     STATUS=OK            25 CALLS      536 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19604        1.2193        .40630E-05   -1.5619    
   2  Index         3.8741        2.5045        .15081E-03   -.22713    
   3  Normalizat    .77528        .18714        .44667E-06   -1.0099    
   4  Prefactor     1.0857        .14471        .15501E-05   -.89925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21234e-12
Minuit parameter uncertainties:
  1  0.977601
  2  2.63051
  3  0.187291
  4  0.144762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194100': 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) = 7708.9687661
delta logL = 0.0631801884592

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.960e-01  9.776e-01  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.874e+00  2.631e+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.086e+00  1.448e-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:  7.753e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.892 -53.772

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/194100/cmap_HighResolution_520819201_521078401_4FGL_J2207.5-5346_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-28 05:49:34.246636', job_id='194100', GAL2='1.09', fit_tolerance='1e-08', EG2='0.78', EG='0.79', time_epoch_completed='1632833374.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.32e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1086' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 194100: <4FGL_J2207.5-5346_daily_bin1086> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1086> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:35:46 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:35:48 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:35:48 2021
Terminated at Tue Sep 28 05:49:37 2021
Results reported at Tue Sep 28 05:49:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1086 331.892 -53.7719 520819201 521078401 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 :                                   701.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            831 sec.

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

