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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin826
RA = 330.832, Dec = -50.1512
tmin = 453427201, tmax = 453686401
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='147890', job_status='RUN', time_executed='2021-09-28 03:02:33.865011', time_epoch_executed='1632823353.87' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='826'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147890/ft1_4FGL_J2203.3-5009_daily_bin826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147890/ft1_4FGL_J2203.3-5009_daily_bin826.fits outfile=/scratch/kocevski/147890/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin826.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=453427201.0 tmax=453686401.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.49
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.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/147890/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin826.fits evtable="EVENTS" outfile="/scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits" evtable="EVENTS" scfile=/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits sctable="SC_DATA" outfile=/scratch/kocevski/147890/ltcube_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.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/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits
.....................!
real 18.21
user 17.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits sctable="SC_DATA" expcube=/scratch/kocevski/147890/ltcube_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.fits outfile=/scratch/kocevski/147890/expmap_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.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/147890/ltcube_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.fits
.....................!
real 191.46
user 186.13
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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J2203.3-5009 @ 330.832 -50.1512

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits scfile=/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits outfile=/scratch/kocevski/147890/cmap_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.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=330.832 yref=-50.1512 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits scfile=/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits outfile=/scratch/kocevski/147890/cmap_HighResolution_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.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=330.832 yref=-50.1512 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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147890/Model_4FGL_J2203.3-5009_daily_bin826.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/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits.....................!
real 51.67
user 50.21
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits', '/scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits', expMap='/scratch/kocevski/147890/expmap_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.fits', expCube='/scratch/kocevski/147890/ltcube_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147890/Model_4FGL_J2203.3-5009_daily_bin826.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2203.3-5009'

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.433e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.739e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147890/ft1_filtered_4FGL_J2203.3-5009_daily_bin826.fits
Spacecraft file(s): /scratch/kocevski/147890/ft2_4FGL_J2203.3-5009_daily_bin826.fits
Exposure map: /scratch/kocevski/147890/expmap_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.fits
Exposure cube: /scratch/kocevski/147890/ltcube_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147890/Model_4FGL_J2203.3-5009_daily_bin826.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) = 6612.29942893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.149       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3506       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7831       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5079       1.0000         .10000E-03   10000.    
     9 'norm      '    9.2615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.492       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3160       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11665E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.763       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15270E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3583       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.748       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2834       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.292       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.277       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91971       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6612.287     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3120 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6467        .45394E-07** at limit **
   2  Prefactor     19.163        22.299       -.77328E-08   -.38787E-04
   3  norm          3.3504        1.7970        .27552E-07   -.44383E-04
   4  Prefactor     .10000E-03    14.999        .32839E-07** at limit **
   5  Prefactor     9.7868        8.4103       -.76603E-07   -.57061E-04
   6  Prefactor     5.7819        16.803        .46209E-05   -.69845E-04
   7  Prefactor     .10000E-03    5.8065        .10404E-07** at limit **
   8  Prefactor     2.5077        3.5999        .27826E-06   -.69049E-04
   9  norm          9.2615        4.4164       -.17404E-06   -.57451E-04
  10  Prefactor     10.119        8.0382       -.28806E-07   -.50857E-04
  11  Prefactor     .10000E-03    53.540       -.31788E-06** at limit **
  12  Prefactor     12.470        9.7869        .84316E-07   -.61279E-04
  13  Prefactor     1.3176        3.7620        .11043E-05   -.83386E-04
  14  Prefactor     .10001E-03    130.47        .40113E-05** at limit **
  15  norm          14.762        8.3680        .47052E-07    .51397E-06
  16  Prefactor     .21082E-01    2.1938        .79859E-06   -.10400E-02
  17  Prefactor     .10000E-03    17.724       -.77387E-07** at limit **
  18  Prefactor     3.3609        5.5911        .38722E-06   -.17723E-03
  19  Prefactor     29.690        32.832       -.27409E-05   -.31834E-03
  20  Prefactor     4.2942        10.039        .88370E-06    .14805E-04
  21  Prefactor     .10000E-03    26.016        .44156E-07** at limit **
  22  Prefactor     .10000E-03    2.9166        .22124E-07** at limit **
  23  Prefactor     31.294        28.864        .26141E-06    .12413E-04
  24  Prefactor     12.281        18.764        .19467E-06   -.41506E-05
  25  Normalizat    .91915        .19656        .57742E-06   -.30151E-03
  26  Prefactor     .98566        .14042       -.91110E-06   -.16067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.163
  norm       = 3.35044
  Prefactor  = 0.0001
  Prefactor  = 9.78685
  Prefactor  = 5.78187
  Prefactor  = 0.0001
  Prefactor  = 2.50774
  norm       = 9.26149
  Prefactor  = 10.119
  Prefactor  = 0.0001
  Prefactor  = 12.47
  Prefactor  = 1.31758
  Prefactor  = 0.000100005
  norm       = 14.7622
  Prefactor  = 0.0210821
  Prefactor  = 0.0001
  Prefactor  = 3.36088
  Prefactor  = 29.6897
  Prefactor  = 4.29422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.2937
  Prefactor  = 12.2811
  Normalizat = 0.919151
  Prefactor  = 0.98566
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.287     FROM HESSE     STATUS=OK           470 CALLS     3590 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0521        .20163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.163        22.235        .91528E-04   -1.4832    
   3  norm          3.3504        1.7959        .76948E-04   -1.5342    
   4  Prefactor     .10000E-03    15.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7868        8.4113        .12811E-03   -1.5082    
   6  Prefactor     5.7819        17.099        .83507E-03   -1.5227    
   7  Prefactor     .10000E-03    5.8097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5077        3.5850        .17587E-03   -1.5391    
   9  norm          9.2615        4.4166        .11209E-03   -1.5099    
  10  Prefactor     10.119        8.0396        .12597E-03   -1.5072    
  11  Prefactor     .10000E-03    53.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.470        9.8034        .11333E-03   -1.5002    
  13  Prefactor     1.3176        3.7605        .24910E-03   -1.5478    
  14  Prefactor     .10001E-03    132.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.762        8.3688        .10424E-03   -1.4939    
  16  Prefactor     .21082E-01    6.2691        .35273E-01   -1.5679    
  17  Prefactor     .10000E-03    17.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3609        5.5708        .22083E-03   -1.5341    
  19  Prefactor     29.690        34.589        .73458E-04   -1.4618    
  20  Prefactor     4.2942        10.064        .19466E-03   -1.5293    
  21  Prefactor     .10000E-03    26.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9276        .13562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.294        28.880        .71628E-04   -1.4589    
  24  Prefactor     12.281        18.800        .11432E-03   -1.5007    
  25  Normalizat    .91915        .23459        .27717E-03   -.95790    
  26  Prefactor     .98566        .16426        .20784E-03   -.93209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46191e-09
Minuit parameter uncertainties:
  1  7.34645e-06
  2  22.2442
  3  1.79594
  4  4.45164e-06
  5  8.4123
  6  17.113
  7  6.54836e-07
  8  3.5853
  9  4.41673
  10  8.04041
  11  0.000192212
  12  9.80468
  13  3.76113
  14  0.00170972
  15  8.3695
  16  0.725443
  17  2.26484e-05
  18  5.57163
  19  34.6126
  20  10.0678
  21  2.84471e-05
  22  6.17114e-07
  23  28.8928
  24  18.8086
  25  0.234853
  26  0.164346
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.247e+01  9.805e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.739e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.857e-01  1.643e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  9.192e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.39
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.13e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.13e-05

TS (Fixed Index): 2.39
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147890/likelihoodResults_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.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) = 6611.44931373
delta logL = 0.837358245852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6611.40597446
delta logL = 0.880697520724

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6611.406     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1097        27.728        .57407E-02    .31118E-03
   2  Index         4.3618        3.4798        .14651        .11098E-03
   3  Normalizat    .84578        .60921E-01    .65040E-01    .11339E-04
   4  Prefactor     1.0267        .46770E-01    .41534E-01   -.10036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10972
  Index      = 4.36179
  Normalizat = 0.845783
  Prefactor  = 1.02669
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.406     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1097        46.534        .76104E-04   -1.5355    
   2  Index         4.3618        7.0868        .56120E-02   -.12799    
   3  Normalizat    .84578        .19539        .28771E-03   -.98392    
   4  Prefactor     1.0267        .15213        .20417E-03   -.91845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.48307e-07
Minuit parameter uncertainties:
  1  24.081
  2  5.78987
  3  0.195555
  4  0.152189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147890': 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) = 6611.40597373
delta logL = 0.880698245596

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.110e+00  2.408e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.362e+00  5.790e+00  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.027e+00  1.522e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.458e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 4.36 +/- 5.79
Photon Flux (Free Index): 1.11e-07 +/- 6.27e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/147890/cmap_HighResolution_453427201_453686401_4FGL_J2203.3-5009_daily_bin826.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='6.13e-08', energy_flux2='1.57e-05', photon_flux_error='4.82e-08', dlogl='8.81e-01', energy_flux='1.43e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-28 03:15:32.442030', photon_index_error2='5.79', photon_index2='4.36', ts='2.39', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.50e-05', EG='0.92', time_epoch_completed='1632824132.44', return_code='0', job_id='147890', GAL2='1.03', EG2='0.85', return_code2='102', energy_flux_error='1.13e-05', photon_flux_error2='6.27e-08', ts2='4.44', photon_index='2.74' WHERE bin_id='826' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 147890: <4FGL_J2203.3-5009_daily_bin826> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin826> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 03:00:27 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:00:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:00:30 2021
Terminated at Tue Sep 28 03:15:33 2021
Results reported at Tue Sep 28 03:15:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin826 330.832 -50.1512 453427201 453686401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2203.3-5009 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   776.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            906 sec.

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

