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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1346
RA = 331.892, Dec = -53.7719
tmin = 588211201, tmax = 588470401
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='195548', job_status='RUN', time_executed='2021-09-28 05:42:39.095445', time_epoch_executed='1632832959.1' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195548/ft1_4FGL_J2207.5-5346_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195548/ft2_4FGL_J2207.5-5346_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195548/ft1_4FGL_J2207.5-5346_daily_bin1346.fits outfile=/scratch/kocevski/195548/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1346.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=588211201.0 tmax=588470401.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.76
user 3.54
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195548/ft1_filtered_4FGL_J2207.5-5346_daily_bin1346.fits" evtable="EVENTS" scfile=/scratch/kocevski/195548/ft2_4FGL_J2207.5-5346_daily_bin1346.fits sctable="SC_DATA" outfile=/scratch/kocevski/195548/ltcube_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.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/195548/ft2_4FGL_J2207.5-5346_daily_bin1346.fits
.....................!
real 11.73
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195548/ft1_filtered_4FGL_J2207.5-5346_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/195548/ft2_4FGL_J2207.5-5346_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/195548/ltcube_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.fits outfile=/scratch/kocevski/195548/expmap_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.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/195548/ltcube_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.fits
.....................!
real 191.42
user 186.14
sys 4.96

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/195548/ft1_filtered_4FGL_J2207.5-5346_daily_bin1346.fits scfile=/scratch/kocevski/195548/ft2_4FGL_J2207.5-5346_daily_bin1346.fits outfile=/scratch/kocevski/195548/cmap_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195548/ft1_filtered_4FGL_J2207.5-5346_daily_bin1346.fits scfile=/scratch/kocevski/195548/ft2_4FGL_J2207.5-5346_daily_bin1346.fits outfile=/scratch/kocevski/195548/cmap_HighResolution_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195548/ft1_filtered_4FGL_J2207.5-5346_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/195548/ft2_4FGL_J2207.5-5346_daily_bin1346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195548/Model_4FGL_J2207.5-5346_daily_bin1346.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/195548/ft1_filtered_4FGL_J2207.5-5346_daily_bin1346.fits.....................!
real 54.61
user 53.23
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.041       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.352       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89571       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.277       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0812       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96596       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=   7172.683     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2377 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.126        3.8176        .72507E-07   -.59346E-05
   2  Prefactor     20.813        23.228        .26130E-06   -.19554E-05
   3  Prefactor     41.043        50.153       -.12085E-06   -.44945E-05
   4  Prefactor     .10000E-03    35.437        .61163E-06** at limit **
   5  Prefactor     10.086        10.668        .29986E-06   -.11354E-04
   6  Prefactor     .10000E-03    11.781        .19062E-06** at limit **
   7  Prefactor     .10000E-03    2.1238        .85430E-07** at limit **
   8  norm          .11079        .42824        .21141E-06   -.40761E-03
   9  Prefactor     .10000E-03    18.952        .22469E-06** at limit **
  10  Prefactor     3.4342        8.2258        .30949E-05   -.82447E-04
  11  Prefactor     .10000E-03    1.3471        .75449E-07** at limit **
  12  Prefactor     19.290        65.893        .17218E-04    .23363E-04
  13  norm          .10000E-03    2.0024        .53456E-07** at limit **
  14  Prefactor     .89578        3.0483        .80147E-06   -.21310E-05
  15  Prefactor     .10000E-03    1.2394       -.18057E-07** at limit **
  16  Prefactor     18.276        20.914       -.23817E-06   -.14101E-04
  17  Prefactor     10.221        9.4554        .59253E-06   -.56762E-05
  18  Prefactor     .10000E-03    59.158       -.79587E-06** at limit **
  19  Prefactor     .10000E-03    7.8613        .10174E-06** at limit **
  20  Prefactor     .10000E-03    8.0405        .35982E-07** at limit **
  21  Normalizat    1.0812        .17756       -.17660E-05   -.22115E-05
  22  Prefactor     .96597        .13538        .39379E-06   -.12285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1264
  Prefactor  = 20.8127
  Prefactor  = 41.0427
  Prefactor  = 0.0001
  Prefactor  = 10.0865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.110789
  Prefactor  = 0.0001
  Prefactor  = 3.43419
  Prefactor  = 0.0001
  Prefactor  = 19.2897
  norm       = 0.0001
  Prefactor  = 0.895781
  Prefactor  = 0.0001
  Prefactor  = 18.2759
  Prefactor  = 10.2213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08119
  Prefactor  = 0.965974
 **********
 **   18 **HESSE 
 **********

 FCN=   7172.683     FROM HESSE     STATUS=OK           346 CALLS     2723 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.126        3.8173        .88514E-04   -1.5011    
   2  Prefactor     20.813        23.218        .87796E-04   -1.4795    
   3  Prefactor     41.043        50.161        .62571E-04   -1.4426    
   4  Prefactor     .10000E-03    35.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.086        10.670        .12616E-03   -1.5073    
   6  Prefactor     .10000E-03    11.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1512        .12044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .11079        .73777        .10450E-02   -1.5641    
   9  Prefactor     .10000E-03    18.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4342        8.2601        .10923E-02   -1.5337    
  11  Prefactor     .10000E-03    1.3623        .95933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.290        66.112        .91047E-04   -1.4829    
  13  norm          .10000E-03    2.0039        .11704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .89578        3.0450        .25989E-03   -1.5519    
  15  Prefactor     .10000E-03    1.2423        .92063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.276        20.948        .93684E-04   -1.4853    
  17  Prefactor     10.221        9.4453        .62659E-03   -1.5068    
  18  Prefactor     .10000E-03    59.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0812        .20835        .26174E-03   -.90358    
  22  Prefactor     .96597        .16023        .21796E-03   -.93872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66484e-08
Minuit parameter uncertainties:
  1  3.8174
  2  23.2278
  3  50.2121
  4  1.07781e-05
  5  10.672
  6  2.82849e-06
  7  1.56697e-06
  8  0.571545
  9  3.77841e-05
  10  8.26286
  11  5.02206e-06
  12  66.3643
  13  1.67422e-06
  14  3.04554
  15  1.33858e-06
  16  20.9567
  17  9.44671
  18  2.36625e-05
  19  7.81869e-07
  20  5.03626e-06
  21  0.208505
  22  0.160311
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  5.022e-06  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.660e-01  1.603e-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.081e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/195548/likelihoodResults_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7172.68605859
delta logL = -0.00348482635673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7172.68257374
delta logL = 2.36523192143e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7172.683     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    323.63        .96221E-03** at limit **
   2  Index         2.4539        6.9491        .50000       -.60611E-04
   3  Normalizat    1.0812        .15196        .26174E-03   -.66368E-04
   4  Prefactor     .96598        .12091        .21796E-03   -.72503E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7172.683     FROM SIMPLEX   STATUS=UNCHANGED    185 CALLS      423 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    323.63        .17996E-03** at limit **
   2  Index         2.4539        6.9491        .23922E-05   -.60611E-04
   3  Normalizat    1.0812        .15196        .20328E-06   -.66368E-04
   4  Prefactor     .96598        .12091        .80083E-07   -.72503E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7172.683     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      457 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4474        .19244E-03** at limit **
   2  Index         2.4544        6.2271        .50000       -.60647E-04
   3  Normalizat    1.0812        .19694        .10470E-04   -.80354E-04
   4  Prefactor     .96598        .15687        .87182E-05   -.20603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.45442
  Normalizat = 1.08119
  Prefactor  = 0.965976
 **********
 **   18 **HESSE 
 **********

 FCN=   7172.683     FROM HESSE     STATUS=OK            29 CALLS      486 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3748        .38489E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4544        6.2256        .50000       -.53416    
   3  Normalizat    1.0812        .19695        .20939E-05   -.90358    
   4  Prefactor     .96598        .15689        .17436E-05   -.93872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99378e-09
Minuit parameter uncertainties:
  1  0.000165702
  2  4.30855
  3  0.19708
  4  0.156968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195548': 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) = 7172.68257351
delta logL = 2.59788066614e-07

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.657e-04  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.454e+00  4.309e+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:  9.660e-01  1.570e-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.081e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.892 -53.772

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/195548/cmap_HighResolution_588211201_588470401_4FGL_J2207.5-5346_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-28 05:54:36.788034', job_id='195548', GAL2='0.97', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632833676.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1346' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:54:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 195548: <4FGL_J2207.5-5346_daily_bin1346> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1346> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:49 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:51 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:40:51 2021
Terminated at Tue Sep 28 05:54:37 2021
Results reported at Tue Sep 28 05:54:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1346 331.892 -53.7719 588211201 588470401 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

