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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1159
RA = 331.892, Dec = -53.7719
tmin = 539740801, tmax = 540000001
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='195244', job_status='RUN', time_executed='2021-09-28 05:41:02.557666', time_epoch_executed='1632832862.56' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195244/ft1_4FGL_J2207.5-5346_daily_bin1159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195244/ft1_4FGL_J2207.5-5346_daily_bin1159.fits outfile=/scratch/kocevski/195244/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1159.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=539740801.0 tmax=540000001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.11
user 3.89
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.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/195244/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1159.fits evtable="EVENTS" outfile="/scratch/kocevski/195244/ft1_filtered_4FGL_J2207.5-5346_daily_bin1159.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/195244/ft1_filtered_4FGL_J2207.5-5346_daily_bin1159.fits" evtable="EVENTS" scfile=/scratch/kocevski/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.fits sctable="SC_DATA" outfile=/scratch/kocevski/195244/ltcube_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.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/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.fits
.....................!
real 11.82
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195244/ft1_filtered_4FGL_J2207.5-5346_daily_bin1159.fits evtable="EVENTS" scfile=/scratch/kocevski/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.fits sctable="SC_DATA" expcube=/scratch/kocevski/195244/ltcube_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.fits outfile=/scratch/kocevski/195244/expmap_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.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/195244/ltcube_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.fits
.....................!
real 193.08
user 187.47
sys 5.29

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/195244/ft1_filtered_4FGL_J2207.5-5346_daily_bin1159.fits scfile=/scratch/kocevski/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.fits outfile=/scratch/kocevski/195244/cmap_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195244/ft1_filtered_4FGL_J2207.5-5346_daily_bin1159.fits scfile=/scratch/kocevski/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.fits outfile=/scratch/kocevski/195244/cmap_HighResolution_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195244/ft1_filtered_4FGL_J2207.5-5346_daily_bin1159.fits evtable="EVENTS" scfile=/scratch/kocevski/195244/ft2_4FGL_J2207.5-5346_daily_bin1159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195244/Model_4FGL_J2207.5-5346_daily_bin1159.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/195244/ft1_filtered_4FGL_J2207.5-5346_daily_bin1159.fits.....................!
real 53.66
user 52.31
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7124       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.667       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9322       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5409       1.0000         .10000E-03   10000.    
     8 'norm      '    .99749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.054       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4765       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2284       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29234E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.589       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79411       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98869       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=   7259.915     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2342 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7125        2.7310        .82422E-07   -.41430E-04
   2  Prefactor     .10000E-03    6.7093       -.27906E-09** at limit **
   3  Prefactor     49.205        42.917       -.54807E-07   -.24806E-05
   4  Prefactor     32.663        50.018       -.26497E-05   -.70048E-04
   5  Prefactor     5.9322        4.8151        .91605E-06   -.18895E-02
   6  Prefactor     .10000E-03    15.237       -.12675E-05** at limit **
   7  Prefactor     3.5410        4.0284        .18380E-05    .48371E-03
   8  norm          .99759        .78192        .64840E-07   -.16259E-03
   9  Prefactor     27.055        37.109        .87010E-06    .24684E-04
  10  Prefactor     9.4756        7.9071       -.39451E-07   -.43798E-04
  11  Prefactor     .10000E-03    .86028       -.14078E-08** at limit **
  12  Prefactor     .10000E-03    38.514       -.16703E-05** at limit **
  13  norm          .10000E-03    2.5659       -.69293E-07** at limit **
  14  Prefactor     6.2286        3.3812        .13088E-06    .18471E-04
  15  Prefactor     8.1856        5.3971        .90735E-06    .27272E-03
  16  Prefactor     .10000E-03    11.794        .54067E-06** at limit **
  17  Prefactor     .10000E-03    5.4713        .43512E-06** at limit **
  18  Prefactor     .10000E-03    25.753        .22922E-05** at limit **
  19  Prefactor     36.587        37.686       -.72441E-06   -.47536E-04
  20  Prefactor     .10000E-03    3.4178       -.88649E-08** at limit **
  21  Normalizat    .79404        .16452       -.14447E-05   -.67573E-04
  22  Prefactor     .98874        .12571       -.49637E-07   -.14182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.71245
  Prefactor  = 0.0001
  Prefactor  = 49.2055
  Prefactor  = 32.6633
  Prefactor  = 5.93222
  Prefactor  = 0.0001
  Prefactor  = 3.541
  norm       = 0.997594
  Prefactor  = 27.0554
  Prefactor  = 9.47562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.22858
  Prefactor  = 8.18559
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.5873
  Prefactor  = 0.0001
  Normalizat = 0.794038
  Prefactor  = 0.98874
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.915     FROM HESSE     STATUS=OK           344 CALLS     2686 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7125        2.7361        .93454E-04   -1.5230    
   2  Prefactor     .10000E-03    6.7296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.205        42.974        .57167E-04   -1.4304    
   4  Prefactor     32.663        50.253        .70108E-04   -1.4564    
   5  Prefactor     5.9322        7.6742        .82436E-03   -1.5221    
   6  Prefactor     .10000E-03    15.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5410        4.1204        .17534E-03   -1.5332    
   8  norm          .99759        .75001        .64091E-03   -1.5508    
   9  Prefactor     27.055        37.140        .77021E-04   -1.4667    
  10  Prefactor     9.4756        7.9068        .13018E-03   -1.5092    
  11  Prefactor     .10000E-03    .86573        .77152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5721        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2286        3.3835        .11103E-03   -1.5209    
  15  Prefactor     8.1856        5.4031        .14013E-03   -1.5136    
  16  Prefactor     .10000E-03    11.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.402        .38298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     36.587        37.771        .66256E-04   -1.4497    
  20  Prefactor     .10000E-03    3.4201        .15384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .79404        .19098        .27841E-03   -1.0029    
  22  Prefactor     .98874        .14796        .20036E-03   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32337e-09
Minuit parameter uncertainties:
  1  2.73621
  2  1.01196e-06
  3  43.001
  4  50.3186
  5  7.67544
  6  8.86806e-05
  7  4.12072
  8  0.750013
  9  37.1714
  10  7.90764
  11  6.72186e-08
  12  0.000192693
  13  1.57046e-06
  14  3.38359
  15  5.40342
  16  2.02047e-05
  17  0.000255596
  18  0.000204707
  19  37.7956
  20  7.81711e-07
  21  0.191142
  22  0.14802
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  6.722e-08  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.887e-01  1.480e-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.940e-01  1.911e-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: 4.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195244/likelihoodResults_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.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) = 7259.92058136
delta logL = -0.00543837552596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7259.9151427
delta logL = 2.88652699965e-07

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     '    2.4241       1.0000          .0000       10.000    
     3 'Normalizat'    .79403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98873       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.

 FCN=   7259.915     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4031        .77574E-02** at limit **
   2  Index         2.0201        6.0059        .50000       -.60954E-06
   3  Normalizat    .79404        .12678E-01    .27841E-03   -.41161E-03
   4  Prefactor     .98874        .10148E-01    .20036E-03   -.53896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0201
  Normalizat = 0.794037
  Prefactor  = 0.98874
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.915     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.423        .81531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0201        5.9947        .50000       -.63849    
   3  Normalizat    .79404        .46073E-01    .11136E-04   -1.0029    
   4  Prefactor     .98874        .36877E-01    .40071E-04   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.66896e-09
Minuit parameter uncertainties:
  1  0.000359604
  2  659.199
  3  0.0460751
  4  0.0368782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195244': 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) = 7259.9151372
delta logL = 5.78860817768e-06

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  3.596e-04  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.020e+00  6.592e+02  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.887e-01  3.688e-02  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.940e-01  4.608e-02  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/195244/cmap_HighResolution_539740801_540000001_4FGL_J2207.5-5346_daily_bin1159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-03', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2021-09-28 05:53:07.032702', job_id='195244', GAL2='0.99', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632833587.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1159' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 195244: <4FGL_J2207.5-5346_daily_bin1159> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1159> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:24 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:26 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:26 2021
Terminated at Tue Sep 28 05:53:07 2021
Results reported at Tue Sep 28 05:53:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1159 331.892 -53.7719 539740801 540000001 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

