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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin500
RA = 331.892, Dec = -53.7719
tmin = 368928001, tmax = 369187201
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='191259', job_status='RUN', time_executed='2021-09-28 05:26:28.286690', time_epoch_executed='1632831988.29' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191259

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191259/ft1_4FGL_J2207.5-5346_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191259/ft2_4FGL_J2207.5-5346_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191259/ft1_4FGL_J2207.5-5346_daily_bin500.fits outfile=/scratch/kocevski/191259/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin500.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=368928001.0 tmax=369187201.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.34
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191259/ft2_4FGL_J2207.5-5346_daily_bin500.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/191259/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/191259/ft1_filtered_4FGL_J2207.5-5346_daily_bin500.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.48
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191259/ft1_filtered_4FGL_J2207.5-5346_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/191259/ft2_4FGL_J2207.5-5346_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/191259/ltcube_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.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/191259/ft2_4FGL_J2207.5-5346_daily_bin500.fits
.....................!
real 11.77
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191259/ft1_filtered_4FGL_J2207.5-5346_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/191259/ft2_4FGL_J2207.5-5346_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/191259/ltcube_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.fits outfile=/scratch/kocevski/191259/expmap_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.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/191259/ltcube_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.fits
.....................!
real 191.58
user 185.87
sys 5.40

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/191259/ft1_filtered_4FGL_J2207.5-5346_daily_bin500.fits scfile=/scratch/kocevski/191259/ft2_4FGL_J2207.5-5346_daily_bin500.fits outfile=/scratch/kocevski/191259/cmap_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191259/ft1_filtered_4FGL_J2207.5-5346_daily_bin500.fits scfile=/scratch/kocevski/191259/ft2_4FGL_J2207.5-5346_daily_bin500.fits outfile=/scratch/kocevski/191259/cmap_HighResolution_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191259/ft1_filtered_4FGL_J2207.5-5346_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/191259/ft2_4FGL_J2207.5-5346_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191259/Model_4FGL_J2207.5-5346_daily_bin500.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/191259/ft1_filtered_4FGL_J2207.5-5346_daily_bin500.fits.....................!
real 56.56
user 55.24
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.185       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52432E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.032       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8907       1.0000         .10000E-03   10000.    
     8 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.932       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29849E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1301       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.441       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9470       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0088       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.805       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79815       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1339       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=   7814.103     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2435 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52125        1.9000       -.58889E-06   -.74918E-03
   2  Prefactor     .10000E-03    7.6206       -.10496E-06** at limit **
   3  Prefactor     .10000E-03    24.532        .21148E-06** at limit **
   4  Prefactor     52.925        70.312       -.15026E-04   -.12124E-04
   5  Prefactor     .10001E-03    3.9420        .15721E-06** at limit **
   6  Prefactor     26.028        20.599        .99482E-05    .35401E-04
   7  Prefactor     1.8911        3.1041       -.58989E-06   -.81227E-03
   8  norm          .10000E-03    .45591        .32071E-06** at limit **
   9  Prefactor     .10000E-03    11.982        .80241E-07** at limit **
  10  Prefactor     .10000E-03    3.0864       -.73581E-07** at limit **
  11  Prefactor     .10000E-03    1.4946       -.57559E-06** at limit **
  12  Prefactor     41.922        45.937        .94261E-05    .48789E-05
  13  norm          .10000E-03    3.2259       -.85132E-07** at limit **
  14  Prefactor     .10000E-03    1.2811        .25328E-06** at limit **
  15  Prefactor     9.1269        5.4320       -.19811E-05   -.36607E-03
  16  Prefactor     19.433        22.283        .27390E-04    .10436E-04
  17  Prefactor     5.9461        6.7286       -.75501E-06   -.24984E-03
  18  Prefactor     .10000E-03    17.231       -.31057E-06** at limit **
  19  Prefactor     5.0088        28.507       -.12238E-04   -.40699E-04
  20  Prefactor     11.805        16.125       -.73586E-07   -.51060E-04
  21  Normalizat    .79787        .16516       -.63118E-05    .21121E-03
  22  Prefactor     1.1342        .12768        .18783E-05   -.34428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.521253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.9253
  Prefactor  = 0.000100015
  Prefactor  = 26.0283
  Prefactor  = 1.89111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 41.922
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.12687
  Prefactor  = 19.4328
  Prefactor  = 5.94609
  Prefactor  = 0.0001
  Prefactor  = 5.00878
  Prefactor  = 11.8053
  Normalizat = 0.797873
  Prefactor  = 1.13415
 **********
 **   18 **HESSE 
 **********

 FCN=   7814.103     FROM HESSE     STATUS=OK           356 CALLS     2791 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52125        3.1600        .21893E-02   -1.5564    
   2  Prefactor     .10000E-03    7.6431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     52.925        70.317        .54997E-04   -1.4252    
   5  Prefactor     .10001E-03    4.2821        .52425E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.028        20.599        .78515E-04   -1.4687    
   7  Prefactor     1.8911        3.0819        .19024E-03   -1.5433    
   8  norm          .10000E-03    1.1963        .11529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1128        .15156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8480        .20882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.922        45.905        .30953E-03   -1.4412    
  13  norm          .10000E-03    3.2390        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0416        .19261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1269        5.4391        .13264E-03   -1.5104    
  16  Prefactor     19.433        22.219        .90839E-04   -1.4826    
  17  Prefactor     5.9461        6.7130        .16466E-03   -1.5220    
  18  Prefactor     .10000E-03    17.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0088        28.578        .17968E-03   -1.5260    
  20  Prefactor     11.805        16.145        .11659E-03   -1.5021    
  21  Normalizat    .79787        .18844        .28282E-03   -1.0015    
  22  Prefactor     1.1342        .14807        .19473E-03   -.88382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28644e-09
Minuit parameter uncertainties:
  1  2.56678
  2  7.4013e-06
  3  6.13952e-05
  4  70.4279
  5  0.00049984
  6  20.6048
  7  3.08213
  8  2.41854e-05
  9  5.32547e-06
  10  3.2143e-05
  11  0.000100235
  12  45.9438
  13  3.15993e-05
  14  5.22435e-05
  15  5.43944
  16  22.2289
  17  6.7138
  18  4.65249e-05
  19  23.9456
  20  16.1506
  21  0.188598
  22  0.14812
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.002e-04  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.134e+00  1.481e-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.979e-01  1.886e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191259/likelihoodResults_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.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) = 7814.1051541
delta logL = -0.00167239099392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7814.10348168
delta logL = 2.96522557619e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4570       1.0000          .0000       10.000    
     3 'Normalizat'    .79780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1342       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=   7814.103     FROM MIGRAD    STATUS=FAILED        97 CALLS      265 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11478E-03    36.620        .20834E-02** at limit **
   2  Index         2.7938        7.7787        .50000       -.54250E-04
   3  Normalizat    .79787        .12256E-01    .28282E-03    .28802E-03
   4  Prefactor     1.1342        .99527E-02    .19473E-03    .39573E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7814.103     FROM SIMPLEX   STATUS=PROGRESS     116 CALLS      381 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10292E-03    36.620        .23858E-03** at limit **
   2  Index         2.7678        7.7787        .93981E-02   -.54250E-04
   3  Normalizat    .79782        .12256E-01    .28197E-04    .28802E-03
   4  Prefactor     1.1341        .99527E-02    .13780E-04    .39573E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7814.103     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      445 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68785E-01    .24307E-01** at limit **
   2  Index         3.2943        7.5545        .50000        .25623E-06
   3  Normalizat    .79787        .11975E-02    .11313E-04    .95409E-03
   4  Prefactor     1.1342        .97246E-03    .38945E-04    .12628E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.29431
  Normalizat = 0.797868
  Prefactor  = 1.13416
 **********
 **   18 **HESSE 
 **********

 FCN=   7814.103     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      478 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.926        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2943        5.8393        .50000       -.34813    
   3  Normalizat    .79787        .86710E-02    .22626E-05   -1.0015    
   4  Prefactor     1.1342        .70420E-02    .77890E-05   -.88382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15792e-09
Minuit parameter uncertainties:
  1  0.000407276
  2  119.984
  3  0.00867097
  4  0.00704201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191259': 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) = 7814.10347397
delta logL = 7.74538420956e-06

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  4.073e-04  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.294e+00  1.200e+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:  1.134e+00  7.042e-03  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.979e-01  8.671e-03  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/191259/cmap_HighResolution_368928001_369187201_4FGL_J2207.5-5346_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-28 05:38:50.851629', job_id='191259', GAL2='1.13', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632832730.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='7.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='500' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:38:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 191259: <4FGL_J2207.5-5346_daily_bin500> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin500> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:25:27 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:25:29 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:25:29 2021
Terminated at Tue Sep 28 05:38:51 2021
Results reported at Tue Sep 28 05:38:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin500 331.892 -53.7719 368928001 369187201 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 :                                   739.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

