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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin230
RA = 330.832, Dec = -50.1512
tmin = 298944001, tmax = 299203201
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='143860', job_status='RUN', time_executed='2021-09-28 02:47:17.175032', time_epoch_executed='1632822437.18' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143860/ft1_4FGL_J2203.3-5009_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143860/ft2_4FGL_J2203.3-5009_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143860/ft1_4FGL_J2203.3-5009_daily_bin230.fits outfile=/scratch/kocevski/143860/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin230.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=298944001.0 tmax=299203201.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.42
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143860/ft1_filtered_4FGL_J2203.3-5009_daily_bin230.fits" evtable="EVENTS" scfile=/scratch/kocevski/143860/ft2_4FGL_J2203.3-5009_daily_bin230.fits sctable="SC_DATA" outfile=/scratch/kocevski/143860/ltcube_298944001_299203201_4FGL_J2203.3-5009_daily_bin230.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/143860/ft2_4FGL_J2203.3-5009_daily_bin230.fits
.....................!
real 11.62
user 11.23
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143860/ft1_filtered_4FGL_J2203.3-5009_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/143860/ft2_4FGL_J2203.3-5009_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/143860/ltcube_298944001_299203201_4FGL_J2203.3-5009_daily_bin230.fits outfile=/scratch/kocevski/143860/expmap_298944001_299203201_4FGL_J2203.3-5009_daily_bin230.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/143860/ltcube_298944001_299203201_4FGL_J2203.3-5009_daily_bin230.fits
.....................!
real 190.33
user 184.69
sys 5.33

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/143860/ft1_filtered_4FGL_J2203.3-5009_daily_bin230.fits scfile=/scratch/kocevski/143860/ft2_4FGL_J2203.3-5009_daily_bin230.fits outfile=/scratch/kocevski/143860/cmap_298944001_299203201_4FGL_J2203.3-5009_daily_bin230.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143860/ft1_filtered_4FGL_J2203.3-5009_daily_bin230.fits scfile=/scratch/kocevski/143860/ft2_4FGL_J2203.3-5009_daily_bin230.fits outfile=/scratch/kocevski/143860/cmap_HighResolution_298944001_299203201_4FGL_J2203.3-5009_daily_bin230.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/143860/ft1_filtered_4FGL_J2203.3-5009_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/143860/ft2_4FGL_J2203.3-5009_daily_bin230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/143860/Model_4FGL_J2203.3-5009_daily_bin230.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/143860/ft1_filtered_4FGL_J2203.3-5009_daily_bin230.fits.....................!
real 49.30
user 47.97
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4838       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3949       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.203       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5314       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .46633E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.592       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.549       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2266       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95520       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=   6291.921     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3112 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2416        4.4511        .19361E-05   -.28502E-04
   2  Prefactor     .10000E-03    12.032       -.10622E-06** at limit **
   3  norm          8.2546        2.9357       -.50524E-08   -.88025E-04
   4  Prefactor     .10000E-03    15.837        .69217E-09** at limit **
   5  Prefactor     .42682        7.7344        .48098E-07   -.85511E-04
   6  Prefactor     .10000E-03    44.331       -.10801E-05** at limit **
   7  Prefactor     .10000E-03    8.2414       -.11134E-07** at limit **
   8  Prefactor     1.4834        5.7361        .25486E-05   -.14459E-04
   9  norm          .10000E-03    1.3902       -.32339E-07** at limit **
  10  Prefactor     5.3936        7.3326        .61673E-07   -.76212E-05
  11  Prefactor     .10000E-03    35.718        .59635E-06** at limit **
  12  Prefactor     17.201        10.513        .24602E-06   -.17250E-03
  13  Prefactor     .10000E-03    2.6623        .33427E-08** at limit **
  14  Prefactor     .10000E-03    62.014        .27387E-06** at limit **
  15  norm          .10000E-03    3.2433        .16511E-08** at limit **
  16  Prefactor     .10000E-03    2.3485        .49067E-06** at limit **
  17  Prefactor     6.5117        53.144        .75111E-06    .12485E-04
  18  Prefactor     .10002E-03    3.1515        .89361E-06** at limit **
  19  Prefactor     .10000E-03    5.6985       -.36050E-07** at limit **
  20  Prefactor     18.176        10.937        .13444E-06   -.67962E-04
  21  Prefactor     15.432        66.426       -.32982E-06   -.28458E-04
  22  Prefactor     10.549        8.4325        .91122E-07   -.64878E-04
  23  Prefactor     .10000E-03    27.540       -.22898E-06** at limit **
  24  Prefactor     .10000E-03    4.2660       -.58193E-08** at limit **
  25  Normalizat    1.2267        .19518       -.11235E-05   -.30926E-03
  26  Prefactor     .95521        .14681       -.24460E-06   -.33954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.24163
  Prefactor  = 0.0001
  norm       = 8.25461
  Prefactor  = 0.0001
  Prefactor  = 0.426821
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.48345
  norm       = 0.0001
  Prefactor  = 5.39362
  Prefactor  = 0.0001
  Prefactor  = 17.2012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51168
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 18.1756
  Prefactor  = 15.4323
  Prefactor  = 10.549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22666
  Prefactor  = 0.955207
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.921     FROM HESSE     STATUS=OK           456 CALLS     3568 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2416        4.4824        .30295E-03   -1.5485    
   2  Prefactor     .10000E-03    12.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2546        2.9331        .78259E-04   -1.5133    
   4  Prefactor     .10000E-03    15.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42682        40.828        .40741E-02   -1.5577    
   6  Prefactor     .10000E-03    44.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4834        5.7539        .34315E-03   -1.5464    
   9  norm          .10000E-03    1.3930        .91316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3936        7.3275        .17301E-03   -1.5243    
  11  Prefactor     .10000E-03    36.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.201        10.493        .96564E-04   -1.4878    
  13  Prefactor     .10000E-03    2.7221        .12627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2544        .13951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6591        .23139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5117        52.900        .15703E-03   -1.5198    
  18  Prefactor     .10002E-03    14.242        .25686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.176        10.940        .93959E-04   -1.4855    
  21  Prefactor     15.432        66.863        .10143E-03   -1.4922    
  22  Prefactor     10.549        8.4335        .12336E-03   -1.5058    
  23  Prefactor     .10000E-03    27.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.2677        .16001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2267        .22747        .25890E-03   -.85783    
  26  Prefactor     .95521        .17301        .22540E-03   -.94238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10884e-08
Minuit parameter uncertainties:
  1  4.48365
  2  1.92163e-05
  3  2.9332
  4  7.60686e-07
  5  8.35385
  6  0.000329281
  7  4.18121e-06
  8  5.75602
  9  9.41171e-07
  10  7.32875
  11  0.000254415
  12  10.4942
  13  1.53623e-06
  14  0.000190376
  15  1.14975e-06
  16  7.82315e-05
  17  37.1644
  18  0.00110772
  19  2.24109e-07
  20  10.9413
  21  64.3663
  22  8.43444
  23  6.27097e-05
  24  1.26547e-06
  25  0.227658
  26  0.173112
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.720e+01  1.049e+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:  9.552e-01  1.731e-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.227e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.21e-05

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): 0
logL (Free Index) = 6291.75653157
delta logL = 0.164502649667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6291.75117014
delta logL = 0.169864080824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.225       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1449       1.0000          .0000       10.000    
     3 'Normalizat'    1.2031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96800       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=   6291.751     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.230        137.19        .27536E-02    .56136E-03
   2  Index         3.1449        6.5298        .17734        .22246E-03
   3  Normalizat    1.2031        .79843E-01    .59015E-01    .30536E-04
   4  Prefactor     .96790        .59351E-01    .45866E-01   -.16980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.23
  Index      = 3.14488
  Normalizat = 1.20315
  Prefactor  = 0.967903
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.751     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.230        12.358        .11014E-03   -1.4980    
   2  Index         3.1449        .81141        .65373E-02   -.38011    
   3  Normalizat    1.2031        .22679        .26100E-03   -.86506    
   4  Prefactor     .96790        .17365        .22411E-03   -.93807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43248e-10
Minuit parameter uncertainties:
  1  12.3607
  2  0.815597
  3  0.226976
  4  0.17375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143860': 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) = 6291.75116968
delta logL = 0.169864547238

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.323e+01  1.236e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.145e+00  8.156e-01  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.679e-01  1.737e-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.203e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 3.14 +/- 0.82
Photon Flux (Free Index): 1.02e-07 +/- 6.13e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.11e-05

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/143860/cmap_HighResolution_298944001_299203201_4FGL_J2203.3-5009_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='1.91e-05', photon_flux_error='5.15e-08', dlogl='1.70e-01', energy_flux='1.98e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-28 02:58:12.980936', photon_index_error2='0.82', photon_index2='3.14', ts='4.46', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.23', time_epoch_completed='1632823092.98', return_code='0', job_id='143860', GAL2='0.97', EG2='1.20', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='6.13e-08', ts2='4.83', photon_index='2.74' WHERE bin_id='230' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 02:58:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 143860: <4FGL_J2203.3-5009_daily_bin230> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin230> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:45:42 2021
Job was executed on host(s) <bullet0049>, 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:58:13 2021
Results reported at Tue Sep 28 02:58:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin230 330.832 -50.1512 298944001 299203201 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 :                                   654.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

