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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1622
RA = 331.892, Dec = -53.7719
tmin = 659750401, tmax = 660009601
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='481635', job_status='RUN', time_executed='2021-12-08 08:24:34.431709', time_epoch_executed='1638980674.43' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481635/ft1_4FGL_J2207.5-5346_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481635/ft1_4FGL_J2207.5-5346_daily_bin1622.fits outfile=/scratch/kocevski/481635/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1622.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.45
user 2.20
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.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/481635/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/481635/ft1_filtered_4FGL_J2207.5-5346_daily_bin1622.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481635/ft1_filtered_4FGL_J2207.5-5346_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/481635/ltcube_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.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/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.fits
.....................!
real 14.96
user 14.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481635/ft1_filtered_4FGL_J2207.5-5346_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/481635/ltcube_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.fits outfile=/scratch/kocevski/481635/expmap_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.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/481635/ltcube_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.fits
.....................!
real 191.85
user 185.80
sys 5.42

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/481635/ft1_filtered_4FGL_J2207.5-5346_daily_bin1622.fits scfile=/scratch/kocevski/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.fits outfile=/scratch/kocevski/481635/cmap_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481635/ft1_filtered_4FGL_J2207.5-5346_daily_bin1622.fits scfile=/scratch/kocevski/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.fits outfile=/scratch/kocevski/481635/cmap_HighResolution_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481635/ft1_filtered_4FGL_J2207.5-5346_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/481635/ft2_4FGL_J2207.5-5346_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481635/Model_4FGL_J2207.5-5346_daily_bin1622.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/481635/ft1_filtered_4FGL_J2207.5-5346_daily_bin1622.fits.....................!
real 51.36
user 49.95
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.563       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89801E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0043       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1529       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.882       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.249       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6098       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2908       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92923       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=   6648.915     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     2721 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2028        3.4823        .18159E-03    .82015E-05
   2  Prefactor     29.561        25.793        .73687E-04   -.50914E-05
   3  Prefactor     .10000E-03    53.582        .16792    ** at limit **
   4  Prefactor     .10000E-03    50.582        .18142E-02** at limit **
   5  Prefactor     7.0043        8.9418        .75791E-03    .17970E-04
   6  Prefactor     .10000E-03    22.365        .18142E-02** at limit **
   7  Prefactor     4.1526        5.4948        .19779E-03    .98347E-04
   8  norm          .10000E-03    .17814        .33488E-03** at limit **
   9  Prefactor     30.831        43.817        .72100E-04    .35005E-04
  10  Prefactor     .10000E-03    20.671        .36285E-03** at limit **
  11  Prefactor     5.7248        4.7766        .15340E-03    .14511E-04
  12  Prefactor     48.325        97.572        .57729E-04    .23671E-04
  13  norm          .10000E-03    2.0906        .11512E-02** at limit **
  14  Prefactor     3.6105        3.7860        .78032E-03    .50235E-04
  15  Prefactor     .10000E-03    4.9136        .17486E-02** at limit **
  16  Prefactor     .10000E-03    13.637        .18142E-02** at limit **
  17  Prefactor     .10000E-03    15.627        .36285E-03** at limit **
  18  Prefactor     .10000E-03    23.590        .18142E-02** at limit **
  19  Prefactor     .10000E-03    8.9982        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.0024        .17796E-02** at limit **
  21  Normalizat    1.2910        .22545        .25891E-03   -.60024E-04
  22  Prefactor     .92904        .17134        .23050E-03    .26189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.20276
  Prefactor  = 29.5612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00426
  Prefactor  = 0.0001
  Prefactor  = 4.15262
  norm       = 0.0001
  Prefactor  = 30.8305
  Prefactor  = 0.0001
  Prefactor  = 5.7248
  Prefactor  = 48.3246
  norm       = 0.0001
  Prefactor  = 3.61047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29099
  Prefactor  = 0.92904
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.915     FROM HESSE     STATUS=OK           336 CALLS     3057 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2028        3.4819        .72635E-05   -1.5411    
   2  Prefactor     29.561        25.791        .29475E-05   -1.4620    
   3  Prefactor     .10000E-03    54.479        .16594       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0043        8.9397        .30316E-04   -1.5179    
   6  Prefactor     .10000E-03    22.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1526        5.4937        .79115E-05   -1.5300    
   8  norm          .10000E-03    .17814        .66977E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.831        43.805        .28840E-05   -1.4597    
  10  Prefactor     .10000E-03    20.672        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7248        4.7764        .30680E-04   -1.5229    
  12  Prefactor     48.325        97.574        .11546E-04   -1.4317    
  13  norm          .10000E-03    2.0906        .23025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6105        3.7854        .31213E-04   -1.5328    
  15  Prefactor     .10000E-03    4.9168        .34971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.628        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.0027        .35591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2910        .22564        .10356E-04   -.83836    
  22  Prefactor     .92904        .17151        .92202E-05   -.95134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31796e-11
Minuit parameter uncertainties:
  1  3.4822
  2  25.8009
  3  8.51278e-05
  4  6.09196e-06
  5  8.94141
  6  5.0308e-08
  7  5.49437
  8  2.25741e-08
  9  43.851
  10  0.000198041
  11  4.77676
  12  97.8985
  13  5.15435e-06
  14  3.78562
  15  3.52249e-06
  16  1.94836e-05
  17  9.17848e-05
  18  1.0073e-06
  19  1.14389e-07
  20  1.76358e-08
  21  0.225811
  22  0.171614
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.725e+00  4.777e+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:  9.290e-01  1.716e-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:  1.291e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.37e-05

TS (Fixed Index): 1.94
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481635/likelihoodResults_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.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) = 6648.91024734
delta logL = 0.00510697270693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6648.90805993
delta logL = 0.00729438393137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3884       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5139       1.0000          .0000       10.000    
     3 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93066       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=   6648.908     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3849        124.57        .43280E-02    .81662E-03
   2  Index         2.5147        6.2063        .16400        .18174E-03
   3  Normalizat    1.2876        .81288E-01    .58610E-01    .17064E-03
   4  Prefactor     .93095        .61644E-01    .45395E-01   -.29540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38495
  Index      = 2.51466
  Normalizat = 1.28764
  Prefactor  = 0.930948
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.908     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3849        5.6809        .14775E-03   -1.5244    
   2  Index         2.5147        .70110        .82649E-02   -.52022    
   3  Normalizat    1.2876        .22112        .25920E-03   -.83936    
   4  Prefactor     .93095        .16934        .23030E-03   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84715e-10
Minuit parameter uncertainties:
  1  5.68148
  2  0.704191
  3  0.221281
  4  0.169434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481635': 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) = 6648.90805774
delta logL = 0.00729657336433

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.385e+00  5.681e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.515e+00  7.042e-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:  9.309e-01  1.694e-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:  1.288e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 2.51 +/- 0.70
Photon Flux (Free Index): 5.49e-08 +/- 4.78e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/481635/cmap_HighResolution_659750401_660009601_4FGL_J2207.5-5346_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='1.57e-05', photon_flux_error='4.38e-08', dlogl='7.30e-03', energy_flux='1.64e-05', photon_flux2='5.49e-08', job_status='DONE', time_completed='2021-12-08 08:35:50.678324', photon_index_error2='0.70', photon_index2='2.51', ts='1.94', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.49e-05', EG='1.29', time_epoch_completed='1638981350.68', return_code='0', job_id='481635', GAL2='0.93', EG2='1.29', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.78e-08', ts2='1.95', photon_index='2.44' WHERE bin_id='1622' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:35:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 481635: <4FGL_J2207.5-5346_daily_bin1622> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1622> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:33 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:22:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:22:34 2021
Terminated at Wed Dec  8 08:35:51 2021
Results reported at Wed Dec  8 08:35:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1622 331.892 -53.7719 659750401 660009601 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 :                                   674.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            918 sec.

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

