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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1284
RA = 331.892, Dec = -53.7719
tmin = 572140801, tmax = 572400001
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='195442', job_status='RUN', time_executed='2021-09-28 05:43:57.665957', time_epoch_executed='1632833037.67' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195442/ft1_4FGL_J2207.5-5346_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195442/ft2_4FGL_J2207.5-5346_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195442/ft1_4FGL_J2207.5-5346_daily_bin1284.fits outfile=/scratch/kocevski/195442/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1284.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=572140801.0 tmax=572400001.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.26
user 3.02
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195442/ft2_4FGL_J2207.5-5346_daily_bin1284.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/195442/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1284.fits evtable="EVENTS" outfile="/scratch/kocevski/195442/ft1_filtered_4FGL_J2207.5-5346_daily_bin1284.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/195442/ft1_filtered_4FGL_J2207.5-5346_daily_bin1284.fits" evtable="EVENTS" scfile=/scratch/kocevski/195442/ft2_4FGL_J2207.5-5346_daily_bin1284.fits sctable="SC_DATA" outfile=/scratch/kocevski/195442/ltcube_572140801_572400001_4FGL_J2207.5-5346_daily_bin1284.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/195442/ft2_4FGL_J2207.5-5346_daily_bin1284.fits
.....................!
real 11.99
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195442/ft1_filtered_4FGL_J2207.5-5346_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/195442/ft2_4FGL_J2207.5-5346_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/195442/ltcube_572140801_572400001_4FGL_J2207.5-5346_daily_bin1284.fits outfile=/scratch/kocevski/195442/expmap_572140801_572400001_4FGL_J2207.5-5346_daily_bin1284.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/195442/ltcube_572140801_572400001_4FGL_J2207.5-5346_daily_bin1284.fits
.....................!
real 190.13
user 185.25
sys 4.46

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/195442/ft1_filtered_4FGL_J2207.5-5346_daily_bin1284.fits scfile=/scratch/kocevski/195442/ft2_4FGL_J2207.5-5346_daily_bin1284.fits outfile=/scratch/kocevski/195442/cmap_572140801_572400001_4FGL_J2207.5-5346_daily_bin1284.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.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9797       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10698E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97679       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1802       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=   5234.019     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2057 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1559        3.0222        .57024E-02    .27527E-03
   2  Prefactor     .10000E-03    10.917        .90712E-02** at limit **
   3  Prefactor     .10000E-03    73.828        .14484    ** at limit **
   4  Prefactor     .10000E-03    127.44        .10609E-01** at limit **
   5  Prefactor     13.278        10.855        .27490E-02   -.15401E-03
   6  Prefactor     .10000E-03    22.127        .90712E-02** at limit **
   7  Prefactor     2.9776        4.7136        .58800E-02    .44111E-03
   8  norm          .10000E-03    .34476        .20313E-01** at limit **
   9  Prefactor     .10000E-03    18.404        .90712E-02** at limit **
  10  Prefactor     .10000E-03    8.4431        .90712E-02** at limit **
  11  Prefactor     1.5073        3.4372        .87144E-02    .67476E-03
  12  Prefactor     .10000E-03    41.377        .90712E-02** at limit **
  13  norm          .10000E-03    7.4579        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.4680        .90712E-02** at limit **
  15  Prefactor     .10000E-03    2.5949        .90712E-02** at limit **
  16  Prefactor     .10000E-03    13.231        .90712E-02** at limit **
  17  Prefactor     .10000E-03    9.3076        .90712E-02** at limit **
  18  Prefactor     .10000E-03    33.895        .90712E-02** at limit **
  19  Prefactor     .10000E-03    16.249        .90712E-02** at limit **
  20  Prefactor     .10000E-03    5.8329        .90712E-02** at limit **
  21  Normalizat    .97690        .20861        .45875E-01    .57319E-04
  22  Prefactor     1.1802        .16693        .35118E-01    .65666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15587
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.2783
  Prefactor  = 0.0001
  Prefactor  = 2.97756
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.50732
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.976897
  Prefactor  = 1.18021
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.019     FROM HESSE     STATUS=OK           342 CALLS     2399 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1559        3.0188        .11850E-03   -1.5353    
   2  Prefactor     .10000E-03    10.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.629        .15772       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    127.87        .21218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.278        10.845        .10996E-03   -1.4979    
   6  Prefactor     .10000E-03    22.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9776        4.6944        .18805E-03   -1.5363    
   8  norm          .10000E-03    .42684        .82592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5073        3.4041        .19371E-03   -1.5462    
  12  Prefactor     .10000E-03    41.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.5579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4915        .11095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6058        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8370        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97690        .23639        .27994E-03   -.93808    
  22  Prefactor     1.1802        .19031        .20550E-03   -.86943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13307e-11
Minuit parameter uncertainties:
  1  3.01898
  2  5.85004e-06
  3  0.000507457
  4  0.000154914
  5  10.8469
  6  3.94689e-05
  7  4.69496
  8  3.1478e-08
  9  1.33404e-05
  10  1.68089e-05
  11  3.40449
  12  2.59825e-05
  13  2.75865e-07
  14  9.567e-07
  15  3.47885e-07
  16  1.46355e-05
  17  2.90196e-06
  18  3.56337e-05
  19  1.73382e-05
  20  2.28488e-07
  21  0.236641
  22  0.190418
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.507e+00  3.404e+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.180e+00  1.904e-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.769e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/195442/likelihoodResults_572140801_572400001_4FGL_J2207.5-5346_daily_bin1284.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) = 5233.9471976
delta logL = 0.0720352303588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5233.66276406
delta logL = 0.356468771926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11774E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0914       1.0000          .0000       10.000    
     3 'Normalizat'    .92432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2099       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=   5233.663     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      257 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11474E-01    .24808        .19344E-02    .10482E-01
   2  Index         6.1063        3.5192        .14201        .13516E-03
   3  Normalizat    .92436        .44632E-01    .64913E-01    .45865E-04
   4  Prefactor     1.2099        .35761E-01    .34400E-01   -.14597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0114739
  Index      = 6.10632
  Normalizat = 0.924356
  Prefactor  = 1.20993
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.663     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11474E-01    .74111        .89042E-04   -1.5687    
   2  Index         6.1063        8.0531        .72071E-02    .22311    
   3  Normalizat    .92436        .17048        .28712E-03   -.95609    
   4  Prefactor     1.2099        .13480        .20331E-03   -.86026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79428e-11
Minuit parameter uncertainties:
  1  0.183625
  2  8.70321
  3  0.170581
  4  0.134836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195442': 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): 102
logL (Free Index) = 5233.66275441
delta logL = 0.356478414164

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.147e-02  1.836e-01  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  6.106e+00  8.703e+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:  1.210e+00  1.348e-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.244e-01  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 6.11 +/- 8.70
Photon Flux (Free Index): 4.67e-08 +/- 5.03e-08
Energy Flux (Free Index): 5.79e-06 +/- 7.17e-06

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/195442/cmap_HighResolution_572140801_572400001_4FGL_J2207.5-5346_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', comment='SUCCESS', energy_flux2='5.79e-06', dlogl='3.56e-01', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-28 05:54:02.398506', photon_index_error2='8.70', photon_index2='6.11', ts='0.25', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='9.71e-08', energy_flux_error2='7.17e-06', EG='0.98', time_epoch_completed='1632833642.4', return_code='0', job_id='195442', GAL2='1.21', EG2='0.92', return_code2='102', photon_flux_error2='5.03e-08', ts2='1.02', photon_index='2.44' WHERE bin_id='1284' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:54:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 195442: <4FGL_J2207.5-5346_daily_bin1284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1284 331.892 -53.7719 572140801 572400001 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 :                                   564.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            801 sec.

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

