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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1171
RA = 330.832, Dec = -50.1512
tmin = 542851201, tmax = 543110401
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='149529', job_status='RUN', time_executed='2021-09-28 03:09:03.274998', time_epoch_executed='1632823743.28' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149529

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149529/ft1_4FGL_J2203.3-5009_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149529/ft2_4FGL_J2203.3-5009_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149529/ft1_4FGL_J2203.3-5009_daily_bin1171.fits outfile=/scratch/kocevski/149529/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1171.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.59
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149529/ft1_filtered_4FGL_J2203.3-5009_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/149529/ft2_4FGL_J2203.3-5009_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/149529/ltcube_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.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/149529/ft2_4FGL_J2203.3-5009_daily_bin1171.fits
.....................!
real 1.80
user 1.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149529/ft1_filtered_4FGL_J2203.3-5009_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/149529/ft2_4FGL_J2203.3-5009_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/149529/ltcube_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.fits outfile=/scratch/kocevski/149529/expmap_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.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/149529/ltcube_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.fits
.....................!
real 190.94
user 185.73
sys 4.90

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/149529/ft1_filtered_4FGL_J2203.3-5009_daily_bin1171.fits scfile=/scratch/kocevski/149529/ft2_4FGL_J2203.3-5009_daily_bin1171.fits outfile=/scratch/kocevski/149529/cmap_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.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.50
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149529/ft1_filtered_4FGL_J2203.3-5009_daily_bin1171.fits scfile=/scratch/kocevski/149529/ft2_4FGL_J2203.3-5009_daily_bin1171.fits outfile=/scratch/kocevski/149529/cmap_HighResolution_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.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.50
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149529/ft1_filtered_4FGL_J2203.3-5009_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/149529/ft2_4FGL_J2203.3-5009_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149529/Model_4FGL_J2203.3-5009_daily_bin1171.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/149529/ft1_filtered_4FGL_J2203.3-5009_daily_bin1171.fits.....................!
real 14.75
user 13.50
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.322       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11153E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    121.36       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
     9 'norm      '    .11194E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.046       1.0000         .10000E-03   10000.    
    11 'Prefactor '    117.10       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.057       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12058E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.767       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .41760       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .40707       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=   224.7127     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3175 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.314        30.802       -.98429E-06    .22898E-04
   2  Prefactor     .10000E-03    54.603       -.12736E-05** at limit **
   3  norm          .10000E-03    4.6888       -.86139E-07** at limit **
   4  Prefactor     .10000E-03    169.29       -.41450E-05** at limit **
   5  Prefactor     .10000E-03    25.933        .14004E-05** at limit **
   6  Prefactor     .10000E-03    64.634       -.92184E-06** at limit **
   7  Prefactor     121.25        149.44       -.34041E-06   -.37294E-05
   8  Prefactor     14.543        27.029        .70117E-05    .13179E-04
   9  norm          .10000E-03    14.644        .16539E-05** at limit **
  10  Prefactor     97.116        87.300        .45867E-05    .26190E-04
  11  Prefactor     117.55        237.35        .16552E-04    .19748E-04
  12  Prefactor     .10001E-03    21.960        .33398E-05** at limit **
  13  Prefactor     .10000E-03    12.156       -.13041E-07** at limit **
  14  Prefactor     .10000E-03    240.74       -.43397E-05** at limit **
  15  norm          .10000E-03    33.877        .24258E-06** at limit **
  16  Prefactor     .10000E-03    8.1024        .93774E-06** at limit **
  17  Prefactor     .10000E-03    129.62        .15246E-05** at limit **
  18  Prefactor     .10000E-03    11.824        .96714E-06** at limit **
  19  Prefactor     .10000E-03    83.836        .31180E-05** at limit **
  20  Prefactor     11.184        95.767        .25417E-04    .19266E-04
  21  Prefactor     .10000E-03    453.97        .92678E-05** at limit **
  22  Prefactor     39.762        44.019       -.40196E-06   -.34882E-05
  23  Prefactor     .10000E-03    109.46        .29978E-05** at limit **
  24  Prefactor     .10000E-03    47.136        .19529E-05** at limit **
  25  Normalizat    .41016        1.0859       -.23832E-03    .77177E-04
  26  Prefactor     .41246        .76350        .16893E-03    .95418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3144
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 121.255
  Prefactor  = 14.5426
  norm       = 0.000100002
  Prefactor  = 97.1161
  Prefactor  = 117.546
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 11.1839
  Prefactor  = 0.000100001
  Prefactor  = 39.7616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.410163
  Prefactor  = 0.412464
 **********
 **   18 **HESSE 
 **********

 FCN=   224.7127     FROM HESSE     STATUS=OK           438 CALLS     3613 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.314        30.787        .68402E-04   -1.4536    
   2  Prefactor     .10000E-03    54.613        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.6890        .31736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    169.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.943        .74659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    64.607        .11793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     121.25        149.25        .18266E-03   -1.3501    
   8  Prefactor     14.543        26.988        .94377E-04   -1.4945    
   9  norm          .10000E-03    14.664        .56128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     97.116        87.227        .20402E-03   -1.3734    
  11  Prefactor     117.55        236.94        .18592E-03   -1.3535    
  12  Prefactor     .10001E-03    22.026        .68810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.164        .51097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    240.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    33.873        .85344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.1077        .41736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    129.63        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.830        .50416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    83.921        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.184        95.347        .12049E-03   -1.5039    
  21  Prefactor     .10000E-03    454.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     39.762        44.015        .63562E-04   -1.4446    
  23  Prefactor     .10000E-03    109.46        .15361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    47.142        .10070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .41016        1.0834        .25758E-03   -1.1678    
  26  Prefactor     .41246        .76141        .19663E-03   -1.1618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86804e-10
Minuit parameter uncertainties:
  1  30.801
  2  7.7654e-05
  3  4.47722e-06
  4  0.000501328
  5  0.000296517
  6  0.000518376
  7  149.716
  8  27.011
  9  0.000314507
  10  87.3429
  11  238.894
  12  0.000752668
  13  3.20704e-05
  14  0.00208622
  15  0.000185637
  16  0.000129872
  17  2.98665e-05
  18  0.000165802
  19  0.00125408
  20  65.4508
  21  0.0015946
  22  44.0514
  23  2.72408e-05
  24  5.25369e-05
  25  1.14793
  26  0.781357
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  7.527e-04  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:  4.125e-01  7.814e-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:  4.102e-01  1.148e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 5.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149529/likelihoodResults_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.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) = 224.712922929
delta logL = -0.000189292143006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 224.712736121
delta logL = -2.48463030061e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5033       1.0000          .0000       10.000    
     3 'Normalizat'    .40998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41261       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=   224.7127     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      292 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    615.79        .49093E-02** at limit **
   2  Index         1.9966        8.9603        .50000       -.18409E-07
   3  Normalizat    .41017        .72389E-01    .25793E-03    .22317E-03
   4  Prefactor     .41247        .56058E-01    .19650E-03    .29115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99658
  Normalizat = 0.410167
  Prefactor  = 0.412469
 **********
 **   18 **HESSE 
 **********

 FCN=   224.7127     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6426.9        .79800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9966        8.6911        .50000       -.64436    
   3  Normalizat    .41017        .18515        .51585E-04   -1.1678    
   4  Prefactor     .41247        .14346        .39299E-04   -1.1618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5609e-09
Minuit parameter uncertainties:
  1  0.000811041
  2  3534.6
  3  0.185428
  4  0.143581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149529': 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) = 224.712733055
delta logL = 5.81430725788e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  8.110e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.997e+00  3.535e+03  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:  4.125e-01  1.436e-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:  4.102e-01  1.854e-01  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/149529/cmap_HighResolution_542851201_543110401_4FGL_J2203.3-5009_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-02', job_status='DONE', photon_flux_upper_limit='5.65e-07', time_completed='2021-09-28 03:14:09.462533', job_id='149529', GAL2='0.41', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1632824049.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='5.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1171' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:14:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 149529: <4FGL_J2203.3-5009_daily_bin1171> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1171> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:47 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:05:50 2021
Terminated at Tue Sep 28 03:14:10 2021
Results reported at Tue Sep 28 03:14:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1171 330.832 -50.1512 542851201 543110401 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 :                                   310.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             286.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            503 sec.

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

