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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin494
RA = 330.832, Dec = -50.1512
tmin = 367372801, tmax = 367632001
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='146350', job_status='RUN', time_executed='2021-09-28 02:57:32.114862', time_epoch_executed='1632823052.11' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146350/ft1_4FGL_J2203.3-5009_daily_bin494.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146350/ft2_4FGL_J2203.3-5009_daily_bin494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146350/ft1_4FGL_J2203.3-5009_daily_bin494.fits outfile=/scratch/kocevski/146350/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin494.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=367372801.0 tmax=367632001.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.42
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146350/ft2_4FGL_J2203.3-5009_daily_bin494.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/146350/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin494.fits evtable="EVENTS" outfile="/scratch/kocevski/146350/ft1_filtered_4FGL_J2203.3-5009_daily_bin494.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146350/ft1_filtered_4FGL_J2203.3-5009_daily_bin494.fits" evtable="EVENTS" scfile=/scratch/kocevski/146350/ft2_4FGL_J2203.3-5009_daily_bin494.fits sctable="SC_DATA" outfile=/scratch/kocevski/146350/ltcube_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.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/146350/ft2_4FGL_J2203.3-5009_daily_bin494.fits
.....................!
real 11.92
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146350/ft1_filtered_4FGL_J2203.3-5009_daily_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/146350/ft2_4FGL_J2203.3-5009_daily_bin494.fits sctable="SC_DATA" expcube=/scratch/kocevski/146350/ltcube_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.fits outfile=/scratch/kocevski/146350/expmap_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.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/146350/ltcube_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.fits
.....................!
real 190.86
user 185.88
sys 4.29

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/146350/ft1_filtered_4FGL_J2203.3-5009_daily_bin494.fits scfile=/scratch/kocevski/146350/ft2_4FGL_J2203.3-5009_daily_bin494.fits outfile=/scratch/kocevski/146350/cmap_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146350/ft1_filtered_4FGL_J2203.3-5009_daily_bin494.fits scfile=/scratch/kocevski/146350/ft2_4FGL_J2203.3-5009_daily_bin494.fits outfile=/scratch/kocevski/146350/cmap_HighResolution_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146350/ft1_filtered_4FGL_J2203.3-5009_daily_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/146350/ft2_4FGL_J2203.3-5009_daily_bin494.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146350/Model_4FGL_J2203.3-5009_daily_bin494.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/146350/ft1_filtered_4FGL_J2203.3-5009_daily_bin494.fits.....................!
real 42.30
user 40.98
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.537       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0891       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6292       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    95.196       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7936       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44317E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5944       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1364       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.724       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .97448E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89340       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1266       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=   5190.237     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3555 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2979        .19441E-06** at limit **
   2  Prefactor     .10000E-03    5.4829       -.26135E-06** at limit **
   3  norm          6.7578        3.1148        .12244E-06   -.65199E-04
   4  Prefactor     57.953        56.345       -.12285E-05    .19175E-05
   5  Prefactor     16.551        10.334       -.11466E-05    .14098E-04
   6  Prefactor     12.547        30.475       -.27936E-04   -.92195E-05
   7  Prefactor     .10000E-03    9.9601       -.63076E-07** at limit **
   8  Prefactor     2.0908        4.0704       -.61252E-07   -.39806E-03
   9  norm          5.6307        6.0988        .11956E-05   -.43301E-04
  10  Prefactor     9.9441        16.870        .19790E-06   -.12773E-04
  11  Prefactor     .10000E-03    40.058        .17839E-05** at limit **
  12  Prefactor     6.7209        10.181       -.41653E-05   -.11106E-03
  13  Prefactor     .10000E-03    2.2547       -.22454E-06** at limit **
  14  Prefactor     95.240        103.89        .28506E-04    .15368E-04
  15  norm          2.7941        5.6910        .11297E-05   -.29448E-03
  16  Prefactor     .10000E-03    2.6107       -.40701E-07** at limit **
  17  Prefactor     .10000E-03    18.414       -.16664E-06** at limit **
  18  Prefactor     .10003E-03    4.9769       -.14748E-05** at limit **
  19  Prefactor     7.5802        19.618        .25926E-04    .49877E-04
  20  Prefactor     7.1350        12.305       -.84081E-06   -.70058E-04
  21  Prefactor     .10000E-03    51.566       -.47139E-05** at limit **
  22  Prefactor     4.9297        5.6775       -.66513E-06    .37837E-04
  23  Prefactor     47.697        49.088        .14217E-04    .92430E-04
  24  Prefactor     .10871E-03    24.055       -.43814E-05** at limit **
  25  Normalizat    .89340        .22305       -.34782E-05    .42199E-03
  26  Prefactor     1.1263        .17098        .14371E-05    .15275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.75777
  Prefactor  = 57.9531
  Prefactor  = 16.5507
  Prefactor  = 12.547
  Prefactor  = 0.0001
  Prefactor  = 2.09082
  norm       = 5.63075
  Prefactor  = 9.94409
  Prefactor  = 0.0001
  Prefactor  = 6.72088
  Prefactor  = 0.0001
  Prefactor  = 95.24
  norm       = 2.79411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 7.58024
  Prefactor  = 7.13501
  Prefactor  = 0.0001
  Prefactor  = 4.92974
  Prefactor  = 47.6973
  Prefactor  = 0.000108712
  Normalizat = 0.893401
  Prefactor  = 1.12629
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.237     FROM HESSE     STATUS=OK           466 CALLS     4021 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3027        .80149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4850        .16476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7578        3.1165        .83088E-04   -1.5188    
   4  Prefactor     57.953        56.390        .52702E-04   -1.4184    
   5  Prefactor     16.551        10.331        .98460E-04   -1.4894    
   6  Prefactor     12.547        30.441        .11313E-03   -1.4999    
   7  Prefactor     .10000E-03    9.9706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0908        4.0409        .19418E-03   -1.5419    
   9  norm          5.6307        6.0787        .16932E-03   -1.5233    
  10  Prefactor     9.9441        16.849        .12712E-03   -1.5077    
  11  Prefactor     .10000E-03    40.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7209        10.172        .15475E-03   -1.5189    
  13  Prefactor     .10000E-03    2.2773        .10559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     95.240        103.77        .20597E-03   -1.3753    
  15  norm          2.7941        5.6640        .23879E-03   -1.5374    
  16  Prefactor     .10000E-03    2.6572        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    15.234        .30817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5802        19.558        .14552E-03   -1.5157    
  20  Prefactor     7.1350        12.288        .15016E-03   -1.5174    
  21  Prefactor     .10000E-03    51.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9297        5.6771        .17972E-03   -1.5264    
  23  Prefactor     47.697        49.085        .58044E-04   -1.4326    
  24  Prefactor     .10871E-03    29.812        .96290E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89340        .25570        .30009E-03   -.96692    
  26  Prefactor     1.1263        .19822        .21267E-03   -.88631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23202e-09
Minuit parameter uncertainties:
  1  1.39532e-06
  2  2.71603e-06
  3  3.11658
  4  56.4417
  5  10.3326
  6  30.479
  7  6.72794e-06
  8  4.04145
  9  6.07939
  10  16.8572
  11  2.20361e-05
  12  10.175
  13  1.77722e-05
  14  103.971
  15  5.66513
  16  9.9957e-07
  17  4.76816e-06
  18  0.00126926
  19  19.5746
  20  12.2922
  21  0.000133733
  22  5.67768
  23  49.127
  24  0.0322473
  25  0.256043
  26  0.198346
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  6.721e+00  1.017e+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:  1.126e+00  1.983e-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.934e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/146350/likelihoodResults_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.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) = 5189.42294197
delta logL = 0.813737626544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5189.24135417
delta logL = 0.995325423272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.817       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7667       1.0000          .0000       10.000    
     3 'Normalizat'    .92191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1013       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=   5189.241     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.817        10.881        .27972E-02   -.76996E-03
   2  Index         1.7667        .39673        .19057       -.57073E-04
   3  Normalizat    .92193        .21090        .66851E-01    .14207E-04
   4  Prefactor     1.1013        .16651        .37536E-01    .27390E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8165
  Index      = 1.76671
  Normalizat = 0.921931
  Prefactor  = 1.10132
 **********
 **   18 **HESSE 
 **********

 FCN=   5189.241     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.817        11.437        .11189E-03   -1.4992    
   2  Index         1.7667        .48675        .72295E-02   -.70319    
   3  Normalizat    .92193        .24406        .29572E-03   -.95694    
   4  Prefactor     1.1013        .19283        .21434E-03   -.89424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58317e-10
Minuit parameter uncertainties:
  1  11.4386
  2  0.488086
  3  0.244351
  4  0.192953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146350': 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) = 5189.24135417
delta logL = 0.995325426944

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.282e+01  1.144e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.767e+00  4.881e-01  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.101e+00  1.930e-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.219e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 1.77 +/- 0.49
Photon Flux (Free Index): 2.93e-08 +/- 2.83e-08
Energy Flux (Free Index): 3.88e-05 +/- 5.13e-05

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/146350/cmap_HighResolution_367372801_367632001_4FGL_J2203.3-5009_daily_bin494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='3.88e-05', dlogl='9.95e-01', photon_flux2='2.93e-08', job_status='DONE', time_completed='2021-09-28 03:08:53.764264', photon_index_error2='0.49', photon_index2='1.77', ts='0.62', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='5.13e-05', EG='0.89', time_epoch_completed='1632823733.76', return_code='0', job_id='146350', GAL2='1.10', EG2='0.92', return_code2='0', photon_flux_error2='2.83e-08', ts2='2.63', photon_index='2.74' WHERE bin_id='494' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:08:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 146350: <4FGL_J2203.3-5009_daily_bin494> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin494> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:55:15 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:55:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 02:55:18 2021
Terminated at Tue Sep 28 03:08:54 2021
Results reported at Tue Sep 28 03:08:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin494 330.832 -50.1512 367372801 367632001 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 :                                   679.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

