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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1060
RA = 330.832, Dec = -50.1512
tmin = 514080001, tmax = 514339201
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='149354', job_status='RUN', time_executed='2021-09-28 03:05:53.030686', time_epoch_executed='1632823553.03' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149354/ft1_4FGL_J2203.3-5009_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149354/ft2_4FGL_J2203.3-5009_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149354/ft1_4FGL_J2203.3-5009_daily_bin1060.fits outfile=/scratch/kocevski/149354/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1060.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=514080001.0 tmax=514339201.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.63
user 3.41
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149354/ft1_filtered_4FGL_J2203.3-5009_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/149354/ft2_4FGL_J2203.3-5009_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/149354/ltcube_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.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/149354/ft2_4FGL_J2203.3-5009_daily_bin1060.fits
.....................!
real 12.34
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149354/ft1_filtered_4FGL_J2203.3-5009_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/149354/ft2_4FGL_J2203.3-5009_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/149354/ltcube_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.fits outfile=/scratch/kocevski/149354/expmap_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.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/149354/ltcube_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.fits
.....................!
real 190.45
user 185.36
sys 4.18

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/149354/ft1_filtered_4FGL_J2203.3-5009_daily_bin1060.fits scfile=/scratch/kocevski/149354/ft2_4FGL_J2203.3-5009_daily_bin1060.fits outfile=/scratch/kocevski/149354/cmap_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149354/ft1_filtered_4FGL_J2203.3-5009_daily_bin1060.fits scfile=/scratch/kocevski/149354/ft2_4FGL_J2203.3-5009_daily_bin1060.fits outfile=/scratch/kocevski/149354/cmap_HighResolution_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149354/ft1_filtered_4FGL_J2203.3-5009_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/149354/ft2_4FGL_J2203.3-5009_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149354/Model_4FGL_J2203.3-5009_daily_bin1060.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/149354/ft1_filtered_4FGL_J2203.3-5009_daily_bin1060.fits.....................!
real 46.96
user 45.73
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.498       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.454       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.542       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5065       1.0000         .10000E-03   10000.    
     9 'norm      '    4.3931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.087       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    194.16       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6341       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74842       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21669E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3777       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82421       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=   5884.976     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3180 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4871       -.15414E-07** at limit **
   2  Prefactor     39.501        25.535       -.18685E-06   -.55432E-05
   3  norm          2.2375        1.7503        .24417E-07    .54065E-04
   4  Prefactor     .10000E-03    28.772       -.10136E-05** at limit **
   5  Prefactor     18.453        13.206       -.12112E-05   -.10232E-03
   6  Prefactor     39.540        43.440        .93079E-06    .14574E-04
   7  Prefactor     19.550        36.022        .20130E-05    .76901E-04
   8  Prefactor     8.5064        5.8197       -.10242E-06   -.38972E-04
   9  norm          4.3928        5.0448       -.83266E-07    .19561E-04
  10  Prefactor     4.7519        10.829       -.39764E-06   -.74911E-05
  11  Prefactor     30.072        41.480        .11093E-05    .29402E-04
  12  Prefactor     .10000E-03    4.9141        .82471E-06** at limit **
  13  Prefactor     10.494        5.1443       -.72517E-07   -.26086E-04
  14  Prefactor     194.12        131.43        .13788E-05    .27457E-04
  15  norm          1.6343        4.8136       -.13893E-05   -.11879E-03
  16  Prefactor     .73574        4.4278       -.16514E-05   -.81539E-04
  17  Prefactor     .10000E-03    24.389        .60079E-06** at limit **
  18  Prefactor     .10000E-03    6.2187        .12690E-05** at limit **
  19  Prefactor     5.5495        30.273       -.14845E-05    .21467E-04
  20  Prefactor     .10000E-03    16.138       -.49173E-05** at limit **
  21  Prefactor     .10000E-03    72.032        .30437E-06** at limit **
  22  Prefactor     .10000E-03    9.7896        .11852E-07** at limit **
  23  Prefactor     .10000E-03    15.904       -.83712E-06** at limit **
  24  Prefactor     .10000E-03    9.0322       -.34946E-06** at limit **
  25  Normalizat    1.3781        .24267       -.16403E-06    .18059E-03
  26  Prefactor     .82393        .17159        .69781E-06   -.88521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.5014
  norm       = 2.23749
  Prefactor  = 0.0001
  Prefactor  = 18.4526
  Prefactor  = 39.5395
  Prefactor  = 19.5497
  Prefactor  = 8.50644
  norm       = 4.39283
  Prefactor  = 4.75186
  Prefactor  = 30.072
  Prefactor  = 0.0001
  Prefactor  = 10.494
  Prefactor  = 194.124
  norm       = 1.63427
  Prefactor  = 0.735741
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.54948
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37807
  Prefactor  = 0.823934
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.976     FROM HESSE     STATUS=OK           464 CALLS     3644 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4967        .91344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.501        25.540        .63778E-04   -1.4450    
   3  norm          2.2375        1.7515        .87029E-04   -1.5409    
   4  Prefactor     .10000E-03    28.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.453        13.358        .46618E-03   -1.4849    
   6  Prefactor     39.540        43.351        .63742E-04   -1.4450    
   7  Prefactor     19.550        36.434        .90505E-04   -1.4823    
   8  Prefactor     8.5064        5.8165        .13744E-03   -1.5125    
   9  norm          4.3928        5.0268        .16824E-03   -1.5289    
  10  Prefactor     4.7519        10.819        .18458E-03   -1.5272    
  11  Prefactor     30.072        41.500        .73044E-04   -1.4611    
  12  Prefactor     .10000E-03    4.9146        .16577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.494        5.1508        .11589E-03   -1.5060    
  14  Prefactor     194.12        131.33        .14495E-03   -1.2912    
  15  norm          1.6343        4.8124        .28410E-03   -1.5452    
  16  Prefactor     .73574        10.420        .25025E-02   -1.5536    
  17  Prefactor     .10000E-03    24.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.573        .33869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5495        28.443        .17025E-03   -1.5237    
  20  Prefactor     .10000E-03    19.717        .32876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    72.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.0524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3781        .27210        .26677E-03   -.81265    
  26  Prefactor     .82393        .19108        .25114E-03   -.98852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36029e-08
Minuit parameter uncertainties:
  1  1.8471e-06
  2  25.547
  3  1.75152
  4  0.000180074
  5  13.36
  6  43.3857
  7  36.4755
  8  5.81691
  9  5.02731
  10  10.8235
  11  41.5402
  12  3.96742e-06
  13  5.151
  14  131.525
  15  4.81354
  16  5.5384
  17  7.49957e-05
  18  0.00039229
  19  25.1459
  20  0.000549775
  21  7.34061e-05
  22  1.97475e-05
  23  6.86487e-05
  24  1.4476e-05
  25  0.272388
  26  0.191235
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.967e-06  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:  8.239e-01  1.912e-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.378e+00  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149354/likelihoodResults_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.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): 102
logL (Free Index) = 5884.97712098
delta logL = -0.000967080337432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5884.97615386
delta logL = 3.16049408866e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7502       1.0000          .0000       10.000    
     3 'Normalizat'    1.3781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82395       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=   5884.976     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4027        .16660E-02** at limit **
   2  Index         2.7614        6.3796        .50000       -.21085E-04
   3  Normalizat    1.3781        .24242        .26676E-03   -.97124E-04
   4  Prefactor     .82394        .18278        .25114E-03   -.15346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.76141
  Normalizat = 1.37807
  Prefactor  = 0.823938
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.976     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0018        .33320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7614        6.3677        .50000       -.46421    
   3  Normalizat    1.3781        .24263        .53353E-04   -.81265    
   4  Prefactor     .82394        .18294        .10045E-04   -.98852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47943e-10
Minuit parameter uncertainties:
  1  0.000210542
  2  4.49173
  3  0.242829
  4  0.183076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149354': 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) = 5884.97615379
delta logL = 1.03163984022e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.105e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.761e+00  4.492e+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:  8.239e-01  1.831e-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.378e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/149354/cmap_HighResolution_514080001_514339201_4FGL_J2203.3-5009_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.67e-03', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-09-28 03:17:40.383671', job_id='149354', GAL2='0.82', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632824260.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1060' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:17:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 149354: <4FGL_J2203.3-5009_daily_bin1060> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1060> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:31 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:33 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:05:33 2021
Terminated at Tue Sep 28 03:17:41 2021
Results reported at Tue Sep 28 03:17:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1060 330.832 -50.1512 514080001 514339201 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 :                                   705.00 sec.
    Max Memory :                                 1113 MB
    Average Memory :                             348.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            730 sec.

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

