/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 162 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin240
RA = 330.832, Dec = -50.1512
tmin = 301536001, tmax = 301795201
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='143878', job_status='RUN', time_executed='2021-09-28 02:48:35.058449', time_epoch_executed='1632822515.06' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143878/ft1_4FGL_J2203.3-5009_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143878/ft2_4FGL_J2203.3-5009_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143878/ft1_4FGL_J2203.3-5009_daily_bin240.fits outfile=/scratch/kocevski/143878/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin240.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=301536001.0 tmax=301795201.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 4.60
user 4.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/143878/ft2_4FGL_J2203.3-5009_daily_bin240.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/143878/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/143878/ft1_filtered_4FGL_J2203.3-5009_daily_bin240.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/143878/ft1_filtered_4FGL_J2203.3-5009_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/143878/ft2_4FGL_J2203.3-5009_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/143878/ltcube_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.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/143878/ft2_4FGL_J2203.3-5009_daily_bin240.fits
.....................!
real 11.75
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143878/ft1_filtered_4FGL_J2203.3-5009_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/143878/ft2_4FGL_J2203.3-5009_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/143878/ltcube_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.fits outfile=/scratch/kocevski/143878/expmap_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.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/143878/ltcube_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.fits
.....................!
real 191.12
user 185.33
sys 5.42

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/143878/ft1_filtered_4FGL_J2203.3-5009_daily_bin240.fits scfile=/scratch/kocevski/143878/ft2_4FGL_J2203.3-5009_daily_bin240.fits outfile=/scratch/kocevski/143878/cmap_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143878/ft1_filtered_4FGL_J2203.3-5009_daily_bin240.fits scfile=/scratch/kocevski/143878/ft2_4FGL_J2203.3-5009_daily_bin240.fits outfile=/scratch/kocevski/143878/cmap_HighResolution_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.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.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/143878/ft1_filtered_4FGL_J2203.3-5009_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/143878/ft2_4FGL_J2203.3-5009_daily_bin240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/143878/Model_4FGL_J2203.3-5009_daily_bin240.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/143878/ft1_filtered_4FGL_J2203.3-5009_daily_bin240.fits.....................!
real 50.58
user 49.20
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.469       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.387       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4029       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0107       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5661       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.213       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7638       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13836E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0128       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7054       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.515       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87863       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0784       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=   6732.311     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3083 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1034        .16011E-07** at limit **
   2  Prefactor     .10000E-03    4.4852        .14927E-06** at limit **
   3  norm          .10000E-03    .89545       -.93971E-07** at limit **
   4  Prefactor     .10000E-03    15.041       -.23994E-05** at limit **
   5  Prefactor     19.470        9.5270       -.24658E-06   -.35847E-04
   6  Prefactor     28.386        27.801       -.91681E-06   -.11402E-04
   7  Prefactor     18.036        17.019       -.28467E-06   -.46167E-05
   8  Prefactor     5.4029        3.9344        .40321E-06   -.54808E-04
   9  norm          7.0748        4.4265       -.32777E-06   -.43587E-04
  10  Prefactor     .10000E-03    2.0688       -.24233E-06** at limit **
  11  Prefactor     .10000E-03    28.869        .23204E-05** at limit **
  12  Prefactor     5.0116        8.8414        .55590E-05   -.46558E-03
  13  Prefactor     5.5665        4.6802        .88297E-06   -.53960E-04
  14  Prefactor     20.183        73.379       -.55675E-04   -.31079E-04
  15  norm          2.7640        5.2121       -.66514E-07   -.78853E-03
  16  Prefactor     .10002E-03    2.1127        .27795E-05** at limit **
  17  Prefactor     5.9080        61.259       -.37336E-04   -.14067E-03
  18  Prefactor     1.1622        1.5594       -.57340E-06   -.32100E-02
  19  Prefactor     .10000E-03    8.0062       -.71071E-05** at limit **
  20  Prefactor     6.0121        8.4379       -.46902E-07   -.22595E-03
  21  Prefactor     .10000E-03    56.918       -.15193E-05** at limit **
  22  Prefactor     5.7052        6.5731        .22669E-06   -.22132E-03
  23  Prefactor     20.516        22.078        .33748E-06   -.15875E-04
  24  Prefactor     .10000E-03    10.718        .27287E-05** at limit **
  25  Normalizat    .87852        .18029        .32014E-06   -.58608E-03
  26  Prefactor     1.0784        .13612        .36158E-06   -.50660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4698
  Prefactor  = 28.3864
  Prefactor  = 18.0358
  Prefactor  = 5.40288
  norm       = 7.07482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.01164
  Prefactor  = 5.56648
  Prefactor  = 20.1833
  norm       = 2.76397
  Prefactor  = 0.000100023
  Prefactor  = 5.90796
  Prefactor  = 1.16221
  Prefactor  = 0.0001
  Prefactor  = 6.01209
  Prefactor  = 0.0001
  Prefactor  = 5.70523
  Prefactor  = 20.516
  Prefactor  = 0.0001
  Normalizat = 0.878519
  Prefactor  = 1.0784
 **********
 **   18 **HESSE 
 **********

 FCN=   6732.311     FROM HESSE     STATUS=OK           460 CALLS     3543 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1157        .84158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4898        .16971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1541        .15059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.470        9.5238        .90772E-04   -1.4825    
   6  Prefactor     28.386        27.781        .75194E-04   -1.4642    
   7  Prefactor     18.036        17.021        .94311E-04   -1.4858    
   8  Prefactor     5.4029        3.9300        .13256E-03   -1.5243    
   9  norm          7.0748        4.4218        .12799E-03   -1.5176    
  10  Prefactor     .10000E-03    2.0702        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0116        8.8818        .89823E-03   -1.5260    
  13  Prefactor     5.5665        4.6762        .15090E-03   -1.5236    
  14  Prefactor     20.183        73.226        .89088E-04   -1.4809    
  15  norm          2.7640        5.2705        .12241E-02   -1.5375    
  16  Prefactor     .10002E-03    7.7460        .22049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9080        61.200        .16499E-03   -1.5222    
  18  Prefactor     1.1622        5.2649        .17555E-02   -1.5492    
  19  Prefactor     .10000E-03    7.9930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0121        8.4332        .81873E-03   -1.5218    
  21  Prefactor     .10000E-03    56.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7052        6.5652        .16816E-03   -1.5230    
  23  Prefactor     20.516        22.099        .88430E-04   -1.4802    
  24  Prefactor     .10000E-03    10.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87852        .20857        .28439E-03   -.97219    
  26  Prefactor     1.0784        .15647        .20458E-03   -.90160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36149e-08
Minuit parameter uncertainties:
  1  1.03299e-06
  2  1.54126e-06
  3  7.09253e-06
  4  9.60256e-06
  5  9.52459
  6  27.7932
  7  17.0255
  8  3.93022
  9  4.42196
  10  3.87755e-07
  11  6.2173e-05
  12  8.88415
  13  4.67651
  14  73.5547
  15  5.27143
  16  0.000838372
  17  38.0797
  18  4.94779
  19  5.23972e-07
  20  8.43488
  21  5.74801e-08
  22  6.56601
  23  22.1082
  24  3.17549e-06
  25  0.208765
  26  0.156534
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.012e+00  8.884e+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:  1.078e+00  1.565e-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.785e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143878/likelihoodResults_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.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) = 6732.30015769
delta logL = 0.0113007185873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6732.29643283
delta logL = 0.0150255771096

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6732.296     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      254 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7866        9.7045        .16695E-03    .72053E-03
   2  Index         2.5273        1.1555        .14454E-01    .16099E-03
   3  Normalizat    .88195        .19727        .28389E-03   -.21144E-03
   4  Prefactor     1.0761        .15517        .20476E-03   -.43364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.78661
  Index      = 2.52728
  Normalizat = 0.881951
  Prefactor  = 1.07606
 **********
 **   18 **HESSE 
 **********

 FCN=   6732.296     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7866        9.4401        .66780E-05   -1.5227    
   2  Index         2.5273        1.1246        .57815E-03   -.51731    
   3  Normalizat    .88195        .19742        .11356E-04   -.97097    
   4  Prefactor     1.0761        .15522        .40953E-04   -.90235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03298e-09
Minuit parameter uncertainties:
  1  9.44251
  2  1.1376
  3  0.197578
  4  0.155288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143878': 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) = 6732.29643279
delta logL = 0.0150256163934

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.787e+00  9.443e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.527e+00  1.138e+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.076e+00  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:  8.820e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 330.832 -50.151

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/143878/cmap_HighResolution_301536001_301795201_4FGL_J2203.3-5009_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-28 03:01:17.411744', job_id='143878', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632823277.41', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.50e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='240' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:01:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 143878: <4FGL_J2203.3-5009_daily_bin240> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin240> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:45:43 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:45:45 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:45:45 2021
Terminated at Tue Sep 28 03:01:18 2021
Results reported at Tue Sep 28 03:01:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin240 330.832 -50.1512 301536001 301795201 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 :                                   759.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

