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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1165
RA = 331.892, Dec = -53.7719
tmin = 541296001, tmax = 541555201
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='195254', job_status='RUN', time_executed='2021-09-28 05:42:37.247893', time_epoch_executed='1632832957.25' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195254/ft1_4FGL_J2207.5-5346_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195254/ft2_4FGL_J2207.5-5346_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195254/ft1_4FGL_J2207.5-5346_daily_bin1165.fits outfile=/scratch/kocevski/195254/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1165.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=541296001.0 tmax=541555201.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.73
user 3.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195254/ft1_filtered_4FGL_J2207.5-5346_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/195254/ft2_4FGL_J2207.5-5346_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/195254/ltcube_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.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/195254/ft2_4FGL_J2207.5-5346_daily_bin1165.fits
.....................!
real 13.22
user 12.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195254/ft1_filtered_4FGL_J2207.5-5346_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/195254/ft2_4FGL_J2207.5-5346_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/195254/ltcube_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.fits outfile=/scratch/kocevski/195254/expmap_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.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/195254/ltcube_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.fits
.....................!
real 192.44
user 186.70
sys 5.40

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/195254/ft1_filtered_4FGL_J2207.5-5346_daily_bin1165.fits scfile=/scratch/kocevski/195254/ft2_4FGL_J2207.5-5346_daily_bin1165.fits outfile=/scratch/kocevski/195254/cmap_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195254/ft1_filtered_4FGL_J2207.5-5346_daily_bin1165.fits scfile=/scratch/kocevski/195254/ft2_4FGL_J2207.5-5346_daily_bin1165.fits outfile=/scratch/kocevski/195254/cmap_HighResolution_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195254/ft1_filtered_4FGL_J2207.5-5346_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/195254/ft2_4FGL_J2207.5-5346_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195254/Model_4FGL_J2207.5-5346_daily_bin1165.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/195254/ft1_filtered_4FGL_J2207.5-5346_daily_bin1165.fits.....................!
real 42.65
user 41.39
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5751       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7935       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    176.67       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.674       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.744       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3251       1.0000         .10000E-03   10000.    
     8 'norm      '    .29836       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11542E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46994E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    101.78       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.305       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96986       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=   5221.956     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2405 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5756        3.1481       -.57958E-07   -.82122E-04
   2  Prefactor     6.7931        14.580       -.34092E-07   -.84601E-04
   3  Prefactor     .10000E-03    26.626       -.34273E-07** at limit **
   4  Prefactor     176.66        103.98       -.82218E-05   -.16596E-04
   5  Prefactor     10.675        10.106       -.75217E-06   -.55730E-05
   6  Prefactor     65.745        40.035       -.15562E-06    .12563E-04
   7  Prefactor     6.3256        4.7462        .66958E-07    .15368E-04
   8  norm          .29909        .68235        .77575E-07    .93019E-04
   9  Prefactor     3.3249        68.259        .12651E-05    .16632E-05
  10  Prefactor     2.2015        3.1234        .42211E-06   -.83755E-03
  11  Prefactor     .10000E-03    1.1651       -.14543E-07** at limit **
  12  Prefactor     .10000E-03    99.188       -.32573E-05** at limit **
  13  norm          .10000E-03    4.0550       -.46972E-07** at limit **
  14  Prefactor     6.6410        5.3870        .18017E-06    .98919E-04
  15  Prefactor     .10001E-03    7.0177       -.60465E-06** at limit **
  16  Prefactor     .10000E-03    13.003        .98959E-07** at limit **
  17  Prefactor     5.3973        10.358       -.24418E-05   -.13447E-04
  18  Prefactor     101.80        118.17        .12008E-04    .20832E-04
  19  Prefactor     11.296        39.164       -.20984E-05    .12790E-04
  20  Prefactor     .10000E-03    4.8883        .71350E-07** at limit **
  21  Normalizat    1.0687        .21271        .22001E-05    .73164E-04
  22  Prefactor     .96986        .15945       -.93951E-07    .15874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.57556
  Prefactor  = 6.79313
  Prefactor  = 0.0001
  Prefactor  = 176.655
  Prefactor  = 10.6751
  Prefactor  = 65.7455
  Prefactor  = 6.32564
  norm       = 0.299093
  Prefactor  = 3.32487
  Prefactor  = 2.20147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.64103
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 5.39726
  Prefactor  = 101.799
  Prefactor  = 11.2962
  Prefactor  = 0.0001
  Normalizat = 1.06868
  Prefactor  = 0.969857
 **********
 **   18 **HESSE 
 **********

 FCN=   5221.956     FROM HESSE     STATUS=OK           360 CALLS     2765 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5756        3.1348        .17229E-03   -1.5457    
   2  Prefactor     6.7931        14.634        .76970E-03   -1.5187    
   3  Prefactor     .10000E-03    26.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     176.66        104.17        .15182E-03   -1.3042    
   5  Prefactor     10.675        10.108        .12263E-03   -1.5054    
   6  Prefactor     65.745        40.061        .49497E-04   -1.4085    
   7  Prefactor     6.3256        4.7446        .13089E-03   -1.5205    
   8  norm          .29909        .61268        .86508E-03   -1.5599    
   9  Prefactor     3.3249        69.633        .22179E-03   -1.5343    
  10  Prefactor     2.2015        8.5462        .13833E-02   -1.5411    
  11  Prefactor     .10000E-03    1.1691        .76168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    99.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0683        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6410        5.4039        .14403E-03   -1.5193    
  15  Prefactor     .10001E-03    8.4559        .51954E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3973        10.341        .17300E-03   -1.5243    
  18  Prefactor     101.80        118.21        .19926E-03   -1.3687    
  19  Prefactor     11.296        39.141        .11915E-03   -1.5036    
  20  Prefactor     .10000E-03    4.8895        .15604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0687        .25032        .27371E-03   -.90764    
  22  Prefactor     .96986        .18708        .21933E-03   -.93741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40291e-09
Minuit parameter uncertainties:
  1  3.13517
  2  14.6415
  3  1.09175e-05
  4  104.275
  5  10.1091
  6  40.0771
  7  4.74486
  8  0.61269
  9  30.4716
  10  8.55092
  11  1.77993e-06
  12  0.000122342
  13  2.05614e-06
  14  5.40429
  15  0.000571929
  16  1.44836e-05
  17  10.344
  18  118.489
  19  39.2299
  20  2.9497e-06
  21  0.250599
  22  0.187205
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.780e-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.699e-01  1.872e-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.069e+00  2.506e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195254/likelihoodResults_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.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) = 5221.95974165
delta logL = -0.00394825006879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5221.95579313
delta logL = 2.67780706054e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5221.956     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.006        .76704E-02** at limit **
   2  Index         1.9862        5.7571        .50000       -.18840E-05
   3  Normalizat    1.0687        .15438E-01    .27371E-03   -.18741E-03
   4  Prefactor     .96986        .11914E-01    .21933E-03   -.22005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98616
  Normalizat = 1.06868
  Prefactor  = 0.969856
 **********
 **   18 **HESSE 
 **********

 FCN=   5221.956     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      276 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.785        .81413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9862        7.2128        .50000       -.64696    
   3  Normalizat    1.0687        .49382E-01    .10948E-04   -.90764    
   4  Prefactor     .96986        .38110E-01    .43867E-04   -.93741    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68919e-08
Minuit parameter uncertainties:
  1  1.35122e-05
  2  597.892
  3  0.0493839
  4  0.038111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195254': 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) = 5221.95578817
delta logL = 5.22862501384e-06

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.351e-05  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  1.986e+00  5.979e+02  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.699e-01  3.811e-02  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.069e+00  4.938e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/195254/cmap_HighResolution_541296001_541555201_4FGL_J2207.5-5346_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-09-28 05:52:44.124205', job_id='195254', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632833564.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1165' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:52:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 195254: <4FGL_J2207.5-5346_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1165> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:25 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:26 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:26 2021
Terminated at Tue Sep 28 05:52:44 2021
Results reported at Tue Sep 28 05:52:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1165 331.892 -53.7719 541296001 541555201 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 :                                   587.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             242.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

