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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1642
RA = 330.832, Dec = -50.1512
tmin = 664934401, tmax = 665193601
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='445033', job_status='RUN', time_executed='2022-01-30 00:37:07.980800', time_epoch_executed='1643531827.98' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445033/ft1_4FGL_J2203.3-5009_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445033/ft2_4FGL_J2203.3-5009_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445033/ft1_4FGL_J2203.3-5009_daily_bin1642.fits outfile=/scratch/kocevski/445033/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1642.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=664934401.0 tmax=665193601.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.63
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445033/ft1_filtered_4FGL_J2203.3-5009_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/445033/ft2_4FGL_J2203.3-5009_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/445033/ltcube_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.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/445033/ft2_4FGL_J2203.3-5009_daily_bin1642.fits
.....................!
real 12.10
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445033/ft1_filtered_4FGL_J2203.3-5009_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445033/ft2_4FGL_J2203.3-5009_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/445033/ltcube_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.fits outfile=/scratch/kocevski/445033/expmap_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.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/445033/ltcube_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.fits
.....................!
real 190.95
user 185.54
sys 5.07

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/445033/ft1_filtered_4FGL_J2203.3-5009_daily_bin1642.fits scfile=/scratch/kocevski/445033/ft2_4FGL_J2203.3-5009_daily_bin1642.fits outfile=/scratch/kocevski/445033/cmap_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.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/445033/ft1_filtered_4FGL_J2203.3-5009_daily_bin1642.fits scfile=/scratch/kocevski/445033/ft2_4FGL_J2203.3-5009_daily_bin1642.fits outfile=/scratch/kocevski/445033/cmap_HighResolution_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445033/ft1_filtered_4FGL_J2203.3-5009_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445033/ft2_4FGL_J2203.3-5009_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445033/Model_4FGL_J2203.3-5009_daily_bin1642.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/445033/ft1_filtered_4FGL_J2203.3-5009_daily_bin1642.fits.....................!
real 43.95
user 42.72
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4586       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.420       1.0000         .10000E-03   10000.    
     3 'norm      '    .86614E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.458       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8513       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5985       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.166       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21505E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    115.25       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6986       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9740       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .43230E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.366       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.883       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0469       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=   5412.128     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3128 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4580        5.2956       -.41665E-07   -.16232E-04
   2  Prefactor     23.416        26.655        .13182E-06    .62177E-05
   3  norm          .86385E-01    1.1625       -.74369E-07    .46516E-04
   4  Prefactor     .10000E-03    44.246       -.13373E-05** at limit **
   5  Prefactor     10.457        12.737       -.17569E-06    .99443E-05
   6  Prefactor     .10000E-03    8.1610        .62987E-07** at limit **
   7  Prefactor     .10000E-03    12.795        .43574E-06** at limit **
   8  Prefactor     3.8518        6.4641        .11923E-05    .24125E-03
   9  norm          2.5982        3.5705        .47223E-07    .73972E-05
  10  Prefactor     .10000E-03    2.5332        .46819E-08** at limit **
  11  Prefactor     13.169        41.354        .27484E-06    .13657E-05
  12  Prefactor     .10000E-03    13.053        .93635E-06** at limit **
  13  Prefactor     .10001E-03    3.9126        .15036E-05** at limit **
  14  Prefactor     115.31        110.43       -.14026E-05   -.41123E-04
  15  norm          6.6990        6.4332       -.13212E-06   -.10512E-03
  16  Prefactor     3.9714        6.1877        .19226E-06    .75729E-04
  17  Prefactor     .10000E-03    20.080        .56075E-07** at limit **
  18  Prefactor     .10092E-03    7.6038        .16035E-06** at limit **
  19  Prefactor     .10000E-03    19.739       -.34698E-06** at limit **
  20  Prefactor     .10000E-03    3.1577       -.46417E-07** at limit **
  21  Prefactor     .10000E-03    39.736        .13782E-05** at limit **
  22  Prefactor     .10000E-03    6.4140        .23375E-08** at limit **
  23  Prefactor     15.218        52.977        .80641E-05    .56165E-04
  24  Prefactor     13.884        13.635       -.87448E-07   -.32995E-06
  25  Normalizat    1.3450        .23830        .93799E-06   -.69597E-04
  26  Prefactor     1.0470        .17169       -.98148E-06   -.95257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45805
  Prefactor  = 23.4164
  norm       = 0.0863846
  Prefactor  = 0.0001
  Prefactor  = 10.4573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85176
  norm       = 2.59823
  Prefactor  = 0.0001
  Prefactor  = 13.1691
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 115.305
  norm       = 6.69897
  Prefactor  = 3.97139
  Prefactor  = 0.0001
  Prefactor  = 0.000100919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2178
  Prefactor  = 13.8839
  Normalizat = 1.34499
  Prefactor  = 1.047
 **********
 **   18 **HESSE 
 **********

 FCN=   5412.128     FROM HESSE     STATUS=OK           470 CALLS     3598 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4580        5.2906        .14678E-03   -1.5200    
   2  Prefactor     23.416        26.628        .82771E-04   -1.4740    
   3  norm          .86385E-01    6.5192        .15298E-02   -1.5649    
   4  Prefactor     .10000E-03    44.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.457        12.712        .12390E-03   -1.5061    
   6  Prefactor     .10000E-03    8.1631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8518        6.6269        .10282E-02   -1.5315    
   9  norm          2.5982        3.5567        .15819E-03   -1.5386    
  10  Prefactor     .10000E-03    2.5338        .11435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.169        41.366        .11039E-03   -1.4982    
  12  Prefactor     .10000E-03    13.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    8.8370        .23337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     115.31        110.19        .18739E-03   -1.3556    
  15  norm          6.6990        6.4389        .77519E-03   -1.5190    
  16  Prefactor     3.9714        6.2440        .20233E-03   -1.5309    
  17  Prefactor     .10000E-03    20.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10092E-03    10.683        .54118E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1601        .12768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.4849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.218        54.652        .10217E-03   -1.4928    
  24  Prefactor     13.884        13.642        .10750E-03   -1.4963    
  25  Normalizat    1.3450        .27774        .27273E-03   -.82233    
  26  Prefactor     1.0470        .19983        .23317E-03   -.91179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79009e-09
Minuit parameter uncertainties:
  1  5.29101
  2  26.6414
  3  1.50018
  4  9.33545e-05
  5  12.7157
  6  2.04636e-06
  7  2.23563e-05
  8  6.62815
  9  3.55698
  10  1.16195e-07
  11  41.4565
  12  9.47081e-05
  13  0.000626589
  14  110.389
  15  6.43959
  16  6.24499
  17  2.56077e-06
  18  0.0062687
  19  5.89905e-05
  20  4.53825e-06
  21  8.33528e-05
  22  1.03576e-06
  23  54.8322
  24  13.6451
  25  0.278054
  26  0.199967
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  9.471e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.739e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.047e+00  2.000e-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.345e+00  2.781e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445033/likelihoodResults_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.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) = 5412.12845976
delta logL = -0.000358979455996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5412.12810076
delta logL = 2.0890183805e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7218       1.0000          .0000       10.000    
     3 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0470       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=   5412.128     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      251 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    1.6574        .67628E-01** at limit **
   2  Index         2.6526        8.2009        .50000        .79450E-05
   3  Normalizat    1.3450        .28392E-02    .27273E-03   -.39684E-04
   4  Prefactor     1.0470        .21877E-02    .23318E-03   -.31404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101265
  Index      = 2.65258
  Normalizat = 1.34499
  Prefactor  = 1.047
 **********
 **   18 **HESSE 
 **********

 FCN=   5412.128     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10127E-03    127.16        .37539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6526        5.1184        .50000       -.48871    
   3  Normalizat    1.3450        .17582E-01    .10909E-04   -.82233    
   4  Prefactor     1.0470        .13548E-01    .46635E-04   -.91179    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.89749e-09
Minuit parameter uncertainties:
  1  0.025423
  2  471.793
  3  0.0175823
  4  0.0135478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445033': 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) = 5412.12810063
delta logL = 1.50109372044e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.013e-04  2.542e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.653e+00  4.718e+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.047e+00  1.355e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.345e+00  1.758e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.832 -50.151

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/445033/cmap_HighResolution_664934401_665193601_4FGL_J2203.3-5009_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2022-01-30 00:48:14.841953', job_id='445033', GAL2='1.05', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1643532494.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1642' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:48:14 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 445033: <4FGL_J2203.3-5009_daily_bin1642> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:35:50 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:35:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:35:52 2022
Terminated at Sun Jan 30 00:48:15 2022
Results reported at Sun Jan 30 00:48:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1642 330.832 -50.1512 664934401 665193601 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            745 sec.

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

