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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1267
RA = 331.892, Dec = -53.7719
tmin = 567734401, tmax = 567993601
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='195414', job_status='RUN', time_executed='2021-09-28 05:41:08.189227', time_epoch_executed='1632832868.19' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195414/ft1_4FGL_J2207.5-5346_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195414/ft2_4FGL_J2207.5-5346_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195414/ft1_4FGL_J2207.5-5346_daily_bin1267.fits outfile=/scratch/kocevski/195414/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1267.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=567734401.0 tmax=567993601.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.35
user 2.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195414/ft1_filtered_4FGL_J2207.5-5346_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/195414/ft2_4FGL_J2207.5-5346_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/195414/ltcube_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.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/195414/ft2_4FGL_J2207.5-5346_daily_bin1267.fits
.....................!
real 12.76
user 12.44
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195414/ft1_filtered_4FGL_J2207.5-5346_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/195414/ft2_4FGL_J2207.5-5346_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/195414/ltcube_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.fits outfile=/scratch/kocevski/195414/expmap_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.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/195414/ltcube_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.fits
.....................!
real 190.02
user 185.10
sys 4.55

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/195414/ft1_filtered_4FGL_J2207.5-5346_daily_bin1267.fits scfile=/scratch/kocevski/195414/ft2_4FGL_J2207.5-5346_daily_bin1267.fits outfile=/scratch/kocevski/195414/cmap_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195414/ft1_filtered_4FGL_J2207.5-5346_daily_bin1267.fits scfile=/scratch/kocevski/195414/ft2_4FGL_J2207.5-5346_daily_bin1267.fits outfile=/scratch/kocevski/195414/cmap_HighResolution_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195414/ft1_filtered_4FGL_J2207.5-5346_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/195414/ft2_4FGL_J2207.5-5346_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195414/Model_4FGL_J2207.5-5346_daily_bin1267.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/195414/ft1_filtered_4FGL_J2207.5-5346_daily_bin1267.fits.....................!
real 47.14
user 45.81
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.036       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.924       1.0000         .10000E-03   10000.    
     8 'norm      '    .50998       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.068       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.634       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1498       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0413       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=   5821.749     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2368 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1367        4.1222        .13064E-05    .12746E-03
   2  Prefactor     33.048        37.301       -.22322E-05   -.38450E-04
   3  Prefactor     .10000E-03    38.615        .54962E-05** at limit **
   4  Prefactor     77.067        72.036        .21462E-06   -.29793E-05
   5  Prefactor     36.211        15.872        .18425E-06   -.14621E-04
   6  Prefactor     48.203        37.319        .42293E-06   -.51076E-04
   7  Prefactor     14.923        8.2970        .56881E-07   -.65215E-04
   8  norm          .51007        1.0730        .18978E-06   -.10454E-04
   9  Prefactor     32.821        49.498        .15330E-05   -.78931E-05
  10  Prefactor     .10000E-03    3.7521       -.26267E-06** at limit **
  11  Prefactor     2.6487        4.5599        .13262E-06   -.40931E-04
  12  Prefactor     32.049        70.237        .37283E-05   -.74606E-05
  13  norm          .10000E-03    3.6088       -.20236E-07** at limit **
  14  Prefactor     4.5798        4.2435        .15555E-06   -.14367E-04
  15  Prefactor     3.7408        6.0842       -.15443E-06   -.27037E-04
  16  Prefactor     .10000E-03    17.504        .59217E-06** at limit **
  17  Prefactor     1.8737        19.312        .12843E-04   -.11533E-04
  18  Prefactor     .10000E-03    33.050       -.50036E-05** at limit **
  19  Prefactor     80.635        45.216       -.33286E-06    .14851E-05
  20  Prefactor     .10000E-03    7.6068        .25755E-07** at limit **
  21  Normalizat    1.1500        .22636       -.17224E-05   -.25665E-04
  22  Prefactor     1.0412        .17506        .40895E-08   -.86987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13668
  Prefactor  = 33.0476
  Prefactor  = 0.0001
  Prefactor  = 77.0674
  Prefactor  = 36.2109
  Prefactor  = 48.2031
  Prefactor  = 14.9231
  norm       = 0.510072
  Prefactor  = 32.8212
  Prefactor  = 0.0001
  Prefactor  = 2.64874
  Prefactor  = 32.049
  norm       = 0.0001
  Prefactor  = 4.5798
  Prefactor  = 3.74084
  Prefactor  = 0.0001
  Prefactor  = 1.87374
  Prefactor  = 0.0001
  Prefactor  = 80.6355
  Prefactor  = 0.0001
  Normalizat = 1.14998
  Prefactor  = 1.04116
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.749     FROM HESSE     STATUS=OK           344 CALLS     2712 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1367        4.0805        .27619E-03   -1.5495    
   2  Prefactor     33.048        37.177        .69717E-04   -1.4558    
   3  Prefactor     .10000E-03    38.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     77.067        72.018        .45742E-04   -1.3950    
   5  Prefactor     36.211        15.867        .66598E-04   -1.4504    
   6  Prefactor     48.203        37.295        .57754E-04   -1.4318    
   7  Prefactor     14.923        8.2928        .10368E-03   -1.4935    
   8  norm          .51007        1.0638        .10775E-03   -1.5565    
   9  Prefactor     32.821        49.527        .69937E-04   -1.4562    
  10  Prefactor     .10000E-03    3.7630        .14433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6487        4.5415        .20272E-03   -1.5382    
  12  Prefactor     32.049        70.220        .70758E-04   -1.4575    
  13  norm          .10000E-03    3.6239        .14156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5798        4.2419        .14532E-03   -1.5280    
  15  Prefactor     3.7408        6.0764        .20877E-03   -1.5321    
  16  Prefactor     .10000E-03    17.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8737        19.335        .15190E-02   -1.5434    
  18  Prefactor     .10000E-03    32.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     80.635        45.227        .44727E-04   -1.3910    
  20  Prefactor     .10000E-03    7.6245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1500        .26352        .28944E-03   -.88163    
  22  Prefactor     1.0412        .20371        .23832E-03   -.91370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94471e-10
Minuit parameter uncertainties:
  1  4.08149
  2  37.2027
  3  6.45402e-05
  4  72.0999
  5  15.8693
  6  37.3128
  7  8.29348
  8  1.0638
  9  49.5891
  10  2.74405e-05
  11  4.5421
  12  70.4024
  13  4.4504e-06
  14  4.24222
  15  6.07745
  16  1.54691e-05
  17  12.0426
  18  6.74663e-05
  19  45.2461
  20  1.73695e-06
  21  0.263822
  22  0.203856
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.649e+00  4.542e+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.041e+00  2.039e-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.150e+00  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/195414/likelihoodResults_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.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) = 5821.47294255
delta logL = 0.275982808645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5821.4571996
delta logL = 0.291725755186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4127       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6375       1.0000          .0000       10.000    
     3 'Normalizat'    1.1719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0266       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=   5821.457     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      217 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4127        4.3747        .54745E-02    .18531E-03
   2  Index         1.6375        .54732        .21798       -.74460E-04
   3  Normalizat    1.1719        .21489        .64885E-01    .97817E-05
   4  Prefactor     1.0266        .17011        .41534E-01    .75519E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.41275
  Index      = 1.6375
  Normalizat = 1.17194
  Prefactor  = 1.02661
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.457     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4127        4.8872        .17292E-03   -1.5338    
   2  Index         1.6375        .75628        .10871E-01   -.73758    
   3  Normalizat    1.1719        .25041        .28703E-03   -.87474    
   4  Prefactor     1.0266        .19827        .23966E-03   -.91848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31703e-11
Minuit parameter uncertainties:
  1  4.88781
  2  0.761651
  3  0.25067
  4  0.198416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195414': 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) = 5821.45719959
delta logL = 0.291725765486

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  3.413e+00  4.888e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  1.638e+00  7.617e-01  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.027e+00  1.984e-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.172e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 1.64 +/- 0.76
Photon Flux (Free Index): 1.41e-08 +/- 2.33e-08
Energy Flux (Free Index): 2.81e-05 +/- 5.35e-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/195414/cmap_HighResolution_567734401_567993601_4FGL_J2207.5-5346_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', comment='SUCCESS', energy_flux2='2.81e-05', dlogl='2.92e-01', photon_flux2='1.41e-08', job_status='DONE', time_completed='2021-09-28 05:51:25.650440', photon_index_error2='0.76', photon_index2='1.64', ts='0.42', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='5.35e-05', EG='1.15', time_epoch_completed='1632833485.65', return_code='0', job_id='195414', GAL2='1.03', EG2='1.17', return_code2='0', photon_flux_error2='2.33e-08', ts2='1.01', photon_index='2.44' WHERE bin_id='1267' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:51:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 195414: <4FGL_J2207.5-5346_daily_bin1267> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1267> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:39 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:40:40 2021
Terminated at Tue Sep 28 05:51:26 2021
Results reported at Tue Sep 28 05:51:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1267 331.892 -53.7719 567734401 567993601 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 :                                   603.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            647 sec.

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

