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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1537
RA = 330.832, Dec = -50.1512
tmin = 637718401, tmax = 637977601
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='151121', job_status='RUN', time_executed='2021-09-28 03:11:39.081373', time_epoch_executed='1632823899.08' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151121

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151121/ft1_4FGL_J2203.3-5009_daily_bin1537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151121/ft2_4FGL_J2203.3-5009_daily_bin1537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151121/ft1_4FGL_J2203.3-5009_daily_bin1537.fits outfile=/scratch/kocevski/151121/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1537.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=637718401.0 tmax=637977601.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.91
user 3.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151121/ft1_filtered_4FGL_J2203.3-5009_daily_bin1537.fits" evtable="EVENTS" scfile=/scratch/kocevski/151121/ft2_4FGL_J2203.3-5009_daily_bin1537.fits sctable="SC_DATA" outfile=/scratch/kocevski/151121/ltcube_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.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/151121/ft2_4FGL_J2203.3-5009_daily_bin1537.fits
.....................!
real 12.22
user 11.82
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151121/ft1_filtered_4FGL_J2203.3-5009_daily_bin1537.fits evtable="EVENTS" scfile=/scratch/kocevski/151121/ft2_4FGL_J2203.3-5009_daily_bin1537.fits sctable="SC_DATA" expcube=/scratch/kocevski/151121/ltcube_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.fits outfile=/scratch/kocevski/151121/expmap_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.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/151121/ltcube_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.fits
.....................!
real 193.18
user 187.87
sys 4.88

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/151121/ft1_filtered_4FGL_J2203.3-5009_daily_bin1537.fits scfile=/scratch/kocevski/151121/ft2_4FGL_J2203.3-5009_daily_bin1537.fits outfile=/scratch/kocevski/151121/cmap_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.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/151121/ft1_filtered_4FGL_J2203.3-5009_daily_bin1537.fits scfile=/scratch/kocevski/151121/ft2_4FGL_J2203.3-5009_daily_bin1537.fits outfile=/scratch/kocevski/151121/cmap_HighResolution_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/151121/ft1_filtered_4FGL_J2203.3-5009_daily_bin1537.fits evtable="EVENTS" scfile=/scratch/kocevski/151121/ft2_4FGL_J2203.3-5009_daily_bin1537.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151121/Model_4FGL_J2203.3-5009_daily_bin1537.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/151121/ft1_filtered_4FGL_J2203.3-5009_daily_bin1537.fits.....................!
real 45.72
user 44.30
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.700       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12748       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.1105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4635       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    233.54       1.0000         .10000E-03   10000.    
    15 'norm      '    .20177E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6775       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.942       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77615       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2638       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=   5614.902     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3832 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53618        2.9213        .44336E-06   -.22400E-03
   2  Prefactor     .10000E-03    15.593       -.61439E-07** at limit **
   3  norm          4.9750        2.6000       -.22774E-07    .24332E-04
   4  Prefactor     22.665        64.125       -.44574E-05   -.19018E-04
   5  Prefactor     23.659        12.938       -.85967E-08    .73116E-04
   6  Prefactor     1.0665        216.05        .10913E-04    .21286E-04
   7  Prefactor     .10000E-03    8.3995        .29698E-07** at limit **
   8  Prefactor     .10000E-03    3.2314        .12072E-07** at limit **
   9  norm          8.0703        6.9635        .32923E-06    .15551E-03
  10  Prefactor     3.4320        16.184       -.39141E-06    .11193E-04
  11  Prefactor     8.4339        48.194       -.50385E-05   -.19939E-04
  12  Prefactor     .10000E-03    10.108        .13884E-05** at limit **
  13  Prefactor     4.6468        4.1517        .98671E-07    .12279E-03
  14  Prefactor     233.67        162.56       -.33518E-05   -.30888E-05
  15  norm          .10069E-03    7.4434       -.15230E-05** at limit **
  16  Prefactor     .10000E-03    1.7273        .24810E-07** at limit **
  17  Prefactor     7.6784        94.159       -.38046E-05   -.39912E-05
  18  Prefactor     .10000E-03    11.975        .11195E-06** at limit **
  19  Prefactor     .10000E-03    29.975        .99320E-07** at limit **
  20  Prefactor     .10000E-03    4.5839       -.54023E-07** at limit **
  21  Prefactor     .10000E-03    41.902       -.22096E-06** at limit **
  22  Prefactor     .10000E-03    13.075       -.24463E-06** at limit **
  23  Prefactor     16.953        39.228       -.13054E-05   -.45784E-05
  24  Prefactor     .10000E-03    6.7599       -.63049E-07** at limit **
  25  Normalizat    .77618        .22185        .85091E-06    .69474E-04
  26  Prefactor     1.2634        .17220        .54648E-06    .13574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.536176
  Prefactor  = 0.0001
  norm       = 4.97501
  Prefactor  = 22.6651
  Prefactor  = 23.6595
  Prefactor  = 1.06654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.07031
  Prefactor  = 3.43196
  Prefactor  = 8.43387
  Prefactor  = 0.000100001
  Prefactor  = 4.64681
  Prefactor  = 233.665
  norm       = 0.000100685
  Prefactor  = 0.0001
  Prefactor  = 7.67839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9525
  Prefactor  = 0.0001
  Normalizat = 0.776184
  Prefactor  = 1.26339
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.902     FROM HESSE     STATUS=OK           470 CALLS     4302 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53618        10.355        .23663E-02   -1.5562    
   2  Prefactor     .10000E-03    15.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9750        2.5998        .84210E-04   -1.5262    
   4  Prefactor     22.665        63.896        .84222E-04   -1.4755    
   5  Prefactor     23.659        12.941        .82281E-04   -1.4735    
   6  Prefactor     1.0665        219.10        .19283E-02   -1.5501    
   7  Prefactor     .10000E-03    8.4030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2932        .13146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.0703        6.9540        .14078E-03   -1.5140    
  10  Prefactor     3.4320        16.051        .21730E-03   -1.5337    
  11  Prefactor     8.4339        48.030        .13759E-03   -1.5127    
  12  Prefactor     .10000E-03    10.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6468        4.1466        .13609E-03   -1.5277    
  14  Prefactor     233.67        162.64        .13243E-03   -1.2639    
  15  norm          .10069E-03    6.2945        .64876E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7412        .96107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6784        93.790        .14473E-03   -1.5154    
  18  Prefactor     .10000E-03    12.445        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5952        .15667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.953        39.237        .97305E-04   -1.4884    
  24  Prefactor     .10000E-03    6.7680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .77618        .25195        .32137E-03   -1.0096    
  26  Prefactor     1.2634        .19871        .20507E-03   -.84402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54601e-10
Minuit parameter uncertainties:
  1  4.71317
  2  1.42094e-05
  3  2.59987
  4  64.0902
  5  12.9424
  6  30.6862
  7  1.79475e-06
  8  5.09481e-07
  9  6.95466
  10  14.8503
  11  40.3023
  12  0.000150825
  13  4.14684
  14  162.952
  15  0.00415437
  16  1.15814e-06
  17  53.7762
  18  2.12557e-07
  19  1.66197e-05
  20  2.87804e-06
  21  1.60785e-05
  22  9.24894e-06
  23  39.2963
  24  5.23313e-06
  25  0.252332
  26  0.198829
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.508e-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.263e+00  1.988e-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:  7.762e-01  2.523e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/151121/likelihoodResults_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.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) = 5614.90226407
delta logL = -0.000462767628051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5614.90180177
delta logL = -4.70541635877e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7415       1.0000          .0000       10.000    
     3 'Normalizat'    .77600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2635       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=   5614.902     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    1360.4        .18142E-02** at limit **
   2  Index         2.7629        5.8473        .50000       -.13998E-05
   3  Normalizat    .77618        .76288E-01    .32138E-03    .26884E-05
   4  Prefactor     1.2634        .60965E-01    .20507E-03    .51557E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100061
  Index      = 2.76294
  Normalizat = 0.776184
  Prefactor  = 1.26339
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.902     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    12.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7629        7.6612        .50000       -.46387    
   3  Normalizat    .77618        .24026        .12855E-04   -1.0096    
   4  Prefactor     1.2634        .19213        .82029E-05   -.84402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32785e-09
Minuit parameter uncertainties:
  1  0.00175636
  2  275.914
  3  0.240593
  4  0.192238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151121': 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) = 5614.9018013
delta logL = 6.06723915553e-09

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.001e-04  1.756e-03  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.763e+00  2.759e+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.263e+00  1.922e-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:  7.762e-01  2.406e-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/151121/cmap_HighResolution_637718401_637977601_4FGL_J2203.3-5009_daily_bin1537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-28 03:24:18.298005', job_id='151121', GAL2='1.26', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632824658.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='6.07e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1537' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:24:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 151121: <4FGL_J2203.3-5009_daily_bin1537> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1537> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:58 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:59 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:10:59 2021
Terminated at Tue Sep 28 03:24:19 2021
Results reported at Tue Sep 28 03:24:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1537 330.832 -50.1512 637718401 637977601 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 :                                   745.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

