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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1610
RA = 331.892, Dec = -53.7719
tmin = 656640001, tmax = 656899201
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='481618', job_status='RUN', time_executed='2021-12-08 08:22:25.351156', time_epoch_executed='1638980545.35' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481618/ft1_4FGL_J2207.5-5346_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481618/ft2_4FGL_J2207.5-5346_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481618/ft1_4FGL_J2207.5-5346_daily_bin1610.fits outfile=/scratch/kocevski/481618/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1610.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=656640001.0 tmax=656899201.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481618/ft1_filtered_4FGL_J2207.5-5346_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/481618/ft2_4FGL_J2207.5-5346_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/481618/ltcube_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.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/481618/ft2_4FGL_J2207.5-5346_daily_bin1610.fits
.....................!
real 13.60
user 13.18
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481618/ft1_filtered_4FGL_J2207.5-5346_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/481618/ft2_4FGL_J2207.5-5346_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/481618/ltcube_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.fits outfile=/scratch/kocevski/481618/expmap_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.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/481618/ltcube_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.fits
.....................!
real 191.05
user 185.52
sys 5.03

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/481618/ft1_filtered_4FGL_J2207.5-5346_daily_bin1610.fits scfile=/scratch/kocevski/481618/ft2_4FGL_J2207.5-5346_daily_bin1610.fits outfile=/scratch/kocevski/481618/cmap_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481618/ft1_filtered_4FGL_J2207.5-5346_daily_bin1610.fits scfile=/scratch/kocevski/481618/ft2_4FGL_J2207.5-5346_daily_bin1610.fits outfile=/scratch/kocevski/481618/cmap_HighResolution_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481618/ft1_filtered_4FGL_J2207.5-5346_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/481618/ft2_4FGL_J2207.5-5346_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481618/Model_4FGL_J2207.5-5346_daily_bin1610.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/481618/ft1_filtered_4FGL_J2207.5-5346_daily_bin1610.fits.....................!
real 50.25
user 48.85
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11986E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18187       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    81.702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10552E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15313E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10722E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15223E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19948E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88847E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4667       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.937       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3333       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73290       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=   6422.869     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2508 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6511        .29556E-06** at limit **
   2  Prefactor     5.0460        21.882        .13898E-05   -.14812E-04
   3  Prefactor     22.948        39.740        .53487E-06   -.34165E-04
   4  Prefactor     .10000E-03    37.896       -.37378E-06** at limit **
   5  Prefactor     .10000E-03    5.2047        .94077E-07** at limit **
   6  Prefactor     .10000E-03    28.435        .22686E-06** at limit **
   7  Prefactor     .17950        2.5779        .28091E-07    .25674E-04
   8  norm          .10000E-03    .20405        .24868E-09** at limit **
   9  Prefactor     81.642        43.116       -.15229E-05   -.39782E-04
  10  Prefactor     .10000E-03    15.005        .34883E-05** at limit **
  11  Prefactor     5.1282        4.3226       -.25312E-06    .21111E-03
  12  Prefactor     .10000E-03    127.24       -.27270E-05** at limit **
  13  norm          .10000E-03    9.0472        .40568E-06** at limit **
  14  Prefactor     .10001E-03    1.9933       -.20683E-06** at limit **
  15  Prefactor     .10000E-03    36.541       -.68756E-05** at limit **
  16  Prefactor     .10000E-03    255.00       -.86000E-05** at limit **
  17  Prefactor     3.4618        10.707        .14135E-05    .18904E-03
  18  Prefactor     .10000E-03    42.279        .16098E-06** at limit **
  19  Prefactor     .10000E-03    56.730        .61348E-06** at limit **
  20  Prefactor     12.937        12.900       -.20235E-06   -.22258E-04
  21  Normalizat    1.3331        .20712        .34724E-05   -.27277E-03
  22  Prefactor     .73283        .15324       -.42192E-05   -.27257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.04602
  Prefactor  = 22.9477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.179497
  norm       = 0.0001
  Prefactor  = 81.6417
  Prefactor  = 0.000100003
  Prefactor  = 5.12819
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.46183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.937
  Normalizat = 1.33307
  Prefactor  = 0.73283
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.869     FROM HESSE     STATUS=OK           364 CALLS     2872 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3603        .19731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0460        21.563        .17935E-03   -1.5259    
   3  Prefactor     22.948        39.679        .83597E-04   -1.4750    
   4  Prefactor     .10000E-03    37.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3305        .17860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17950        18.661        .22593E-02   -1.5623    
   8  norm          .10000E-03    .20413        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     81.642        44.605        .44436E-04   -1.3898    
  10  Prefactor     .10000E-03    9.5450        .59551E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1282        4.3374        .14458E-03   -1.5255    
  12  Prefactor     .10000E-03    126.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.2727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    7.7355        .20802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.384        .33532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.360        .10001       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4618        11.548        .21719E-03   -1.5336    
  18  Prefactor     .10000E-03    42.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.937        12.896        .11136E-03   -1.4988    
  21  Normalizat    1.3331        .21212        .23027E-03   -.82585    
  22  Prefactor     .73283        .15641        .22953E-03   -1.0225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13675e-09
Minuit parameter uncertainties:
  1  2.13396e-05
  2  20.8747
  3  39.7247
  4  6.96215e-05
  5  1.80123e-05
  6  6.88086e-05
  7  3.66053
  8  1.78133e-07
  9  44.6228
  10  0.000312354
  11  4.33771
  12  0.000538739
  13  8.72539e-05
  14  0.000407888
  15  0.000324046
  16  9.08704e-05
  17  11.5556
  18  5.29017e-05
  19  8.56456e-05
  20  12.8989
  21  0.212261
  22  0.156505
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.128e+00  4.338e+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:  7.328e-01  1.565e-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.333e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.70e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.25e-05

TS (Fixed Index): 1.90
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481618/likelihoodResults_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.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) = 6422.69012636
delta logL = 0.17861552176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6422.68284889
delta logL = 0.185892991059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4183       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9002       1.0000          .0000       10.000    
     3 'Normalizat'    1.3140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74319       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=   6422.683     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      238 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4184        59.842        .54698E-02   -.99903E-04
   2  Index         2.9003        6.4305        .14211        .12023E-03
   3  Normalizat    1.3140        .64015E-01    .52386E-01    .40680E-05
   4  Prefactor     .74319        .48049E-01    .42973E-01    .16115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.41836
  Index      = 2.9003
  Normalizat = 1.31401
  Prefactor  = 0.743191
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.683     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4184        5.4364        .10740E-03   -1.5338    
   2  Index         2.9003        1.0262        .70090E-02   -.43338    
   3  Normalizat    1.3140        .20348        .23162E-03   -.83149    
   4  Prefactor     .74319        .15375        .22810E-03   -1.0186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17561e-10
Minuit parameter uncertainties:
  1  5.43715
  2  1.03511
  3  0.203603
  4  0.153836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481618': 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) = 6422.68284876
delta logL = 0.185893129839

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  3.418e+00  5.437e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.900e+00  1.035e+00  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:  7.432e-01  1.538e-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.314e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 2.90 +/- 1.04
Photon Flux (Free Index): 6.02e-08 +/- 4.69e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/481618/cmap_HighResolution_656640001_656899201_4FGL_J2207.5-5346_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', comment='SUCCESS', photon_flux='4.70e-08', energy_flux2='1.27e-05', photon_flux_error='3.98e-08', dlogl='1.86e-01', energy_flux='1.47e-05', photon_flux2='6.02e-08', job_status='DONE', time_completed='2021-12-08 08:33:39.386156', photon_index_error2='1.04', photon_index2='2.90', ts='1.90', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.13e-05', EG='1.33', time_epoch_completed='1638981219.39', return_code='0', job_id='481618', GAL2='0.74', EG2='1.31', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.69e-08', ts2='2.30', photon_index='2.44' WHERE bin_id='1610' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:33:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 481618: <4FGL_J2207.5-5346_daily_bin1610> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1610> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:32 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:22:20 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:20 2021
Terminated at Wed Dec  8 08:33:40 2021
Results reported at Wed Dec  8 08:33:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1610 331.892 -53.7719 656640001 656899201 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 :                                   673.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            788 sec.

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

