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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1610
RA = 330.832, Dec = -50.1512
tmin = 656640001, tmax = 656899201
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='481464', job_status='RUN', time_executed='2021-12-08 08:22:16.370803', time_epoch_executed='1638980536.37' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481464/ft1_4FGL_J2203.3-5009_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481464/ft1_4FGL_J2203.3-5009_daily_bin1610.fits outfile=/scratch/kocevski/481464/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1610.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=656640001.0 tmax=656899201.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.64
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.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/481464/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1610.fits evtable="EVENTS" outfile="/scratch/kocevski/481464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1610.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/481464/ltcube_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.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/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.fits
.....................!
real 14.63
user 14.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/481464/ltcube_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.fits outfile=/scratch/kocevski/481464/expmap_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.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/481464/ltcube_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.fits
.....................!
real 192.06
user 187.01
sys 4.65

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/481464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1610.fits scfile=/scratch/kocevski/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.fits outfile=/scratch/kocevski/481464/cmap_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1610.fits scfile=/scratch/kocevski/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.fits outfile=/scratch/kocevski/481464/cmap_HighResolution_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/481464/ft2_4FGL_J2203.3-5009_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481464/Model_4FGL_J2203.3-5009_daily_bin1610.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/481464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1610.fits.....................!
real 49.31
user 47.96
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4926       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5070       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.454       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22424       1.0000         .10000E-03   10000.    
     9 'norm      '    5.9282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    87.238       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2739       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8023       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0329       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.240       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91138       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=   6298.281     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3232 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4932        3.8952        .31698E-06    .11613E-03
   2  Prefactor     5.5073        21.845        .40061E-05    .13273E-03
   3  norm          .10000E-03    .65078        .17788E-07** at limit **
   4  Prefactor     21.445        40.357        .15239E-05    .52436E-04
   5  Prefactor     .10000E-03    6.5493        .41073E-07** at limit **
   6  Prefactor     .10000E-03    14.272       -.60413E-06** at limit **
   7  Prefactor     .10000E-03    32.278       -.12332E-05** at limit **
   8  Prefactor     .24694        3.8150        .23752E-05   -.55349E-03
   9  norm          5.9293        4.3100        .77857E-07    .52562E-04
  10  Prefactor     6.5315        9.5576        .26410E-06    .33268E-04
  11  Prefactor     87.235        47.313        .47380E-06    .54176E-04
  12  Prefactor     .58239        9.4621       -.10177E-05   -.13148E-03
  13  Prefactor     5.6832        4.4959        .84777E-07    .34503E-04
  14  Prefactor     .10000E-03    133.85        .25980E-05** at limit **
  15  norm          .10000E-03    8.0079       -.79360E-07** at limit **
  16  Prefactor     .10009E-03    2.8379       -.20363E-05** at limit **
  17  Prefactor     .10000E-03    22.562       -.20440E-05** at limit **
  18  Prefactor     .75672        4.0394        .13215E-05   -.17097E-05
  19  Prefactor     2.2617        104.57       -.39533E-05    .62900E-04
  20  Prefactor     4.8085        12.116        .45693E-05    .36861E-03
  21  Prefactor     .10000E-03    42.441        .43896E-05** at limit **
  22  Prefactor     1.0334        3.4690        .68475E-06    .19621E-03
  23  Prefactor     .10000E-03    60.989       -.45588E-05** at limit **
  24  Prefactor     14.241        13.952        .83241E-07    .23058E-04
  25  Normalizat    1.0763        .18937       -.57926E-06    .25932E-03
  26  Prefactor     .91127        .13703       -.42703E-06    .16777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49322
  Prefactor  = 5.50729
  norm       = 0.0001
  Prefactor  = 21.4447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.246939
  norm       = 5.92934
  Prefactor  = 6.53151
  Prefactor  = 87.2351
  Prefactor  = 0.582387
  Prefactor  = 5.68319
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.000100001
  Prefactor  = 0.756715
  Prefactor  = 2.26175
  Prefactor  = 4.8085
  Prefactor  = 0.000100003
  Prefactor  = 1.03337
  Prefactor  = 0.000100003
  Prefactor  = 14.2408
  Normalizat = 1.07627
  Prefactor  = 0.91127
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.281     FROM HESSE     STATUS=OK           466 CALLS     3698 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4932        3.8483        .23714E-03   -1.5464    
   2  Prefactor     5.5073        21.764        .85607E-03   -1.5239    
   3  norm          .10000E-03    1.0430        .12450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.445        40.340        .86476E-04   -1.4781    
   5  Prefactor     .10000E-03    6.7638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24694        15.700        .22679E-02   -1.5609    
   9  norm          5.9293        4.3073        .13510E-03   -1.5221    
  10  Prefactor     6.5315        9.5468        .15705E-03   -1.5197    
  11  Prefactor     87.235        46.663        .43015E-04   -1.3837    
  12  Prefactor     .58239        32.898        .40989E-02   -1.5555    
  13  Prefactor     5.6832        4.4668        .13902E-03   -1.5231    
  14  Prefactor     .10000E-03    133.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.1479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10009E-03    19.631        .19887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .75672        12.069        .26109E-02   -1.5534    
  19  Prefactor     2.2617        104.79        .27232E-03   -1.5407    
  20  Prefactor     4.8085        12.714        .91792E-03   -1.5269    
  21  Prefactor     .10000E-03    42.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0334        3.5187        .26308E-03   -1.5505    
  23  Prefactor     .10000E-03    61.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.241        13.966        .10614E-03   -1.4953    
  25  Normalizat    1.0763        .22036        .25006E-03   -.90518    
  26  Prefactor     .91127        .16270        .21178E-03   -.95748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68257e-08
Minuit parameter uncertainties:
  1  3.84893
  2  21.7955
  3  1.06046e-06
  4  40.3911
  5  1.83039e-07
  6  5.20518e-05
  7  0.000191877
  8  3.9383
  9  4.30749
  10  9.54899
  11  46.6827
  12  8.75855
  13  4.46701
  14  0.000652927
  15  1.35875e-05
  16  0.00260978
  17  0.000225087
  18  6.04512
  19  30.8466
  20  12.7212
  21  0.000653931
  22  3.51939
  23  0.000859551
  24  13.9691
  25  0.220546
  26  0.162788
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.824e-01  8.759e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.113e-01  1.628e-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.076e+00  2.205e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481464/likelihoodResults_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.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) = 6298.26496886
delta logL = 0.0155350780706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6298.26224114
delta logL = 0.0182627987715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98394       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4102       1.0000          .0000       10.000    
     3 'Normalizat'    1.0681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91442       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=   6298.262     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      251 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97388        24.596        .48145E-01    .34719E-03
   2  Index         3.4137        2.1994        .50000       -.88737E-05
   3  Normalizat    1.0684        .12669E-01    .56726E-01   -.25169E-03
   4  Prefactor     .91429        .10012E-01    .45189E-01   -.12533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.97388
  Index      = 3.41368
  Normalizat = 1.06837
  Prefactor  = 0.91429
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.262     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97388        36.318        .27228E-02   -1.5511    
   2  Index         3.4137        6.6429        .13234E-01   -.32284    
   3  Normalizat    1.0684        .20607        .25084E-03   -.90774    
   4  Prefactor     .91429        .15753        .21145E-03   -.95644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12398e-10
Minuit parameter uncertainties:
  1  11.9016
  2  6.99238
  3  0.206229
  4  0.157607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481464': 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) = 6298.26223913
delta logL = 0.0182648113914

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  9.739e-01  1.190e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.414e+00  6.992e+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.143e-01  1.576e-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.068e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/481464/cmap_HighResolution_656640001_656899201_4FGL_J2203.3-5009_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-12-08 08:34:58.726394', job_id='481464', GAL2='0.91', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1638981298.73', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.83e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1610' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:34:58 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 481464: <4FGL_J2203.3-5009_daily_bin1610> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1610> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:20 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:20:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:20:57 2021
Terminated at Wed Dec  8 08:34:59 2021
Results reported at Wed Dec  8 08:34:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1610 330.832 -50.1512 656640001 656899201 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 :                                   761.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            879 sec.

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

