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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1155
RA = 330.832, Dec = -50.1512
tmin = 538704001, tmax = 538963201
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='149503', job_status='RUN', time_executed='2021-09-28 03:07:04.621494', time_epoch_executed='1632823624.62' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149503/ft1_4FGL_J2203.3-5009_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149503/ft1_4FGL_J2203.3-5009_daily_bin1155.fits outfile=/scratch/kocevski/149503/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1155.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=538704001.0 tmax=538963201.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.52
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.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/149503/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1155.fits evtable="EVENTS" outfile="/scratch/kocevski/149503/ft1_filtered_4FGL_J2203.3-5009_daily_bin1155.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149503/ft1_filtered_4FGL_J2203.3-5009_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/149503/ltcube_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.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/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.fits
.....................!
real 15.18
user 14.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149503/ft1_filtered_4FGL_J2203.3-5009_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/149503/ltcube_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.fits outfile=/scratch/kocevski/149503/expmap_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.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/149503/ltcube_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.fits
.....................!
real 189.95
user 185.10
sys 4.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/149503/ft1_filtered_4FGL_J2203.3-5009_daily_bin1155.fits scfile=/scratch/kocevski/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.fits outfile=/scratch/kocevski/149503/cmap_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149503/ft1_filtered_4FGL_J2203.3-5009_daily_bin1155.fits scfile=/scratch/kocevski/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.fits outfile=/scratch/kocevski/149503/cmap_HighResolution_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149503/ft1_filtered_4FGL_J2203.3-5009_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/149503/ft2_4FGL_J2203.3-5009_daily_bin1155.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149503/Model_4FGL_J2203.3-5009_daily_bin1155.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/149503/ft1_filtered_4FGL_J2203.3-5009_daily_bin1155.fits.....................!
real 56.67
user 55.39
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1007       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.497       1.0000         .10000E-03   10000.    
     3 'norm      '    7.8903       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38261       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.649       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11147E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7849       1.0000         .10000E-03   10000.    
     9 'norm      '    15.073       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8627       1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.976       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7887       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6225       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82281       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87827       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=   7660.991     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3105 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1006        3.8099       -.23198E-06    .20716E-04
   2  Prefactor     22.497        20.632       -.31181E-06    .30556E-04
   3  norm          7.8905        2.3410       -.66813E-07    .68412E-04
   4  Prefactor     .10000E-03    28.575       -.98170E-06** at limit **
   5  Prefactor     .38299        3.8283       -.20100E-05   -.23488E-03
   6  Prefactor     23.650        21.278       -.36245E-06    .11473E-04
   7  Prefactor     .10000E-03    58.486       -.51916E-05** at limit **
   8  Prefactor     8.7826        4.0930       -.56297E-07   -.10359E-03
   9  norm          15.073        5.2768       -.98483E-07    .96044E-04
  10  Prefactor     .10000E-03    1.8669       -.12226E-06** at limit **
  11  Prefactor     .10000E-03    24.923       -.96469E-06** at limit **
  12  Prefactor     .67047        32.662        .20594E-05    .33778E-04
  13  Prefactor     4.8619        3.1837        .70676E-07   -.11532E-03
  14  Prefactor     72.775        108.23       -.30499E-05    .96097E-05
  15  norm          .10000E-03    2.5617       -.14243E-06** at limit **
  16  Prefactor     3.7892        2.6266        .95111E-07    .61386E-05
  17  Prefactor     .10000E-03    32.401       -.10916E-05** at limit **
  18  Prefactor     .10000E-03    1.5335       -.41354E-06** at limit **
  19  Prefactor     .10000E-03    3.8257       -.21405E-06** at limit **
  20  Prefactor     2.6237        7.1185       -.47144E-06   -.52002E-04
  21  Prefactor     .10000E-03    21.103       -.17716E-07** at limit **
  22  Prefactor     .10004E-03    3.6069        .60751E-06** at limit **
  23  Prefactor     .10000E-03    13.858       -.46738E-06** at limit **
  24  Prefactor     .10000E-03    2.3529       -.92788E-07** at limit **
  25  Normalizat    .82267        .16933       -.33860E-05    .16553E-03
  26  Prefactor     .87831        .13497        .37851E-05   -.19223E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10057
  Prefactor  = 22.4975
  norm       = 7.89046
  Prefactor  = 0.0001
  Prefactor  = 0.382991
  Prefactor  = 23.65
  Prefactor  = 0.000100002
  Prefactor  = 8.78263
  norm       = 15.0731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.670474
  Prefactor  = 4.86185
  Prefactor  = 72.7748
  norm       = 0.0001
  Prefactor  = 3.78922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62366
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.822675
  Prefactor  = 0.878314
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.991     FROM HESSE     STATUS=OK           470 CALLS     3575 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1006        3.7998        .15635E-03   -1.5303    
   2  Prefactor     22.497        20.612        .84449E-04   -1.4759    
   3  norm          7.8905        2.3405        .70157E-04   -1.5146    
   4  Prefactor     .10000E-03    28.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38299        3.9376        .33534E-03   -1.5584    
   6  Prefactor     23.650        21.272        .82369E-04   -1.4735    
   7  Prefactor     .10000E-03    61.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7826        4.0925        .11483E-03   -1.5115    
   9  norm          15.073        5.2776        .10316E-03   -1.4931    
  10  Prefactor     .10000E-03    1.8705        .11681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67047        38.841        .30037E-02   -1.5544    
  13  Prefactor     4.8619        3.1788        .12012E-03   -1.5267    
  14  Prefactor     72.775        116.89        .23499E-03   -1.4000    
  15  norm          .10000E-03    2.5763        .13686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7892        2.6272        .11264E-03   -1.5319    
  17  Prefactor     .10000E-03    32.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5557        .10598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8289        .16721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6237        7.1309        .25184E-03   -1.5384    
  21  Prefactor     .10000E-03    21.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10004E-03    3.3556        .52745E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3538        .13113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82267        .17701        .26078E-03   -.99233    
  26  Prefactor     .87831        .13959        .20438E-03   -.96903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67881e-10
Minuit parameter uncertainties:
  1  3.80002
  2  20.6189
  3  2.34052
  4  4.6178e-05
  5  2.45594
  6  21.279
  7  0.000618994
  8  4.09259
  9  5.27777
  10  2.71056e-06
  11  1.6538e-05
  12  10.2125
  13  3.17887
  14  117.261
  15  3.39405e-06
  16  2.62727
  17  0.000104333
  18  4.75051e-06
  19  3.07714e-06
  20  7.13316
  21  3.52059e-05
  22  0.000775147
  23  2.31877e-05
  24  1.96689e-06
  25  0.177138
  26  0.139646
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  6.705e-01  1.021e+01  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.783e-01  1.396e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.227e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149503/likelihoodResults_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.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) = 7660.06345798
delta logL = 0.927818704178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7659.92781213
delta logL = 1.06346455258

Fit tolerance = 1e-08

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

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

 FCN=   7659.928     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      282 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16285E-01    .16490        .18584E-02    .11194E-01
   2  Index         7.5851        3.0845        .22302        .12831E-03
   3  Normalizat    .75630        .33195E-01    .43043E-01    .27508E-04
   4  Prefactor     .91187        .27006E-01    .45150E-01    .28456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0162853
  Index      = 7.58507
  Normalizat = 0.756299
  Prefactor  = 0.911867
 **********
 **   18 **HESSE 
 **********

 FCN=   7659.928     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      317 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16285E-01    .47634        .84469E-04   -1.5683    
   2  Index         7.5851        8.5544        .83705E-02    .54336    
   3  Normalizat    .75630        .12706        .27049E-03   -1.0171    
   4  Prefactor     .91187        .10174        .20089E-03   -.95728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28963e-11
Minuit parameter uncertainties:
  1  0.17561
  2  7.16534
  3  0.127111
  4  0.10176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149503': 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) = 7659.92779542
delta logL = 1.0634812661

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.629e-02  1.756e-01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  7.585e+00  7.165e+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:  9.119e-01  1.018e-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.563e-01  1.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 7.59 +/- 7.17
Photon Flux (Free Index): 5.61e-08 +/- 4.15e-08
Energy Flux (Free Index): 6.59e-06 +/- 5.39e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149503/cmap_HighResolution_538704001_538963201_4FGL_J2203.3-5009_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', comment='SUCCESS', energy_flux2='6.59e-06', dlogl='1.06e+00', photon_flux2='5.61e-08', job_status='DONE', time_completed='2021-09-28 03:21:01.956231', photon_index_error2='7.17', photon_index2='7.59', ts='0.01', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.14e-08', energy_flux_error2='5.39e-06', EG='0.82', time_epoch_completed='1632824461.96', return_code='0', job_id='149503', GAL2='0.91', EG2='0.76', return_code2='102', photon_flux_error2='4.15e-08', ts2='2.28', photon_index='2.74' WHERE bin_id='1155' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:21:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 149503: <4FGL_J2203.3-5009_daily_bin1155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1155 330.832 -50.1512 538704001 538963201 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 :                                   833.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

