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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1167
RA = 330.832, Dec = -50.1512
tmin = 541814401, tmax = 542073601
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='149522', job_status='RUN', time_executed='2021-09-28 03:06:50.445783', time_epoch_executed='1632823610.45' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149522

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149522/ft1_4FGL_J2203.3-5009_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149522/ft2_4FGL_J2203.3-5009_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149522/ft1_4FGL_J2203.3-5009_daily_bin1167.fits outfile=/scratch/kocevski/149522/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1167.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=541814401.0 tmax=542073601.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.65
user 3.46
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149522/ft1_filtered_4FGL_J2203.3-5009_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/149522/ft2_4FGL_J2203.3-5009_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/149522/ltcube_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.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/149522/ft2_4FGL_J2203.3-5009_daily_bin1167.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149522/ft1_filtered_4FGL_J2203.3-5009_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/149522/ft2_4FGL_J2203.3-5009_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/149522/ltcube_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.fits outfile=/scratch/kocevski/149522/expmap_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.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/149522/ltcube_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.fits
.....................!
real 191.04
user 185.19
sys 5.54

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/149522/ft1_filtered_4FGL_J2203.3-5009_daily_bin1167.fits scfile=/scratch/kocevski/149522/ft2_4FGL_J2203.3-5009_daily_bin1167.fits outfile=/scratch/kocevski/149522/cmap_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149522/ft1_filtered_4FGL_J2203.3-5009_daily_bin1167.fits scfile=/scratch/kocevski/149522/ft2_4FGL_J2203.3-5009_daily_bin1167.fits outfile=/scratch/kocevski/149522/cmap_HighResolution_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149522/ft1_filtered_4FGL_J2203.3-5009_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/149522/ft2_4FGL_J2203.3-5009_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149522/Model_4FGL_J2203.3-5009_daily_bin1167.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/149522/ft1_filtered_4FGL_J2203.3-5009_daily_bin1167.fits.....................!
real 45.41
user 44.00
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4016       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11758E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54749       1.0000         .10000E-03   10000.    
     9 'norm      '    13.250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    68.777       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9539       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43571E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8156       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11788E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15424E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.377       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.157       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91094       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2377       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=   5747.102     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3113 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4027        3.8889       -.77795E-06   -.12353E-02
   2  Prefactor     .10000E-03    121.84        .62653E-04** at limit **
   3  norm          3.3661        2.6617        .15799E-06   -.53693E-03
   4  Prefactor     .10000E-03    20.148       -.30108E-05** at limit **
   5  Prefactor     2.9548        11.449       -.93204E-06   -.94544E-04
   6  Prefactor     .10000E-03    36.326       -.32974E-04** at limit **
   7  Prefactor     .10000E-03    14.506        .71717E-06** at limit **
   8  Prefactor     .51771        2.8749       -.86795E-06   -.23755E-03
   9  norm          13.249        6.6850        .11274E-05    .40857E-03
  10  Prefactor     .10000E-03    5.1655        .16631E-07** at limit **
  11  Prefactor     .10000E-03    32.490        .28987E-04** at limit **
  12  Prefactor     .10000E-03    3.3292       -.10344E-05** at limit **
  13  Prefactor     .10000E-03    1.0686       -.13338E-06** at limit **
  14  Prefactor     68.882        88.726        .10291E-03   -.75717E-05
  15  norm          .10000E-03    3.0101       -.93164E-07** at limit **
  16  Prefactor     8.9493        4.5346        .23234E-06    .58318E-03
  17  Prefactor     .10010E-03    238.93       -.13621E-03** at limit **
  18  Prefactor     4.8162        4.5564       -.38708E-06   -.25524E-04
  19  Prefactor     42.525        30.692       -.57253E-05   -.22585E-04
  20  Prefactor     .10000E-03    8.4720        .21964E-06** at limit **
  21  Prefactor     .10000E-03    77.012       -.25924E-05** at limit **
  22  Prefactor     .10000E-03    2.9994        .47812E-07** at limit **
  23  Prefactor     19.393        34.507        .77200E-05   -.30347E-05
  24  Prefactor     14.160        19.773       -.12765E-06   -.37496E-03
  25  Normalizat    .91074        .22620       -.52239E-05    .14717E-03
  26  Prefactor     1.2378        .17035       -.19896E-06   -.40811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40269
  Prefactor  = 0.000100002
  norm       = 3.36608
  Prefactor  = 0.0001
  Prefactor  = 2.9548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.517715
  norm       = 13.2492
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 68.882
  norm       = 0.0001
  Prefactor  = 8.94935
  Prefactor  = 0.000100097
  Prefactor  = 4.81616
  Prefactor  = 42.5247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3927
  Prefactor  = 14.1597
  Normalizat = 0.910743
  Prefactor  = 1.2378
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.102     FROM HESSE     STATUS=OK           454 CALLS     3567 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4027        3.8627        .23897E-03   -1.5471    
   2  Prefactor     .10000E-03    125.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3661        2.6547        .10541E-03   -1.5341    
   4  Prefactor     .10000E-03    20.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9548        11.324        .23639E-03   -1.5364    
   6  Prefactor     .10000E-03    36.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .51771        10.948        .23802E-02   -1.5564    
   9  norm          13.249        6.6805        .11004E-03   -1.4980    
  10  Prefactor     .10000E-03    5.1865        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3402        .13509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0723        .76523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     68.882        88.731        .24200E-03   -1.4046    
  15  norm          .10000E-03    3.0198        .12845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9493        4.5453        .11062E-03   -1.5110    
  17  Prefactor     .10010E-03    245.67        .38772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8162        4.5560        .15191E-03   -1.5269    
  19  Prefactor     42.525        30.809        .61449E-04   -1.4403    
  20  Prefactor     .10000E-03    8.5138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    77.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0025        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.393        34.499        .90989E-04   -1.4827    
  24  Prefactor     14.160        19.785        .53226E-03   -1.4955    
  25  Normalizat    .91074        .26218        .30910E-03   -.96084    
  26  Prefactor     1.2378        .19826        .21107E-03   -.85176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04066e-09
Minuit parameter uncertainties:
  1  3.86334
  2  0.00108559
  3  2.65477
  4  1.35424e-05
  5  11.3322
  6  6.43813e-05
  7  1.96914e-05
  8  4.76202
  9  6.68083
  10  6.22782e-06
  11  0.000400588
  12  0.00019197
  13  1.3576e-05
  14  88.902
  15  1.64943e-05
  16  4.5455
  17  0.00980432
  18  4.55636
  19  30.8209
  20  9.55237e-05
  21  0.000165117
  22  6.95331e-06
  23  34.5345
  24  19.7938
  25  0.262544
  26  0.19838
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.920e-04  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.238e+00  1.984e-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.107e-01  2.625e-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: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149522/likelihoodResults_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.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) = 5747.10339356
delta logL = -0.0014185704822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5747.10197486
delta logL = 1.30736225401e-07

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 'Index     '    2.7242       1.0000          .0000       10.000    
     3 'Normalizat'    .91075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2378       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=   5747.102     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.229        .13634E-01** at limit **
   2  Index         2.1840        5.7744        .50000        .14809E-06
   3  Normalizat    .91074        .15390E-01    .30911E-03   -.18610E-04
   4  Prefactor     1.2378        .12116E-01    .21107E-03   -.71423E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18396
  Normalizat = 0.910739
  Prefactor  = 1.2378
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.102     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    294.92        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1840        6.8203        .50000       -.59826    
   3  Normalizat    .91074        .49809E-01    .12364E-04   -.96084    
   4  Prefactor     1.2378        .39212E-01    .42213E-04   -.85176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.59557e-09
Minuit parameter uncertainties:
  1  0.000135864
  2  957.343
  3  0.0498113
  4  0.0392125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149522': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5747.10197227
delta logL = 2.71567841992e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.359e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.184e+00  9.573e+02  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.238e+00  3.921e-02  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.107e-01  4.981e-02  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/149522/cmap_HighResolution_541814401_542073601_4FGL_J2203.3-5009_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-28 03:18:15.660165', job_id='149522', GAL2='1.24', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632824295.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1167' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:18:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 149522: <4FGL_J2203.3-5009_daily_bin1167> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:47 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:50 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:50 2021
Terminated at Tue Sep 28 03:18:16 2021
Results reported at Tue Sep 28 03:18:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1167 330.832 -50.1512 541814401 542073601 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 :                                   683.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            749 sec.

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

