/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 37 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_bin1130
RA = 330.832, Dec = -50.1512
tmin = 532224001, tmax = 532483201
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='149464', job_status='RUN', time_executed='2021-09-28 03:06:28.912107', time_epoch_executed='1632823588.91' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149464

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149464/ft1_4FGL_J2203.3-5009_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149464/ft2_4FGL_J2203.3-5009_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149464/ft1_4FGL_J2203.3-5009_daily_bin1130.fits outfile=/scratch/kocevski/149464/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1130.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=532224001.0 tmax=532483201.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.53
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/149464/ft2_4FGL_J2203.3-5009_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/149464/ltcube_532224001_532483201_4FGL_J2203.3-5009_daily_bin1130.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/149464/ft2_4FGL_J2203.3-5009_daily_bin1130.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/149464/ft2_4FGL_J2203.3-5009_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/149464/ltcube_532224001_532483201_4FGL_J2203.3-5009_daily_bin1130.fits outfile=/scratch/kocevski/149464/expmap_532224001_532483201_4FGL_J2203.3-5009_daily_bin1130.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/149464/ltcube_532224001_532483201_4FGL_J2203.3-5009_daily_bin1130.fits
.....................!
real 189.99
user 185.05
sys 4.56

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/149464/ft1_filtered_4FGL_J2203.3-5009_daily_bin1130.fits scfile=/scratch/kocevski/149464/ft2_4FGL_J2203.3-5009_daily_bin1130.fits outfile=/scratch/kocevski/149464/cmap_532224001_532483201_4FGL_J2203.3-5009_daily_bin1130.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.371       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1261       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.542       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11049E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    47.753       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8244       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7334       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6072       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.245       1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.133       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.493       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.194       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5924       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .55914       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=   5042.063     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3111 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5765       -.20603E-06** at limit **
   2  Prefactor     22.383        26.948       -.29851E-07   -.37587E-05
   3  norm          2.1261        1.8905        .52911E-07   -.77478E-07
   4  Prefactor     .10000E-03    72.280        .18325E-06** at limit **
   5  Prefactor     8.2502        10.444       -.36126E-06   -.86651E-05
   6  Prefactor     .10000E-03    13.014       -.20811E-06** at limit **
   7  Prefactor     13.449        35.880        .61278E-05   -.20291E-05
   8  Prefactor     .10000E-03    9.6059       -.40298E-06** at limit **
   9  norm          47.752        10.413        .73149E-07   -.41753E-06
  10  Prefactor     .10000E-03    7.1598        .48369E-07** at limit **
  11  Prefactor     .10000E-03    135.42        .58480E-06** at limit **
  12  Prefactor     2.8181        8.9454        .41928E-05   -.38285E-05
  13  Prefactor     .10000E-03    2.8318        .33648E-07** at limit **
  14  Prefactor     .10000E-03    130.28       -.29195E-05** at limit **
  15  norm          .10000E-03    3.2210        .43825E-07** at limit **
  16  Prefactor     3.7320        3.7677        .81897E-07   -.30271E-06
  17  Prefactor     .10000E-03    140.37       -.38363E-06** at limit **
  18  Prefactor     3.6067        4.9479        .87443E-07   -.30533E-05
  19  Prefactor     .10000E-03    39.539       -.18200E-07** at limit **
  20  Prefactor     11.247        15.147       -.44413E-06   -.99023E-05
  21  Prefactor     76.085        104.30        .55732E-05    .17657E-05
  22  Prefactor     10.491        9.6004       -.26712E-07   -.26117E-05
  23  Prefactor     .10000E-03    13.899        .20808E-06** at limit **
  24  Prefactor     21.192        18.916        .14379E-06   -.19042E-05
  25  Normalizat    1.5929        .22739       -.61863E-06    .27933E-04
  26  Prefactor     .55888        .16040       -.78979E-06   -.16117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.3834
  norm       = 2.12612
  Prefactor  = 0.0001
  Prefactor  = 8.25022
  Prefactor  = 0.0001
  Prefactor  = 13.4489
  Prefactor  = 0.0001
  norm       = 47.752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.81809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.73203
  Prefactor  = 0.0001
  Prefactor  = 3.60669
  Prefactor  = 0.0001
  Prefactor  = 11.2473
  Prefactor  = 76.0847
  Prefactor  = 10.491
  Prefactor  = 0.0001
  Prefactor  = 21.1915
  Normalizat = 1.59286
  Prefactor  = 0.55888
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.063     FROM HESSE     STATUS=OK           458 CALLS     3569 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.383        26.895        .84687E-04   -1.4761    
   3  norm          2.1261        1.8870        .89122E-04   -1.5416    
   4  Prefactor     .10000E-03    72.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2502        10.461        .13950E-03   -1.5133    
   6  Prefactor     .10000E-03    13.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.449        35.907        .10884E-03   -1.4974    
   8  Prefactor     .10000E-03    9.9860        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          47.752        10.410        .58026E-04   -1.4325    
  10  Prefactor     .10000E-03    7.1885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    139.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8181        8.9627        .12100E-02   -1.5372    
  13  Prefactor     .10000E-03    2.8881        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    130.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2232        .12446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7320        3.7645        .13385E-03   -1.5322    
  17  Prefactor     .10000E-03    141.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6067        4.9389        .17872E-03   -1.5328    
  19  Prefactor     .10000E-03    39.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.247        15.183        .11947E-03   -1.5037    
  21  Prefactor     76.085        104.30        .23010E-03   -1.3961    
  22  Prefactor     10.491        9.6040        .12369E-03   -1.5060    
  23  Prefactor     .10000E-03    13.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.192        18.930        .87003E-04   -1.4787    
  25  Normalizat    1.5929        .26806        .23889E-03   -.75201    
  26  Prefactor     .55888        .18688        .27728E-03   -1.0935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93421e-10
Minuit parameter uncertainties:
  1  1.03468e-05
  2  26.9097
  3  1.88703
  4  0.000313734
  5  10.463
  6  5.26127e-06
  7  35.9647
  8  6.34678e-05
  9  10.4103
  10  4.41759e-06
  11  0.000139827
  12  8.96697
  13  3.0892e-06
  14  1.33563e-05
  15  7.37364e-07
  16  3.76476
  17  0.00013501
  18  4.9395
  19  4.8066e-06
  20  15.1885
  21  104.548
  22  9.60543
  23  7.99803e-08
  24  18.9355
  25  0.268299
  26  0.187088
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.818e+00  8.967e+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:  5.589e-01  1.871e-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.593e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149464/likelihoodResults_532224001_532483201_4FGL_J2203.3-5009_daily_bin1130.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) = 5042.0104493
delta logL = 0.0525190546277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5042.00787987
delta logL = 0.0550884848344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5286       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1972       1.0000          .0000       10.000    
     3 'Normalizat'    1.5985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55359       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=   5042.008     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      321 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5296        10.656        .18918E-03   -.19951E-04
   2  Index         2.1972        1.2885        .16043E-01   -.79958E-04
   3  Normalizat    1.5984        .25484        .23853E-03   -.52790E-04
   4  Prefactor     .55368        .18572        .27847E-03   -.65934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52964
  Index      = 2.19721
  Normalizat = 1.59842
  Prefactor  = 0.553678
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.008     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5296        10.621        .75672E-05   -1.5282    
   2  Index         2.1972        1.2854        .32086E-02   -.59506    
   3  Normalizat    1.5984        .25502        .47705E-04   -.75049    
   4  Prefactor     .55368        .18581        .11139E-04   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29063e-12
Minuit parameter uncertainties:
  1  10.625
  2  1.30702
  3  0.255226
  4  0.186013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149464': 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) = 5042.00787969
delta logL = 0.0550886626725

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  4.530e+00  1.063e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.197e+00  1.307e+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:  5.537e-01  1.860e-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.598e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/149464/cmap_HighResolution_532224001_532483201_4FGL_J2203.3-5009_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-28 03:17:23.213180', job_id='149464', GAL2='0.55', fit_tolerance='1e-08', EG2='1.60', EG='1.59', time_epoch_completed='1632824243.21', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='5.51e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1130' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:17:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 149464: <4FGL_J2203.3-5009_daily_bin1130> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1130> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:41 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:42 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:42 2021
Terminated at Tue Sep 28 03:17:24 2021
Results reported at Tue Sep 28 03:17:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1130 330.832 -50.1512 532224001 532483201 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 :                                   651.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

