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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1628
RA = 330.832, Dec = -50.1512
tmin = 661305601, tmax = 661564801
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='338219', job_status='RUN', time_executed='2021-12-19 01:37:44.982855', time_epoch_executed='1639906664.98' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338219

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338219/ft1_4FGL_J2203.3-5009_daily_bin1628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338219/ft1_4FGL_J2203.3-5009_daily_bin1628.fits outfile=/scratch/kocevski/338219/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1628.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=661305601.0 tmax=661564801.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.74
user 3.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits" evtable="EVENTS" scfile=/scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits sctable="SC_DATA" outfile=/scratch/kocevski/338219/ltcube_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.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/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits
.....................!
real 16.49
user 16.04
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits sctable="SC_DATA" expcube=/scratch/kocevski/338219/ltcube_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.fits outfile=/scratch/kocevski/338219/expmap_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.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/338219/ltcube_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.fits
.....................!
real 196.57
user 189.49
sys 6.35

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/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits scfile=/scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits outfile=/scratch/kocevski/338219/cmap_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.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.60
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits scfile=/scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits outfile=/scratch/kocevski/338219/cmap_HighResolution_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338219/Model_4FGL_J2203.3-5009_daily_bin1628.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/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits.....................!
real 55.08
user 53.13
sys 1.71

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits', '/scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits', expMap='/scratch/kocevski/338219/expmap_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.fits', expCube='/scratch/kocevski/338219/ltcube_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/338219/Model_4FGL_J2203.3-5009_daily_bin1628.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/338219/ft1_filtered_4FGL_J2203.3-5009_daily_bin1628.fits
Spacecraft file(s): /scratch/kocevski/338219/ft2_4FGL_J2203.3-5009_daily_bin1628.fits
Exposure map: /scratch/kocevski/338219/expmap_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.fits
Exposure cube: /scratch/kocevski/338219/ltcube_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/338219/Model_4FGL_J2203.3-5009_daily_bin1628.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) = 7129.05270238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88229       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.936       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54673       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.742       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14130       1.0000         .10000E-03   10000.    
    17 'Prefactor '    78.039       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1784       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8535       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27430E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3486       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72871       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=   7128.959     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     2803 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8448       -.19932E-07** at limit **
   2  Prefactor     .10000E-03    11.121       -.16269E-06** at limit **
   3  norm          2.8821        1.9122       -.32178E-07   -.27024E-04
   4  Prefactor     6.0568        72.178        .20864E-05   -.42630E-05
   5  Prefactor     .88002        6.7719       -.20057E-05   -.49987E-04
   6  Prefactor     .10000E-03    16.783       -.49653E-06** at limit **
   7  Prefactor     .10000E-03    12.436        .43850E-06** at limit **
   8  Prefactor     .10000E-03    2.9559        .88625E-07** at limit **
   9  norm          12.076        5.0879       -.14328E-06    .49585E-04
  10  Prefactor     5.4072        7.7334       -.14022E-07   -.20564E-05
  11  Prefactor     .10000E-03    18.759        .36946E-06** at limit **
  12  Prefactor     16.926        10.087        .14937E-06   -.39414E-04
  13  Prefactor     .54320        2.6755        .21681E-06    .46585E-04
  14  Prefactor     17.716        66.785       -.28992E-05   -.92248E-06
  15  norm          .10000E-03    4.0401        .14239E-06** at limit **
  16  Prefactor     .71705E-01    2.4755       -.59628E-06    .55209E-03
  17  Prefactor     78.208        47.866        .10658E-05    .27212E-04
  18  Prefactor     5.1835        5.5993       -.62053E-06   -.17061E-04
  19  Prefactor     .10000E-03    18.909        .72835E-06** at limit **
  20  Prefactor     2.8475        8.7380       -.31621E-06   -.25025E-04
  21  Prefactor     .10000E-03    21.617        .43626E-06** at limit **
  22  Prefactor     .10000E-03    1.6789        .32160E-09** at limit **
  23  Prefactor     .10001E-03    110.57        .48794E-05** at limit **
  24  Prefactor     .10000E-03    6.6535        .13039E-06** at limit **
  25  Normalizat    1.3494        .17876       -.25351E-06   -.44346E-04
  26  Prefactor     .72839        .13142       -.28418E-06   -.48167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88212
  Prefactor  = 6.05678
  Prefactor  = 0.880024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0759
  Prefactor  = 5.40715
  Prefactor  = 0.0001
  Prefactor  = 16.9264
  Prefactor  = 0.543205
  Prefactor  = 17.7155
  norm       = 0.0001
  Prefactor  = 0.0717052
  Prefactor  = 78.2077
  Prefactor  = 5.18354
  Prefactor  = 0.0001
  Prefactor  = 2.84753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.34945
  Prefactor  = 0.72839
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.959     FROM HESSE     STATUS=OK           466 CALLS     3269 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6132        .22253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8821        1.9070        .91713E-04   -1.5368    
   4  Prefactor     6.0568        71.981        .16285E-03   -1.5216    
   5  Prefactor     .88002        6.7800        .41584E-03   -1.5520    
   6  Prefactor     .10000E-03    16.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0839        .28347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.076        5.0678        .11527E-03   -1.5013    
  10  Prefactor     5.4072        7.7292        .17277E-03   -1.5243    
  11  Prefactor     .10000E-03    18.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.926        10.075        .97322E-04   -1.4885    
  13  Prefactor     .54320        5.1098        .25580E-02   -1.5561    
  14  Prefactor     17.716        66.584        .95086E-04   -1.4866    
  15  norm          .10000E-03    4.1167        .16577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71705E-01    57.913        .21092E-02   -1.5654    
  17  Prefactor     78.208        48.270        .22729E-03   -1.3937    
  18  Prefactor     5.1835        5.6255        .17666E-03   -1.5253    
  19  Prefactor     .10000E-03    19.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8475        8.7472        .24068E-03   -1.5370    
  21  Prefactor     .10000E-03    21.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.6808        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    108.77        .61421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.6763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3494        .21521        .23529E-03   -.82102    
  26  Prefactor     .72839        .15522        .23822E-03   -1.0242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22712e-09
Minuit parameter uncertainties:
  1  2.48804e-05
  2  7.96099e-06
  3  1.90704
  4  41.8226
  5  4.8858
  6  5.49414e-05
  7  3.53566e-06
  8  8.49093e-06
  9  5.06799
  10  7.73064
  11  1.88645e-05
  12  10.076
  13  3.33215
  14  66.8651
  15  5.74184e-06
  16  4.07675
  17  48.2946
  18  5.62608
  19  6.38294e-05
  20  8.75115
  21  1.19988e-06
  22  2.97729e-07
  23  0.00148456
  24  5.94093e-06
  25  0.215356
  26  0.155308
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.693e+01  1.008e+01  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:  7.284e-01  1.553e-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:  1.349e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.16e-05

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) = 7128.74684106
delta logL = 0.212557645823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7128.73004007
delta logL = 0.229358637404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.114       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3231       1.0000          .0000       10.000    
     3 'Normalizat'    1.3247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74522       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=   7128.730     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.104        90.187        .31499E-02    .33269E-03
   2  Index         3.3238        3.6724        .16565        .14132E-03
   3  Normalizat    1.3247        .67225E-01    .53618E-01   -.37016E-04
   4  Prefactor     .74524        .51129E-01    .43000E-01   -.29818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1042
  Index      = 3.32379
  Normalizat = 1.32466
  Prefactor  = 0.745241
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.730     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.104        17.984        .12599E-03   -1.5072    
   2  Index         3.3238        1.4481        .62603E-02   -.34186    
   3  Normalizat    1.3247        .20298        .23708E-03   -.82833    
   4  Prefactor     .74524        .15512        .23588E-03   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14271e-11
Minuit parameter uncertainties:
  1  17.9933
  2  1.47188
  3  0.203101
  4  0.155211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338219': 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) = 7128.7300397
delta logL = 0.229359006986

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.010e+01  1.799e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.324e+00  1.472e+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:  7.452e-01  1.552e-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:  1.325e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 3.32 +/- 1.47
Photon Flux (Free Index): 9.62e-08 +/- 5.11e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/338219/cmap_HighResolution_661305601_661564801_4FGL_J2203.3-5009_daily_bin1628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='1.69e-05', photon_flux_error='4.95e-08', dlogl='2.29e-01', energy_flux='1.94e-05', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-12-19 01:49:27.615063', photon_index_error2='1.47', photon_index2='3.32', ts='4.66', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='1.35', time_epoch_completed='1639907367.62', return_code='0', job_id='338219', GAL2='0.75', EG2='1.32', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.11e-08', ts2='5.19', photon_index='2.74' WHERE bin_id='1628' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 19 01:49:27 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 338219: <4FGL_J2203.3-5009_daily_bin1628> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1628> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Dec 19 01:35:28 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 19 01:36:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 19 01:36:36 2021
Terminated at Sun Dec 19 01:49:28 2021
Results reported at Sun Dec 19 01:49:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1628 330.832 -50.1512 661305601 661564801 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 :                                   704.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            840 sec.

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

