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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1068
RA = 331.892, Dec = -53.7719
tmin = 516153601, tmax = 516412801
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='194074', job_status='RUN', time_executed='2021-09-28 05:39:37.130710', time_epoch_executed='1632832777.13' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194074

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194074/ft1_4FGL_J2207.5-5346_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194074/ft2_4FGL_J2207.5-5346_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194074/ft1_4FGL_J2207.5-5346_daily_bin1068.fits outfile=/scratch/kocevski/194074/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1068.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=516153601.0 tmax=516412801.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.52
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194074/ft1_filtered_4FGL_J2207.5-5346_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/194074/ft2_4FGL_J2207.5-5346_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/194074/ltcube_516153601_516412801_4FGL_J2207.5-5346_daily_bin1068.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/194074/ft2_4FGL_J2207.5-5346_daily_bin1068.fits
.....................!
real 11.72
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194074/ft1_filtered_4FGL_J2207.5-5346_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/194074/ft2_4FGL_J2207.5-5346_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/194074/ltcube_516153601_516412801_4FGL_J2207.5-5346_daily_bin1068.fits outfile=/scratch/kocevski/194074/expmap_516153601_516412801_4FGL_J2207.5-5346_daily_bin1068.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/194074/ltcube_516153601_516412801_4FGL_J2207.5-5346_daily_bin1068.fits
.....................!
real 190.68
user 185.42
sys 4.92

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/194074/ft1_filtered_4FGL_J2207.5-5346_daily_bin1068.fits scfile=/scratch/kocevski/194074/ft2_4FGL_J2207.5-5346_daily_bin1068.fits outfile=/scratch/kocevski/194074/cmap_516153601_516412801_4FGL_J2207.5-5346_daily_bin1068.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194074/ft1_filtered_4FGL_J2207.5-5346_daily_bin1068.fits scfile=/scratch/kocevski/194074/ft2_4FGL_J2207.5-5346_daily_bin1068.fits outfile=/scratch/kocevski/194074/cmap_HighResolution_516153601_516412801_4FGL_J2207.5-5346_daily_bin1068.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/194074/ft1_filtered_4FGL_J2207.5-5346_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/194074/ft2_4FGL_J2207.5-5346_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194074/Model_4FGL_J2207.5-5346_daily_bin1068.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/194074/ft1_filtered_4FGL_J2207.5-5346_daily_bin1068.fits.....................!
real 54.56
user 53.18
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .78240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.822       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14315E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8297       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7770       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13782E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.278       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .89867E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64675       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1579       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=   7668.069     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2460 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32292        .97669       -.48669E-06   -.11254E-02
   2  Prefactor     24.005        16.873        .96562E-06   -.40965E-05
   3  Prefactor     30.545        38.268       -.51996E-05    .16771E-03
   4  Prefactor     .10000E-03    43.752        .86031E-05** at limit **
   5  Prefactor     4.1771        6.0447       -.10513E-06   -.27906E-03
   6  Prefactor     .10000E-03    5.9827       -.13901E-06** at limit **
   7  Prefactor     .10000E-03    1.4831       -.92205E-07** at limit **
   8  norm          .78198        .87606       -.13758E-06   -.76777E-03
   9  Prefactor     17.824        26.569        .24528E-05    .93087E-05
  10  Prefactor     .10000E-03    3.7108       -.66204E-06** at limit **
  11  Prefactor     5.8298        3.3159       -.77268E-07    .22519E-03
  12  Prefactor     .10000E-03    46.863       -.65854E-05** at limit **
  13  norm          1.2020        3.3998       -.11118E-05   -.84412E-03
  14  Prefactor     3.7791        3.3246       -.34119E-07   -.35287E-03
  15  Prefactor     .10000E-03    6.1361       -.78538E-06** at limit **
  16  Prefactor     87.295        30.854        .92675E-05   -.98748E-04
  17  Prefactor     .10029E-03    6.3320       -.35142E-05** at limit **
  18  Prefactor     .10000E-03    26.726       -.22036E-05** at limit **
  19  Prefactor     .10000E-03    12.373       -.30239E-06** at limit **
  20  Prefactor     .10000E-03    3.8557        .83037E-06** at limit **
  21  Normalizat    .64710        .17020       -.54513E-05    .61156E-03
  22  Prefactor     1.1578        .12878        .16483E-05    .33391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.322921
  Prefactor  = 24.0052
  Prefactor  = 30.5445
  Prefactor  = 0.000100003
  Prefactor  = 4.17712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.781978
  Prefactor  = 17.8239
  Prefactor  = 0.0001
  Prefactor  = 5.82978
  Prefactor  = 0.000100001
  norm       = 1.202
  Prefactor  = 3.77905
  Prefactor  = 0.000100001
  Prefactor  = 87.2952
  Prefactor  = 0.000100289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.6471
  Prefactor  = 1.15784
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.069     FROM HESSE     STATUS=OK           350 CALLS     2810 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32292        1.0529        .14704E-02   -1.5594    
   2  Prefactor     24.005        16.850        .81766E-04   -1.4728    
   3  Prefactor     30.545        38.186        .72491E-04   -1.4602    
   4  Prefactor     .10000E-03    43.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1771        6.0420        .19715E-03   -1.5299    
   6  Prefactor     .10000E-03    5.9898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5152        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78198        .80542        .83034E-03   -1.5531    
   9  Prefactor     17.824        26.167        .94872E-04   -1.4863    
  10  Prefactor     .10000E-03    9.7580        .31883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8298        3.3058        .11472E-03   -1.5225    
  12  Prefactor     .10000E-03    46.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2020        3.3693        .26803E-03   -1.5489    
  14  Prefactor     3.7791        3.3258        .14239E-03   -1.5319    
  15  Prefactor     .10000E-03    6.3958        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.295        30.446        .43005E-04   -1.3837    
  17  Prefactor     .10029E-03    49.855        .41320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8565        .16786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .64710        .18798        .30946E-03   -1.0602    
  22  Prefactor     1.1578        .14599        .19143E-03   -.87639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42607e-09
Minuit parameter uncertainties:
  1  1.05299
  2  16.8538
  3  38.2164
  4  0.000667249
  5  6.04286
  6  2.00172e-05
  7  9.69882e-06
  8  0.80543
  9  26.1842
  10  4.16832e-05
  11  3.30589
  12  0.00050992
  13  3.36984
  14  3.32594
  15  0.000168293
  16  30.4513
  17  0.0075962
  18  9.75787e-05
  19  1.51281e-05
  20  2.37952e-05
  21  0.188164
  22  0.146038
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.830e+00  3.306e+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.158e+00  1.460e-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:  6.471e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.39
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 9.50e-06

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) = 7668.05030955
delta logL = 0.0187499184321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7668.04261135
delta logL = 0.0264481195773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3807       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5572       1.0000          .0000       10.000    
     3 'Normalizat'    .64181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1602       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7668.043     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3802        3.8828        .53756E-03   -.15271E-03
   2  Index         2.5573        .56461        .65587E-02    .16536E-04
   3  Normalizat    .64166        .17647        .31065E-03    .56358E-05
   4  Prefactor     1.1603        .14156        .19124E-03    .92141E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38023
  Index      = 2.55726
  Normalizat = 0.641662
  Prefactor  = 1.16032
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.043     FROM HESSE     STATUS=OK            27 CALLS      276 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3802        3.6941        .21503E-04   -1.5244    
   2  Index         2.5573        .53699        .26235E-03   -.51043    
   3  Normalizat    .64166        .17653        .12426E-04   -1.0624    
   4  Prefactor     1.1603        .14161        .76498E-05   -.87561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36175e-12
Minuit parameter uncertainties:
  1  3.69425
  2  0.538358
  3  0.176683
  4  0.14166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194074': 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) = 7668.042611
delta logL = 0.0264484653171

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.380e+00  3.694e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.557e+00  5.384e-01  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.160e+00  1.417e-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:  6.417e-01  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.44
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 2.56 +/- 0.54
Photon Flux (Free Index): 5.81e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.59e-05 +/- 9.41e-06

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/194074/cmap_HighResolution_516153601_516412801_4FGL_J2207.5-5346_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='1.59e-05', photon_flux_error='3.03e-08', dlogl='2.64e-02', energy_flux='1.67e-05', photon_flux2='5.81e-08', job_status='DONE', time_completed='2021-09-28 05:50:16.050545', photon_index_error2='0.54', photon_index2='2.56', ts='6.39', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='9.41e-06', EG='0.65', time_epoch_completed='1632833416.05', return_code='0', job_id='194074', GAL2='1.16', EG2='0.64', return_code2='0', energy_flux_error='9.50e-06', photon_flux_error2='3.72e-08', ts2='6.44', photon_index='2.44' WHERE bin_id='1068' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 194074: <4FGL_J2207.5-5346_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1068 331.892 -53.7719 516153601 516412801 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

