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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1289
RA = 332.474, Dec = -50.4702
tmin = 573436801, tmax = 573696001
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='211011', job_status='RUN', time_executed='2021-09-28 06:26:41.169121', time_epoch_executed='1632835601.17' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211011/ft1_4FGL_J2209.8-5028_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211011/ft2_4FGL_J2209.8-5028_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211011/ft1_4FGL_J2209.8-5028_daily_bin1289.fits outfile=/scratch/kocevski/211011/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1289.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=573436801.0 tmax=573696001.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.46
user 5.17
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211011/ft1_filtered_4FGL_J2209.8-5028_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/211011/ft2_4FGL_J2209.8-5028_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/211011/ltcube_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.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/211011/ft2_4FGL_J2209.8-5028_daily_bin1289.fits
.....................!
real 11.65
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211011/ft1_filtered_4FGL_J2209.8-5028_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/211011/ft2_4FGL_J2209.8-5028_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/211011/ltcube_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.fits outfile=/scratch/kocevski/211011/expmap_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.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/211011/ltcube_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.fits
.....................!
real 191.24
user 186.14
sys 4.79

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/211011/ft1_filtered_4FGL_J2209.8-5028_daily_bin1289.fits scfile=/scratch/kocevski/211011/ft2_4FGL_J2209.8-5028_daily_bin1289.fits outfile=/scratch/kocevski/211011/cmap_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211011/ft1_filtered_4FGL_J2209.8-5028_daily_bin1289.fits scfile=/scratch/kocevski/211011/ft2_4FGL_J2209.8-5028_daily_bin1289.fits outfile=/scratch/kocevski/211011/cmap_HighResolution_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.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/211011/ft1_filtered_4FGL_J2209.8-5028_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/211011/ft2_4FGL_J2209.8-5028_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211011/Model_4FGL_J2209.8-5028_daily_bin1289.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/211011/ft1_filtered_4FGL_J2209.8-5028_daily_bin1289.fits.....................!
real 41.20
user 39.84
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.400       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.262       1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94478       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3125       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4232       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    74.975       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .45395E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.8012       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95773       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0928       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=   4857.889     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     2942 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.429        42.455       -.19908E-06    .17472E-04
   2  Prefactor     6.3027        134.21       -.11775E-05   -.19889E-05
   3  Prefactor     25.598        13.473        .65957E-07   -.31470E-04
   4  Prefactor     54.256        39.220       -.31080E-06   -.77591E-04
   5  Prefactor     25.395        35.959        .59239E-06   -.81174E-05
   6  Prefactor     .10000E-03    3.9810        .10587E-06** at limit **
   7  norm          .10000E-03    5.6722        .25605E-05** at limit **
   8  Prefactor     .10000E-03    33.163        .14055E-05** at limit **
   9  Prefactor     90.787        54.566       -.40476E-06    .24060E-05
  10  Prefactor     .10000E-03    5.3433        .72077E-06** at limit **
  11  Prefactor     4.3652        4.3719       -.20644E-06   -.38538E-04
  12  Prefactor     19.323        74.864       -.22978E-06   -.24450E-05
  13  norm          .10000E-03    5.1070        .17277E-07** at limit **
  14  Prefactor     9.8236        5.5209        .19274E-08   -.20715E-05
  15  Prefactor     .10000E-03    26.681       -.18079E-07** at limit **
  16  Prefactor     .10000E-03    2.5158        .12388E-06** at limit **
  17  Prefactor     .86577        326.11       -.72166E-05    .37684E-04
  18  Prefactor     2.3491        22.230        .13403E-06    .23323E-04
  19  Prefactor     1.1060        1362.0        .96760E-05    .22225E-05
  20  Prefactor     .10000E-03    4.2053       -.27383E-07** at limit **
  21  Prefactor     75.000        57.492       -.11385E-06    .24604E-04
  22  Prefactor     .10015E-03    29.452        .55889E-06** at limit **
  23  norm          4.8001        5.8918        .62897E-07    .24483E-04
  24  Normalizat    .95760        .25195       -.82702E-06    .42056E-04
  25  Prefactor     1.0928        .18804        .47243E-06   -.39276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.4286
  Prefactor  = 6.30269
  Prefactor  = 25.5981
  Prefactor  = 54.2557
  Prefactor  = 25.3948
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.7867
  Prefactor  = 0.0001
  Prefactor  = 4.36522
  Prefactor  = 19.3229
  norm       = 0.0001
  Prefactor  = 9.82362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.865768
  Prefactor  = 2.34911
  Prefactor  = 1.106
  Prefactor  = 0.0001
  Prefactor  = 74.9996
  Prefactor  = 0.000100152
  norm       = 4.80009
  Normalizat = 0.957599
  Prefactor  = 1.09281
 **********
 **   18 **HESSE 
 **********

 FCN=   4857.889     FROM HESSE     STATUS=OK           433 CALLS     3375 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.429        42.370        .44249E-04   -1.3890    
   2  Prefactor     6.3027        133.49        .15993E-03   -1.5206    
   3  Prefactor     25.598        13.474        .79170E-04   -1.4696    
   4  Prefactor     54.256        39.334        .54473E-04   -1.4233    
   5  Prefactor     25.395        35.896        .79435E-04   -1.4700    
   6  Prefactor     .10000E-03    4.0865        .27149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.7529        .32147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     90.787        54.544        .21091E-03   -1.3799    
  10  Prefactor     .10000E-03    5.3950        .15750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3652        4.3675        .13927E-03   -1.5290    
  12  Prefactor     19.323        74.829        .91259E-04   -1.4829    
  13  norm          .10000E-03    5.1227        .15384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.8236        5.5316        .11772E-03   -1.5081    
  15  Prefactor     .10000E-03    26.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5222        .10795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .86577        440.18        .67455E-02   -1.5522    
  18  Prefactor     2.3491        27.534        .26979E-03   -1.5401    
  19  Prefactor     1.1060        1425.9        .36249E-02   -1.5498    
  20  Prefactor     .10000E-03    4.2140        .13959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     75.000        57.623        .46371E-04   -1.3974    
  22  Prefactor     .10015E-03    121.11        .57688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.8001        5.8880        .18302E-03   -1.5270    
  24  Normalizat    .95760        .28337        .30178E-03   -.94465    
  25  Prefactor     1.0928        .21391        .22601E-03   -.89697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74858e-09
Minuit parameter uncertainties:
  1  42.3851
  2  58.1608
  3  13.4753
  4  39.3528
  5  35.9266
  6  1.91954e-06
  7  3.37686e-05
  8  3.58753e-05
  9  54.5744
  10  1.68046e-05
  11  4.36786
  12  75.1959
  13  4.85114e-07
  14  5.53185
  15  4.72033e-07
  16  2.57131e-06
  17  39.3348
  18  16.0937
  19  81.4443
  20  2.30154e-07
  21  57.6662
  22  0.00859731
  23  5.88871
  24  0.283817
  25  0.214079
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.932e+01  7.520e+01  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.093e+00  2.141e-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.576e-01  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211011/likelihoodResults_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.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) = 4857.88040269
delta logL = 0.00818904581593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4857.87691675
delta logL = 0.0116749784002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.150       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1352       1.0000          .0000       10.000    
     3 'Normalizat'    .95856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0920       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=   4857.877     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      282 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.315        101.05        .38442E-03   -.26841E-03
   2  Index         2.1201        1.5453        .95161E-02   -.34821E-03
   3  Normalizat    .95895        .26018        .30158E-03   -.36155E-03
   4  Prefactor     1.0918        .20808        .22610E-03   -.12535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3148
  Index      = 2.12012
  Normalizat = 0.958946
  Prefactor  = 1.09183
 **********
 **   18 **HESSE 
 **********

 FCN=   4857.877     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.315        98.853        .15377E-04   -1.4662    
   2  Index         2.1201        1.5135        .38064E-03   -.61380    
   3  Normalizat    .95895        .26036        .60316E-04   -.94419    
   4  Prefactor     1.0918        .20821        .45219E-04   -.89728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62665e-08
Minuit parameter uncertainties:
  1  99.4535
  2  1.55037
  3  0.260701
  4  0.208368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211011': 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) = 4857.87686898
delta logL = 0.0117227510464

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.731e+01  9.945e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.120e+00  1.550e+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.092e+00  2.084e-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.589e-01  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/211011/cmap_HighResolution_573436801_573696001_4FGL_J2209.8-5028_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.34e-08', time_completed='2021-09-28 06:37:29.513808', job_id='211011', GAL2='1.09', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632836249.51', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.17e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1289' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 211011: <4FGL_J2209.8-5028_daily_bin1289> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1289> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:26:03 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:04 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:26:04 2021
Terminated at Tue Sep 28 06:37:30 2021
Results reported at Tue Sep 28 06:37:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1289 332.474 -50.4702 573436801 573696001 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 :                                   644.00 sec.
    Max Memory :                                 1219 MB
    Average Memory :                             307.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            687 sec.

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

