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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin685
RA = 332.474, Dec = -50.4702
tmin = 416880001, tmax = 417139201
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='208895', job_status='RUN', time_executed='2021-09-28 06:23:18.966111', time_epoch_executed='1632835398.97' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208895/ft1_4FGL_J2209.8-5028_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208895/ft1_4FGL_J2209.8-5028_daily_bin685.fits outfile=/scratch/kocevski/208895/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin685.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=416880001.0 tmax=417139201.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 5.29
user 5.06
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.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/208895/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin685.fits evtable="EVENTS" outfile="/scratch/kocevski/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.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.57
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/208895/ltcube_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.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/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits
.....................!
real 12.19
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/208895/ltcube_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.fits outfile=/scratch/kocevski/208895/expmap_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.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/208895/ltcube_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.fits
.....................!
real 190.16
user 184.69
sys 5.09

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits scfile=/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits outfile=/scratch/kocevski/208895/cmap_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.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=332.474 yref=-50.4702 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits scfile=/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits outfile=/scratch/kocevski/208895/cmap_HighResolution_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.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=332.474 yref=-50.4702 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/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208895/Model_4FGL_J2209.8-5028_daily_bin685.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/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits.....................!
real 29.61
user 28.37
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits', '/scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits', expMap='/scratch/kocevski/208895/expmap_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.fits', expCube='/scratch/kocevski/208895/ltcube_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/208895/Model_4FGL_J2209.8-5028_daily_bin685.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/208895/ft1_filtered_4FGL_J2209.8-5028_daily_bin685.fits
Spacecraft file(s): /scratch/kocevski/208895/ft2_4FGL_J2209.8-5028_daily_bin685.fits
Exposure map: /scratch/kocevski/208895/expmap_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.fits
Exposure cube: /scratch/kocevski/208895/ltcube_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/208895/Model_4FGL_J2209.8-5028_daily_bin685.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) = 2867.02310599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    118.96       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9611       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.314       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19926E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.509       1.0000         .10000E-03   10000.    
    13 'norm      '    12.739       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.117       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.161       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0059       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0134       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2856       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2867.007     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     3284 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.388        .63989E-06** at limit **
   2  Prefactor     .10000E-03    239.02       -.45170E-06** at limit **
   3  Prefactor     .10000E-03    25.546       -.94958E-06** at limit **
   4  Prefactor     .10000E-03    30.622       -.12549E-06** at limit **
   5  Prefactor     118.97        65.919        .84378E-07   -.27643E-05
   6  Prefactor     4.9619        7.8400        .91654E-07   -.67773E-04
   7  norm          .10000E-03    6.1718       -.10898E-06** at limit **
   8  Prefactor     .10000E-03    11.532       -.66913E-07** at limit **
   9  Prefactor     46.350        69.760        .58702E-06    .17745E-04
  10  Prefactor     .10000E-03    75.614        .17482E-04** at limit **
  11  Prefactor     5.9451        6.9815        .20799E-06   -.71503E-04
  12  Prefactor     20.591        406.74       -.82592E-05   -.23781E-04
  13  norm          12.738        12.355        .38728E-07   -.20763E-04
  14  Prefactor     .10000E-03    6.3101       -.56230E-07** at limit **
  15  Prefactor     .10000E-03    72.170       -.55542E-06** at limit **
  16  Prefactor     .10000E-03    3.0603        .51604E-07** at limit **
  17  Prefactor     .10000E-03    24.776        .37130E-06** at limit **
  18  Prefactor     .10000E-03    37.747        .69384E-06** at limit **
  19  Prefactor     46.116        124.16        .12476E-05   -.60455E-05
  20  Prefactor     32.156        23.105        .14458E-06    .45366E-05
  21  Prefactor     .10000E-03    46.914       -.63051E-06** at limit **
  22  Prefactor     4.9934        93.297        .11787E-05   -.11566E-04
  23  norm          .10000E-03    7.2726       -.35866E-07** at limit **
  24  Normalizat    1.0134        .32843       -.26895E-05   -.64248E-04
  25  Prefactor     1.2855        .24379        .14867E-05   -.15915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.971
  Prefactor  = 4.96188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.3499
  Prefactor  = 0.000100002
  Prefactor  = 5.94508
  Prefactor  = 20.5914
  norm       = 12.7383
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 46.116
  Prefactor  = 32.1556
  Prefactor  = 0.000100001
  Prefactor  = 4.99336
  norm       = 0.0001
  Normalizat = 1.01344
  Prefactor  = 1.2855
 **********
 **   18 **HESSE 
 **********

 FCN=   2867.007     FROM HESSE     STATUS=OK           413 CALLS     3697 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    240.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     118.97        65.889        .36894E-04   -1.3522    
   6  Prefactor     4.9619        7.8225        .17952E-03   -1.5262    
   7  norm          .10000E-03    6.2501        .12985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.559        .17761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.350        69.678        .58917E-04   -1.4345    
  10  Prefactor     .10000E-03    76.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9451        6.9667        .14579E-03   -1.5220    
  12  Prefactor     20.591        421.40        .88443E-04   -1.4800    
  13  norm          12.738        12.356        .11223E-03   -1.4994    
  14  Prefactor     .10000E-03    6.4066        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    72.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0617        .91483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.116        124.03        .59042E-04   -1.4349    
  20  Prefactor     32.156        23.143        .70656E-04   -1.4573    
  21  Prefactor     .10000E-03    46.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9934        94.210        .17973E-03   -1.5261    
  23  norm          .10000E-03    7.2727        .14103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0134        .37562        .31909E-03   -.92582    
  25  Prefactor     1.2855        .27947        .22633E-03   -.83739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60625e-10
Minuit parameter uncertainties:
  1  0.000637276
  2  0.000434305
  3  0.000138367
  4  5.50923e-06
  5  65.9296
  6  7.82416
  7  2.35731e-06
  8  2.03829e-06
  9  69.8003
  10  0.000714431
  11  6.96762
  12  187.837
  13  12.3587
  14  8.51878e-06
  15  0.000392805
  16  7.73516e-07
  17  0.000113613
  18  0.000311515
  19  124.735
  20  23.1495
  21  0.000364005
  22  43.4574
  23  1.20193e-06
  24  0.376609
  25  0.279797
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.059e+01  1.878e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.286e+00  2.798e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.013e+00  3.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208895/likelihoodResults_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.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) = 2866.58594151
delta logL = 0.421438449003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2866.58492027
delta logL = 0.422459695129

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   2866.585     FROM MIGRAD    STATUS=FAILED       103 CALLS      306 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0612        701.00        .66775E-03   -.50710E-04
   2  Index         3.8902        6.8649        .44191E-02    .24907E-03
   3  Normalizat    .94180        .33225        .32912E-03   -.13299E-04
   4  Prefactor     1.3139        .25919        .22403E-03   -.28072E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2866.585     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      392 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0612        701.00        .51560E-03   -.50710E-04
   2  Index         3.8902        6.8649        .96836E-03    .24907E-03
   3  Normalizat    .94180        .33225        .34830E-03   -.13299E-04
   4  Prefactor     1.3139        .25919        .17587E-03   -.28072E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2866.585     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      422 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0612        42.278        .26710E-04   -.55205E-04
   2  Index         3.8902        1.8470        .88381E-03   -.17301E-04
   3  Normalizat    .94180        .35663        .13165E-04   -.12695E-04
   4  Prefactor     1.3139        .27749        .44807E-04   -.26743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.06121
  Index      = 3.89018
  Normalizat = 0.941796
  Prefactor  = 1.31393
 **********
 **   18 **HESSE 
 **********

 FCN=   2866.585     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0612        34.881        .53420E-05   -1.5106    
   2  Index         3.8902        1.6557        .35352E-04   -.22383    
   3  Normalizat    .94180        .35702        .26329E-05   -.95007    
   4  Prefactor     1.3139        .27769        .89613E-05   -.82894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41609e-12
Minuit parameter uncertainties:
  1  34.9591
  2  1.68933
  3  0.357929
  4  0.278001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208895': 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) = 2866.58491806
delta logL = 0.422461905142

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  9.061e+00  3.496e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.890e+00  1.689e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.314e+00  2.780e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  9.418e-01  3.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 332.474 -50.470

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/208895/cmap_HighResolution_416880001_417139201_4FGL_J2209.8-5028_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-28 06:32:13.087553', job_id='208895', GAL2='1.31', fit_tolerance='1e-08', EG2='0.94', EG='1.01', time_epoch_completed='1632835933.09', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='4.22e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='685' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:32:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 208895: <4FGL_J2209.8-5028_daily_bin685> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin685> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:16 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:20:18 2021
Terminated at Tue Sep 28 06:32:13 2021
Results reported at Tue Sep 28 06:32:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin685 332.474 -50.4702 416880001 417139201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

