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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1423
RA = 330.832, Dec = -50.1512
tmin = 608169601, tmax = 608428801
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='150941', job_status='RUN', time_executed='2021-09-28 03:11:37.286710', time_epoch_executed='1632823897.29' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150941/ft1_4FGL_J2203.3-5009_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150941/ft2_4FGL_J2203.3-5009_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150941/ft1_4FGL_J2203.3-5009_daily_bin1423.fits outfile=/scratch/kocevski/150941/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1423.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=608169601.0 tmax=608428801.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.78
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150941/ft2_4FGL_J2203.3-5009_daily_bin1423.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/150941/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1423.fits evtable="EVENTS" outfile="/scratch/kocevski/150941/ft1_filtered_4FGL_J2203.3-5009_daily_bin1423.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/150941/ft1_filtered_4FGL_J2203.3-5009_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/150941/ft2_4FGL_J2203.3-5009_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/150941/ltcube_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.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/150941/ft2_4FGL_J2203.3-5009_daily_bin1423.fits
.....................!
real 12.13
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150941/ft1_filtered_4FGL_J2203.3-5009_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/150941/ft2_4FGL_J2203.3-5009_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/150941/ltcube_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.fits outfile=/scratch/kocevski/150941/expmap_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.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/150941/ltcube_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.fits
.....................!
real 192.83
user 187.60
sys 4.84

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/150941/ft1_filtered_4FGL_J2203.3-5009_daily_bin1423.fits scfile=/scratch/kocevski/150941/ft2_4FGL_J2203.3-5009_daily_bin1423.fits outfile=/scratch/kocevski/150941/cmap_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150941/ft1_filtered_4FGL_J2203.3-5009_daily_bin1423.fits scfile=/scratch/kocevski/150941/ft2_4FGL_J2203.3-5009_daily_bin1423.fits outfile=/scratch/kocevski/150941/cmap_HighResolution_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16303E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4853       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11525E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.814       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3400       1.0000         .10000E-03   10000.    
    14 'Prefactor '    125.01       1.0000         .10000E-03   10000.    
    15 'norm      '    8.4353       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .67215       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.637       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13671E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86688       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89478       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=   7309.422     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3143 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.7591       -.61892E-06** at limit **
   2  Prefactor     .10000E-03    15.303       -.73959E-06** at limit **
   3  norm          6.3867        2.1122        .51266E-09    .89041E-04
   4  Prefactor     8.4237        58.086        .15271E-05   -.23927E-04
   5  Prefactor     6.0642        6.1143        .21222E-06    .21480E-04
   6  Prefactor     .10000E-03    8.6791        .62822E-07** at limit **
   7  Prefactor     .10000E-03    39.255       -.26129E-05** at limit **
   8  Prefactor     .10000E-03    3.2726       -.28767E-06** at limit **
   9  norm          16.813        5.0920       -.15477E-07   -.49449E-05
  10  Prefactor     5.1009        6.6266        .16343E-06    .64586E-05
  11  Prefactor     73.957        32.776       -.10692E-06   -.26352E-04
  12  Prefactor     .10000E-03    4.5527        .53240E-06** at limit **
  13  Prefactor     3.3402        3.4248        .22613E-06   -.24248E-04
  14  Prefactor     125.04        86.785       -.68202E-07    .23518E-04
  15  norm          8.4360        6.2620       -.74196E-07   -.55555E-04
  16  Prefactor     .67174        1.4737        .11340E-05    .17145E-02
  17  Prefactor     4.7530        26.065       -.25887E-06   -.20955E-04
  18  Prefactor     .23213        2.7621       -.12660E-05    .13376E-02
  19  Prefactor     30.647        25.855       -.20486E-05   -.23333E-03
  20  Prefactor     .10002E-03    7.2807        .16426E-05** at limit **
  21  Prefactor     .10000E-03    32.125       -.16679E-06** at limit **
  22  Prefactor     .10000E-03    5.4340        .15828E-06** at limit **
  23  Prefactor     .10000E-03    17.444        .23776E-06** at limit **
  24  Prefactor     .10000E-03    3.5060        .39886E-07** at limit **
  25  Normalizat    .86685        .16773       -.19057E-05    .79164E-04
  26  Prefactor     .89490        .12718        .11890E-05   -.13992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 6.38669
  Prefactor  = 8.42372
  Prefactor  = 6.06419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8128
  Prefactor  = 5.10085
  Prefactor  = 73.9566
  Prefactor  = 0.0001
  Prefactor  = 3.34025
  Prefactor  = 125.038
  norm       = 8.436
  Prefactor  = 0.671737
  Prefactor  = 4.75303
  Prefactor  = 0.232129
  Prefactor  = 30.6465
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.866854
  Prefactor  = 0.894897
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.422     FROM HESSE     STATUS=OK           466 CALLS     3609 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.0343        .21234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3867        2.1126        .68821E-04   -1.5202    
   4  Prefactor     8.4237        57.811        .13762E-03   -1.5127    
   5  Prefactor     6.0642        6.1090        .16304E-03   -1.5215    
   6  Prefactor     .10000E-03    8.6904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3712        .30123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.813        5.0891        .97675E-04   -1.4888    
  10  Prefactor     5.1009        6.6185        .17802E-03   -1.5256    
  11  Prefactor     73.957        32.792        .46684E-04   -1.3986    
  12  Prefactor     .10000E-03    4.5746        .17769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3402        3.4172        .15074E-03   -1.5342    
  14  Prefactor     125.04        86.625        .18001E-03   -1.3467    
  15  norm          8.4360        6.2601        .13803E-03   -1.5127    
  16  Prefactor     .67174        1.3850        .17088E-02   -1.5544    
  17  Prefactor     4.7530        26.018        .18445E-03   -1.5272    
  18  Prefactor     .23213        15.566        .24267E-02   -1.5612    
  19  Prefactor     30.647        24.947        .72387E-04   -1.4600    
  20  Prefactor     .10002E-03    84.268        .40330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.6067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5095        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .86685        .19303        .26259E-03   -.97635    
  26  Prefactor     .89490        .14606        .20464E-03   -.96320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50145e-08
Minuit parameter uncertainties:
  1  0.000395854
  2  1.89732e-05
  3  2.11258
  4  44.1966
  5  6.10966
  6  3.77115e-06
  7  0.00013008
  8  2.49857e-06
  9  5.0892
  10  6.61946
  11  32.8005
  12  1.61366e-05
  13  3.41738
  14  86.713
  15  6.26062
  16  1.38506
  17  22.2557
  18  3.80192
  19  24.9558
  20  0.00247137
  21  0.000128237
  22  5.00097e-06
  23  6.45651e-05
  24  2.43036e-06
  25  0.193188
  26  0.146129
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.614e-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:  8.949e-01  1.461e-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.669e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/150941/likelihoodResults_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.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): 0
logL (Free Index) = 7309.42302202
delta logL = -0.00104193849529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7309.42198012
delta logL = -3.80268829758e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7500       1.0000          .0000       10.000    
     3 'Normalizat'    .86680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89495       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=   7309.417     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      317 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89216E-02    .28588        .73006E-02    .44017E-02
   2  Index         6.3171        3.1936        .50000        .98949E-05
   3  Normalizat    .86131        .85878E-02    .26259E-03   -.95552E-04
   4  Prefactor     .89759        .68311E-02    .20464E-03    .15748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00892162
  Index      = 6.31708
  Normalizat = 0.861314
  Prefactor  = 0.897591
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.417     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      348 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89216E-02    34.856        .41033E-03   -1.5689    
   2  Index         6.3171        5.8546        .27767E-01    .26656    
   3  Normalizat    .86131        .75400E-01    .10503E-04   -.97833    
   4  Prefactor     .89759        .57086E-01    .40929E-04   -.96225    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.52225e-06
Minuit parameter uncertainties:
  1  1.10968
  2  76.6731
  3  0.0754089
  4  0.0570897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150941': 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) = 7309.41726465
delta logL = 0.0047154322292

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  8.922e-03  1.110e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  6.317e+00  7.667e+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:  8.976e-01  5.709e-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:  8.613e-01  7.541e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/150941/cmap_HighResolution_608169601_608428801_4FGL_J2203.3-5009_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-28 03:25:27.457893', job_id='150941', GAL2='0.90', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1632824727.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.72e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1423' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:25:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 150941: <4FGL_J2203.3-5009_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1423 330.832 -50.1512 608169601 608428801 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 :                                   816.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

