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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin225
RA = 330.832, Dec = -50.1512
tmin = 297648001, tmax = 297907201
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='143852', job_status='RUN', time_executed='2021-09-28 02:46:03.845114', time_epoch_executed='1632822363.85' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143852/ft1_4FGL_J2203.3-5009_daily_bin225.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143852/ft2_4FGL_J2203.3-5009_daily_bin225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143852/ft1_4FGL_J2203.3-5009_daily_bin225.fits outfile=/scratch/kocevski/143852/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin225.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=297648001.0 tmax=297907201.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.73
user 3.50
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/143852/ft2_4FGL_J2203.3-5009_daily_bin225.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/143852/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin225.fits evtable="EVENTS" outfile="/scratch/kocevski/143852/ft1_filtered_4FGL_J2203.3-5009_daily_bin225.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/143852/ft1_filtered_4FGL_J2203.3-5009_daily_bin225.fits" evtable="EVENTS" scfile=/scratch/kocevski/143852/ft2_4FGL_J2203.3-5009_daily_bin225.fits sctable="SC_DATA" outfile=/scratch/kocevski/143852/ltcube_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.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/143852/ft2_4FGL_J2203.3-5009_daily_bin225.fits
.....................!
real 11.99
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143852/ft1_filtered_4FGL_J2203.3-5009_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/143852/ft2_4FGL_J2203.3-5009_daily_bin225.fits sctable="SC_DATA" expcube=/scratch/kocevski/143852/ltcube_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.fits outfile=/scratch/kocevski/143852/expmap_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.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/143852/ltcube_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.fits
.....................!
real 189.71
user 185.10
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/143852/ft1_filtered_4FGL_J2203.3-5009_daily_bin225.fits scfile=/scratch/kocevski/143852/ft2_4FGL_J2203.3-5009_daily_bin225.fits outfile=/scratch/kocevski/143852/cmap_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.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/143852/ft1_filtered_4FGL_J2203.3-5009_daily_bin225.fits scfile=/scratch/kocevski/143852/ft2_4FGL_J2203.3-5009_daily_bin225.fits outfile=/scratch/kocevski/143852/cmap_HighResolution_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.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/143852/ft1_filtered_4FGL_J2203.3-5009_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/143852/ft2_4FGL_J2203.3-5009_daily_bin225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/143852/Model_4FGL_J2203.3-5009_daily_bin225.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/143852/ft1_filtered_4FGL_J2203.3-5009_daily_bin225.fits.....................!
real 46.18
user 44.88
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    31.088       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9760       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5607       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    129.33       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9660       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45822E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    127.51       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0079       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=   5927.473     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3044 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0717       -.35587E-06** at limit **
   2  Prefactor     31.101        21.128       -.88524E-08    .64101E-04
   3  norm          2.9766        1.9860       -.53601E-07    .41746E-04
   4  Prefactor     .10000E-03    14.815       -.24407E-06** at limit **
   5  Prefactor     13.081        8.4981       -.26972E-06   -.10048E-03
   6  Prefactor     .10000E-03    31.594       -.13069E-05** at limit **
   7  Prefactor     .10000E-03    11.920       -.60598E-06** at limit **
   8  Prefactor     2.5627        4.4809       -.36965E-06   -.10656E-03
   9  norm          4.5703        3.9597       -.95903E-07   -.20737E-04
  10  Prefactor     8.2313        8.1702       -.70750E-07    .35911E-05
  11  Prefactor     58.523        46.697        .86668E-07   -.38985E-04
  12  Prefactor     .10000E-03    4.1207       -.11606E-05** at limit **
  13  Prefactor     .10000E-03    3.3922       -.12850E-05** at limit **
  14  Prefactor     129.37        109.35       -.18271E-06   -.29880E-04
  15  norm          .10000E-03    3.6723       -.27640E-06** at limit **
  16  Prefactor     2.9671        3.2630       -.31152E-07   -.66222E-04
  17  Prefactor     .10000E-03    27.453       -.39723E-06** at limit **
  18  Prefactor     13.962        8.1934        .12079E-06   -.20041E-03
  19  Prefactor     .10000E-03    18.134       -.57890E-06** at limit **
  20  Prefactor     .10000E-03    46.927       -.59580E-05** at limit **
  21  Prefactor     127.24        108.84       -.26942E-06   -.45652E-05
  22  Prefactor     .10000E-03    3.4353       -.19440E-06** at limit **
  23  Prefactor     .10000E-03    11.289       -.58697E-07** at limit **
  24  Prefactor     10.137        16.841        .29781E-07   -.28904E-04
  25  Normalizat    1.0078        .23600       -.39593E-05    .81135E-04
  26  Prefactor     1.0079        .17486        .38337E-05   -.31631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.1009
  norm       = 2.9766
  Prefactor  = 0.0001
  Prefactor  = 13.0806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56265
  norm       = 4.57025
  Prefactor  = 8.23131
  Prefactor  = 58.523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 129.368
  norm       = 0.0001
  Prefactor  = 2.96707
  Prefactor  = 0.0001
  Prefactor  = 13.9616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1365
  Normalizat = 1.00775
  Prefactor  = 1.00791
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.473     FROM HESSE     STATUS=OK           460 CALLS     3504 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1961        .21423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.101        21.108        .71862E-04   -1.4592    
   3  norm          2.9766        1.9816        .85584E-04   -1.5363    
   4  Prefactor     .10000E-03    14.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.081        8.5036        .55382E-03   -1.4984    
   6  Prefactor     .10000E-03    31.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5627        4.4805        .20424E-03   -1.5388    
   9  norm          4.5703        3.9587        .13808E-03   -1.5280    
  10  Prefactor     8.2313        8.1678        .13976E-03   -1.5134    
  11  Prefactor     58.523        46.717        .52455E-04   -1.4176    
  12  Prefactor     .10000E-03    4.1920        .15359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5370        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     129.37        109.35        .17702E-03   -1.3428    
  15  norm          .10000E-03    3.6836        .14417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9671        3.2637        .14049E-03   -1.5363    
  17  Prefactor     .10000E-03    27.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.962        8.2093        .10718E-03   -1.4960    
  19  Prefactor     .10000E-03    18.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.377        .38554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     127.24        108.95        .17826E-03   -1.3447    
  22  Prefactor     .10000E-03    3.4418        .13940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.137        16.844        .12586E-03   -1.5071    
  25  Normalizat    1.0078        .24184        .28173E-03   -.92771    
  26  Prefactor     1.0079        .17887        .21545E-03   -.92466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59933e-10
Minuit parameter uncertainties:
  1  1.69752e-05
  2  21.1128
  3  1.98169
  4  3.67286e-05
  5  8.50441
  6  0.000185689
  7  5.66777e-05
  8  4.48109
  9  3.95896
  10  8.16892
  11  46.7462
  12  5.26221e-05
  13  4.47088e-05
  14  109.521
  15  1.19213e-05
  16  3.26389
  17  4.52779e-05
  18  8.20993
  19  2.85682e-05
  20  0.000116108
  21  109.124
  22  6.91946e-06
  23  1.44115e-05
  24  16.8523
  25  0.242102
  26  0.178973
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  5.262e-05  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.008e+00  1.790e-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.008e+00  2.421e-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: 8.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143852/likelihoodResults_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.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) = 5927.47377295
delta logL = -0.00113581660662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5927.47263714
delta logL = -7.03676050762e-09

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.7324       1.0000          .0000       10.000    
     3 'Normalizat'    1.0077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0079       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=   5927.473     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    187.50        .15388E-02** at limit **
   2  Index         2.6635        8.4086        .50000        .10652E-04
   3  Normalizat    1.0077        .35008E-01    .28173E-03   -.64687E-04
   4  Prefactor     1.0079        .26914E-01    .21545E-03   -.43004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100615
  Index      = 2.66353
  Normalizat = 1.00775
  Prefactor  = 1.00791
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.473     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10061E-03    650.30        .30775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6635        7.2475        .50000       -.48623    
   3  Normalizat    1.0077        .81886E-01    .11269E-04   -.92771    
   4  Prefactor     1.0079        .62951E-01    .86182E-05   -.92466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.51471e-08
Minuit parameter uncertainties:
  1  0.0404412
  2  1967.89
  3  0.0818962
  4  0.0629557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143852': 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) = 5927.47263699
delta logL = 1.46927959577e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.006e-04  4.044e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.664e+00  1.968e+03  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.008e+00  6.296e-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:  1.008e+00  8.190e-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/143852/cmap_HighResolution_297648001_297907201_4FGL_J2203.3-5009_daily_bin225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-09-28 02:57:48.707838', job_id='143852', GAL2='1.01', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632823068.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='225' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 02:57:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 143852: <4FGL_J2203.3-5009_daily_bin225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin225 330.832 -50.1512 297648001 297907201 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 :                                   697.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             332.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            728 sec.

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

