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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1014
RA = 331.892, Dec = -53.7719
tmin = 502156801, tmax = 502416001
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='193983', job_status='RUN', time_executed='2021-09-28 05:38:08.049331', time_epoch_executed='1632832688.05' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193983

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193983/ft1_4FGL_J2207.5-5346_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193983/ft2_4FGL_J2207.5-5346_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193983/ft1_4FGL_J2207.5-5346_daily_bin1014.fits outfile=/scratch/kocevski/193983/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1014.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=502156801.0 tmax=502416001.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.10
user 3.83
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193983/ft1_filtered_4FGL_J2207.5-5346_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/193983/ft2_4FGL_J2207.5-5346_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/193983/ltcube_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.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/193983/ft2_4FGL_J2207.5-5346_daily_bin1014.fits
.....................!
real 11.81
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193983/ft1_filtered_4FGL_J2207.5-5346_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/193983/ft2_4FGL_J2207.5-5346_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/193983/ltcube_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.fits outfile=/scratch/kocevski/193983/expmap_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.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/193983/ltcube_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.fits
.....................!
real 190.17
user 184.97
sys 4.73

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/193983/ft1_filtered_4FGL_J2207.5-5346_daily_bin1014.fits scfile=/scratch/kocevski/193983/ft2_4FGL_J2207.5-5346_daily_bin1014.fits outfile=/scratch/kocevski/193983/cmap_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193983/ft1_filtered_4FGL_J2207.5-5346_daily_bin1014.fits scfile=/scratch/kocevski/193983/ft2_4FGL_J2207.5-5346_daily_bin1014.fits outfile=/scratch/kocevski/193983/cmap_HighResolution_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193983/ft1_filtered_4FGL_J2207.5-5346_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/193983/ft2_4FGL_J2207.5-5346_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193983/Model_4FGL_J2207.5-5346_daily_bin1014.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/193983/ft1_filtered_4FGL_J2207.5-5346_daily_bin1014.fits....................!
real 55.81
user 54.36
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6014       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19737E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3495       1.0000         .10000E-03   10000.    
     8 'norm      '    .76451E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14639E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2571       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .78170E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19578E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89560       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0434       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=   7732.210     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2405 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6114        2.2726        .16280E-06   -.32831E-03
   2  Prefactor     7.6098        15.901        .70096E-07   -.85705E-04
   3  Prefactor     .10000E-03    31.611        .20932E-05** at limit **
   4  Prefactor     .10000E-03    118.35        .48233E-05** at limit **
   5  Prefactor     1.6651        7.1102        .12963E-04   -.35247E-06
   6  Prefactor     .10000E-03    7.6083       -.15472E-06** at limit **
   7  Prefactor     7.3496        4.0986       -.29213E-06   -.14359E-03
   8  norm          .75919E-01    .36340        .14547E-06   -.39936E-03
   9  Prefactor     46.071        31.519       -.55763E-06    .22174E-04
  10  Prefactor     .10000E-03    2.4451        .36246E-06** at limit **
  11  Prefactor     2.3592        2.2402        .12986E-06    .16906E-04
  12  Prefactor     .10000E-03    21.893       -.28498E-06** at limit **
  13  norm          .10000E-03    2.2665       -.33470E-07** at limit **
  14  Prefactor     2.2578        2.4256        .13368E-06    .50318E-04
  15  Prefactor     1.0487        5.0262        .20410E-05    .18565E-03
  16  Prefactor     .10000E-03    9.2320       -.24183E-07** at limit **
  17  Prefactor     .10004E-03    5.9937        .27979E-05** at limit **
  18  Prefactor     .10000E-03    37.648       -.24282E-05** at limit **
  19  Prefactor     .10002E-03    98.284        .12514E-05** at limit **
  20  Prefactor     .10000E-03    5.2908       -.75662E-07** at limit **
  21  Normalizat    .89558        .16285       -.19063E-05   -.14949E-03
  22  Prefactor     1.0433        .12524       -.97884E-07   -.82511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6114
  Prefactor  = 7.60977
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 1.66507
  Prefactor  = 0.0001
  Prefactor  = 7.34961
  norm       = 0.0759193
  Prefactor  = 46.0712
  Prefactor  = 0.0001
  Prefactor  = 2.35918
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.25778
  Prefactor  = 1.04866
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Normalizat = 0.895581
  Prefactor  = 1.04333
 **********
 **   18 **HESSE 
 **********

 FCN=   7732.210     FROM HESSE     STATUS=OK           346 CALLS     2751 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6114        2.2722        .50665E-03   -1.5328    
   2  Prefactor     7.6098        15.882        .14545E-03   -1.5156    
   3  Prefactor     .10000E-03    31.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    118.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6651        7.1823        .16353E-02   -1.5450    
   6  Prefactor     .10000E-03    7.6218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3496        4.0947        .12613E-03   -1.5166    
   8  norm          .75919E-01    1.5073        .10126E-02   -1.5653    
   9  Prefactor     46.071        31.544        .59085E-04   -1.4349    
  10  Prefactor     .10000E-03    2.4622        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3592        2.2324        .12403E-03   -1.5401    
  12  Prefactor     .10000E-03    21.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2725        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2578        2.4125        .13684E-03   -1.5407    
  15  Prefactor     1.0487        5.1024        .36484E-03   -1.5503    
  16  Prefactor     .10000E-03    9.2555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    47.604        .40166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    102.44        .36482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89558        .18445        .26669E-03   -.96616    
  22  Prefactor     1.0433        .14428        .20027E-03   -.91299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24325e-08
Minuit parameter uncertainties:
  1  2.27226
  2  15.8912
  3  0.000264007
  4  0.00113057
  5  6.91758
  6  2.83147e-05
  7  4.09484
  8  0.676144
  9  31.5553
  10  4.0906e-05
  11  2.23246
  12  5.13947e-05
  13  2.50123e-06
  14  2.41262
  15  4.62673
  16  1.90355e-05
  17  0.0026565
  18  8.02102e-05
  19  0.00285733
  20  1.2074e-05
  21  0.184582
  22  0.144336
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.359e+00  2.232e+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.043e+00  1.443e-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:  8.956e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 6.78e-06 +/- 6.41e-06

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

Saving results to:
/scratch/kocevski/193983/likelihoodResults_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7731.85869918
delta logL = 0.351183847072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7731.81762223
delta logL = 0.39226079835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0765       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8541       1.0000          .0000       10.000    
     3 'Normalizat'    .90523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7731.818     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      227 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0802        135.26        .57813E-02    .79366E-04
   2  Index         1.8550        5.0320        .26703       -.22602E-04
   3  Normalizat    .90536        .16266        .44968E-01    .19367E-04
   4  Prefactor     1.0381        .12223        .40662E-01    .55028E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08019
  Index      = 1.85502
  Normalizat = 0.905356
  Prefactor  = 1.03806
 **********
 **   18 **HESSE 
 **********

 FCN=   7731.818     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0802        2.7245        .13200E-03   -1.5357    
   2  Index         1.8550        .58779        .99628E-02   -.68026    
   3  Normalizat    .90536        .17636        .26537E-03   -.96272    
   4  Prefactor     1.0381        .14242        .20065E-03   -.91471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08925e-10
Minuit parameter uncertainties:
  1  2.72457
  2  0.590049
  3  0.17647
  4  0.142468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193983': 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) = 7731.81761975
delta logL = 0.392263276201

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  3.080e+00  2.725e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  1.855e+00  5.900e-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.038e+00  1.425e-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:  9.054e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 1.86 +/- 0.59
Photon Flux (Free Index): 1.48e-08 +/- 1.58e-08
Energy Flux (Free Index): 1.50e-05 +/- 2.09e-05

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/193983/cmap_HighResolution_502156801_502416001_4FGL_J2207.5-5346_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.50e-05', photon_flux_error='2.05e-08', dlogl='3.92e-01', energy_flux='6.78e-06', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-28 05:50:11.790394', photon_index_error2='0.59', photon_index2='1.86', ts='2.11', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='2.09e-05', EG='0.90', time_epoch_completed='1632833411.79', return_code='0', job_id='193983', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='6.41e-06', photon_flux_error2='1.58e-08', ts2='2.89', photon_index='2.44' WHERE bin_id='1014' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:50:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 193983: <4FGL_J2207.5-5346_daily_bin1014> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1014 331.892 -53.7719 502156801 502416001 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 :                                   719.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

