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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1635
RA = 332.474, Dec = -50.4702
tmin = 663120001, tmax = 663379201
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='887296', job_status='RUN', time_executed='2022-01-09 03:19:48.678766', time_epoch_executed='1641727188.68' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887296/ft1_4FGL_J2209.8-5028_daily_bin1635.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887296/ft1_4FGL_J2209.8-5028_daily_bin1635.fits outfile=/scratch/kocevski/887296/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1635.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=663120001.0 tmax=663379201.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.82
user 2.59
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.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/887296/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1635.fits evtable="EVENTS" outfile="/scratch/kocevski/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits" evtable="EVENTS" scfile=/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits sctable="SC_DATA" outfile=/scratch/kocevski/887296/ltcube_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.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/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits
.....................!
real 15.93
user 15.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits sctable="SC_DATA" expcube=/scratch/kocevski/887296/ltcube_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.fits outfile=/scratch/kocevski/887296/expmap_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.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/887296/ltcube_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.fits
.....................!
real 192.44
user 186.24
sys 4.99

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/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits scfile=/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits outfile=/scratch/kocevski/887296/cmap_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits scfile=/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits outfile=/scratch/kocevski/887296/cmap_HighResolution_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887296/Model_4FGL_J2209.8-5028_daily_bin1635.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/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits.....................!
real 45.05
user 43.72
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits', '/scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits', expMap='/scratch/kocevski/887296/expmap_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.fits', expCube='/scratch/kocevski/887296/ltcube_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887296/Model_4FGL_J2209.8-5028_daily_bin1635.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/887296/ft1_filtered_4FGL_J2209.8-5028_daily_bin1635.fits
Spacecraft file(s): /scratch/kocevski/887296/ft2_4FGL_J2209.8-5028_daily_bin1635.fits
Exposure map: /scratch/kocevski/887296/expmap_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.fits
Exposure cube: /scratch/kocevski/887296/ltcube_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887296/Model_4FGL_J2209.8-5028_daily_bin1635.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) = 5425.65060483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12987E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.242       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .66187       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    84.010       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5483       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9736       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.800       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.310       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4749       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67861       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=   5425.640     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2916 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    203.90        .64167E-05** at limit **
   2  Prefactor     .10000E-03    21.332       -.19075E-05** at limit **
   3  Prefactor     9.3701        11.118        .15243E-06   -.98561E-04
   4  Prefactor     .10000E-03    18.276        .92652E-06** at limit **
   5  Prefactor     24.242        26.752        .81813E-07   -.44838E-04
   6  Prefactor     .10000E-03    3.1492        .98755E-07** at limit **
   7  norm          .63940        5.1731       -.57983E-06   -.11970E-03
   8  Prefactor     9.8838        13.737       -.20622E-07   -.60335E-04
   9  Prefactor     84.030        57.635       -.21968E-05   -.14786E-03
  10  Prefactor     6.4834        8.8594        .44511E-06   -.40414E-04
  11  Prefactor     3.5526        6.1659        .14600E-05    .12257E-03
  12  Prefactor     .10000E-03    31.264        .18727E-05** at limit **
  13  norm          .10000E-03    2.9422       -.10317E-06** at limit **
  14  Prefactor     1.9759        4.2425        .52083E-06    .90512E-04
  15  Prefactor     .10000E-03    46.043       -.20052E-05** at limit **
  16  Prefactor     1.3592        4.6057        .32651E-06   -.85633E-04
  17  Prefactor     45.788        35.627        .48178E-06    .15318E-04
  18  Prefactor     10.312        14.636        .43048E-06   -.79403E-04
  19  Prefactor     .10000E-03    121.03       -.12565E-05** at limit **
  20  Prefactor     2.8600        7.3621        .46682E-05   -.27973E-03
  21  Prefactor     .10000E-03    10.173       -.76625E-07** at limit **
  22  Prefactor     .10000E-03    27.680        .31741E-06** at limit **
  23  norm          .10000E-03    2.5473       -.32656E-07** at limit **
  24  Normalizat    1.4743        .21905       -.87524E-06   -.24808E-03
  25  Prefactor     .67892        .16148       -.11226E-05   -.33805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.37011
  Prefactor  = 0.0001
  Prefactor  = 24.2421
  Prefactor  = 0.0001
  norm       = 0.639398
  Prefactor  = 9.88381
  Prefactor  = 84.0301
  Prefactor  = 6.48343
  Prefactor  = 3.55264
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.97586
  Prefactor  = 0.0001
  Prefactor  = 1.35915
  Prefactor  = 45.7881
  Prefactor  = 10.3123
  Prefactor  = 0.0001
  Prefactor  = 2.86005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.47434
  Prefactor  = 0.678924
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.640     FROM HESSE     STATUS=OK           429 CALLS     3345 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.03        .41161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3701        11.101        .13094E-03   -1.5096    
   4  Prefactor     .10000E-03    18.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.242        26.754        .81356E-04   -1.4723    
   6  Prefactor     .10000E-03    3.1773        .12762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .63940        10.944        .31373E-02   -1.5548    
   8  Prefactor     9.8838        13.681        .12749E-03   -1.5079    
   9  Prefactor     84.030        57.944        .43826E-04   -1.3872    
  10  Prefactor     6.4834        8.8298        .15763E-03   -1.5199    
  11  Prefactor     3.5526        6.1872        .21457E-03   -1.5331    
  12  Prefactor     .10000E-03    31.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9483        .12340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9759        4.2503        .20929E-03   -1.5427    
  15  Prefactor     .10000E-03    46.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3592        4.5589        .27535E-03   -1.5475    
  17  Prefactor     45.788        35.644        .59245E-04   -1.4354    
  18  Prefactor     10.312        14.614        .62392E-03   -1.5066    
  19  Prefactor     .10000E-03    121.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8600        7.4588        .12024E-02   -1.5370    
  21  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5488        .11482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4743        .25729        .23858E-03   -.78502    
  25  Prefactor     .67892        .18773        .26519E-03   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02682e-08
Minuit parameter uncertainties:
  1  0.000190941
  2  0.000144886
  3  11.1031
  4  7.3344e-05
  5  26.7668
  6  1.26621e-05
  7  5.29127
  8  13.6852
  9  57.9832
  10  8.83155
  11  6.18832
  12  0.000162296
  13  9.48418e-06
  14  4.25094
  15  0.000222778
  16  4.56011
  17  35.6602
  18  14.6195
  19  0.000162345
  20  7.46125
  21  5.07014e-06
  22  6.63949e-05
  23  4.42408e-07
  24  0.257517
  25  0.1879
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.623e-04  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:  6.789e-01  1.879e-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.474e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887296/likelihoodResults_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.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) = 5425.64015032
delta logL = -0.00011284321954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5425.64003865
delta logL = -1.1747906683e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7360       1.0000          .0000       10.000    
     3 'Normalizat'    1.4743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67893       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5425.640     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      286 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10607E-03    14.727        .18142E-01** at limit **
   2  Index         2.6179        8.3211        .50000        .15028E-04
   3  Normalizat    1.4743        .42464E-02    .23858E-03   -.27161E-05
   4  Prefactor     .67893        .33601E-02    .26519E-03   -.54873E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106073
  Index      = 2.61788
  Normalizat = 1.47434
  Prefactor  = 0.678926
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.640     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10607E-03    98.948        .34052E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6179        6.6210        .50000       -.49658    
   3  Normalizat    1.4743        .11061E-01    .95432E-05   -.78502    
   4  Prefactor     .67893        .87528E-02    .10608E-04   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25307e-09
Minuit parameter uncertainties:
  1  0.0491093
  2  328.514
  3  0.0110614
  4  0.00875282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887296': 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) = 5425.64003824
delta logL = -7.68177415011e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.061e-04  4.911e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.618e+00  3.285e+02  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:  6.789e-01  8.753e-03  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.474e+00  1.106e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/887296/cmap_HighResolution_663120001_663379201_4FGL_J2209.8-5028_daily_bin1635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2022-01-09 03:31:13.980673', job_id='887296', GAL2='0.68', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1641727873.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-7.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1635' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  9 03:31:14 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 887296: <4FGL_J2209.8-5028_daily_bin1635> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1635> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  9 03:15:17 2022
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  9 03:15:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  9 03:15:53 2022
Terminated at Sun Jan  9 03:31:14 2022
Results reported at Sun Jan  9 03:31:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1635 332.474 -50.4702 663120001 663379201 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 :                                   685.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            957 sec.

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

