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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1366
RA = 330.832, Dec = -50.1512
tmin = 593395201, tmax = 593654401
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='150845', job_status='RUN', time_executed='2021-09-28 03:11:07.969405', time_epoch_executed='1632823867.97' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150845

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150845/ft1_4FGL_J2203.3-5009_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150845/ft2_4FGL_J2203.3-5009_daily_bin1366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150845/ft1_4FGL_J2203.3-5009_daily_bin1366.fits outfile=/scratch/kocevski/150845/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1366.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=593395201.0 tmax=593654401.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 4.13
user 3.88
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150845/ft1_filtered_4FGL_J2203.3-5009_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/150845/ft2_4FGL_J2203.3-5009_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/150845/ltcube_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.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/150845/ft2_4FGL_J2203.3-5009_daily_bin1366.fits
.....................!
real 11.76
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150845/ft1_filtered_4FGL_J2203.3-5009_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/150845/ft2_4FGL_J2203.3-5009_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/150845/ltcube_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.fits outfile=/scratch/kocevski/150845/expmap_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.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/150845/ltcube_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.fits
.....................!
real 191.24
user 185.33
sys 5.44

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/150845/ft1_filtered_4FGL_J2203.3-5009_daily_bin1366.fits scfile=/scratch/kocevski/150845/ft2_4FGL_J2203.3-5009_daily_bin1366.fits outfile=/scratch/kocevski/150845/cmap_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150845/ft1_filtered_4FGL_J2203.3-5009_daily_bin1366.fits scfile=/scratch/kocevski/150845/ft2_4FGL_J2203.3-5009_daily_bin1366.fits outfile=/scratch/kocevski/150845/cmap_HighResolution_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150845/ft1_filtered_4FGL_J2203.3-5009_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/150845/ft2_4FGL_J2203.3-5009_daily_bin1366.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150845/Model_4FGL_J2203.3-5009_daily_bin1366.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/150845/ft1_filtered_4FGL_J2203.3-5009_daily_bin1366.fits.....................!
real 64.22
user 62.85
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.035       1.0000         .10000E-03   10000.    
     3 'norm      '    27.631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.842       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.835       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.961       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2055       1.0000         .10000E-03   10000.    
     9 'norm      '    23.484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9239       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4543       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62828E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9382       1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.704       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2670       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.959       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68737       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1219       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=   9179.298     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3102 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4083        3.1460        .70929E-05   -.53443E-03
   2  Prefactor     26.036        19.929       -.11185E-05    .43166E-04
   3  norm          27.631        3.5686       -.19765E-07   -.17870E-04
   4  Prefactor     .10000E-03    15.822       -.19447E-05** at limit **
   5  Prefactor     15.843        7.3211        .10557E-06    .20597E-04
   6  Prefactor     18.835        28.538        .41493E-06    .10734E-05
   7  Prefactor     27.962        24.113       -.58600E-07    .58444E-04
   8  Prefactor     2.2053        3.4133        .30907E-06    .37976E-04
   9  norm          23.484        6.3628        .14128E-07   -.49027E-05
  10  Prefactor     .10000E-03    2.4567        .19245E-07** at limit **
  11  Prefactor     8.9236        20.323        .39788E-06    .31036E-04
  12  Prefactor     .10000E-03    1.4125        .12735E-07** at limit **
  13  Prefactor     7.4229        3.5400        .14415E-06    .49511E-03
  14  Prefactor     .10000E-03    15.031        .21895E-05** at limit **
  15  norm          2.4542        3.1554        .28968E-07    .11664E-03
  16  Prefactor     3.6291        3.2766        .15887E-05   -.21284E-04
  17  Prefactor     .10000E-03    11.506       -.30374E-06** at limit **
  18  Prefactor     .10000E-03    1.8962       -.16933E-07** at limit **
  19  Prefactor     .10005E-03    15.530       -.35609E-05** at limit **
  20  Prefactor     7.9376        9.6988        .43830E-06    .12249E-02
  21  Prefactor     48.614        82.188        .15916E-04    .25622E-03
  22  Prefactor     1.2672        3.1547        .42870E-06    .68990E-04
  23  Prefactor     30.956        34.417        .10872E-05    .24873E-03
  24  Prefactor     .10000E-03    8.4507       -.10285E-06** at limit **
  25  Normalizat    .68738        .16244       -.59789E-07    .72586E-03
  26  Prefactor     1.1219        .12806       -.11422E-05    .86640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40826
  Prefactor  = 26.0361
  norm       = 27.6308
  Prefactor  = 0.0001
  Prefactor  = 15.8426
  Prefactor  = 18.8352
  Prefactor  = 27.962
  Prefactor  = 2.20535
  norm       = 23.4842
  Prefactor  = 0.0001
  Prefactor  = 8.92362
  Prefactor  = 0.0001
  Prefactor  = 7.42287
  Prefactor  = 0.0001
  norm       = 2.45419
  Prefactor  = 3.62913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  Prefactor  = 7.93755
  Prefactor  = 48.6139
  Prefactor  = 1.26717
  Prefactor  = 30.956
  Prefactor  = 0.0001
  Normalizat = 0.687376
  Prefactor  = 1.12192
 **********
 **   18 **HESSE 
 **********

 FCN=   9179.298     FROM HESSE     STATUS=OK           470 CALLS     3572 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4083        3.1455        .12133E-02   -1.5471    
   2  Prefactor     26.036        19.940        .78511E-04   -1.4687    
   3  norm          27.631        3.5686        .62763E-04   -1.4656    
   4  Prefactor     .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.843        7.3157        .10063E-03   -1.4912    
   6  Prefactor     18.835        28.514        .92288E-04   -1.4840    
   7  Prefactor     27.962        24.105        .75764E-04   -1.4650    
   8  Prefactor     2.2053        3.3941        .20872E-03   -1.5411    
   9  norm          23.484        6.3600        .82657E-04   -1.4738    
  10  Prefactor     .10000E-03    2.4648        .14664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9236        20.316        .13417E-03   -1.5110    
  12  Prefactor     .10000E-03    1.4161        .11118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4229        3.5413        .11862E-03   -1.5163    
  14  Prefactor     .10000E-03    15.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4542        3.1483        .94142E-03   -1.5395    
  16  Prefactor     3.6291        3.2868        .76922E-03   -1.5327    
  17  Prefactor     .10000E-03    11.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9162        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    21.143        .99295E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9376        9.6800        .14231E-03   -1.5144    
  21  Prefactor     48.614        82.452        .28730E-03   -1.4312    
  22  Prefactor     1.2672        3.0891        .26123E-03   -1.5483    
  23  Prefactor     30.956        34.457        .72010E-04   -1.4595    
  24  Prefactor     .10000E-03    8.4950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .68738        .18289        .32397E-03   -1.0439    
  26  Prefactor     1.1219        .14471        .21366E-03   -.88769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68504e-09
Minuit parameter uncertainties:
  1  3.14584
  2  19.9452
  3  3.56865
  4  5.98795e-05
  5  7.31616
  6  28.5344
  7  24.1133
  8  3.39437
  9  6.36014
  10  1.75961e-06
  11  20.3322
  12  5.55781e-07
  13  3.54141
  14  6.6344e-05
  15  3.14854
  16  3.28693
  17  8.3834e-06
  18  2.08934e-06
  19  0.00205301
  20  9.68193
  21  82.646
  22  3.08953
  23  34.4793
  24  2.32023e-05
  25  0.183049
  26  0.144758
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  5.558e-07  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.122e+00  1.448e-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:  6.874e-01  1.830e-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: 3.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150845/likelihoodResults_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.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) = 9179.30135597
delta logL = -0.00331331447342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9179.29804256
delta logL = 1.03489583125e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7293       1.0000          .0000       10.000    
     3 'Normalizat'    .68738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1219       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=   9179.298     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      247 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.260        .11165E-01** at limit **
   2  Index         2.2322        8.3427        .50000        .88039E-07
   3  Normalizat    .68737        .12930E-01    .32397E-03   -.35232E-03
   4  Prefactor     1.1219        .10738E-01    .21366E-03   -.49064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2322
  Normalizat = 0.687372
  Prefactor  = 1.12193
 **********
 **   18 **HESSE 
 **********

 FCN=   9179.298     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    154.43        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2322        8.7263        .50000       -.58663    
   3  Normalizat    .68737        .43640E-01    .12959E-04   -1.0439    
   4  Prefactor     1.1219        .36241E-01    .42731E-04   -.88769    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.17092e-11
Minuit parameter uncertainties:
  1  6.85081e-05
  2  905.252
  3  0.0436418
  4  0.0362416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150845': 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) = 9179.2980388
delta logL = 3.86179635825e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  6.851e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.232e+00  9.053e+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.122e+00  3.624e-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:  6.874e-01  4.364e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/150845/cmap_HighResolution_593395201_593654401_4FGL_J2203.3-5009_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-03', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2021-09-28 03:26:51.295508', job_id='150845', GAL2='1.12', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632824811.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1366' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:26:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 150845: <4FGL_J2203.3-5009_daily_bin1366> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1366> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:29 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:10:31 2021
Terminated at Tue Sep 28 03:26:52 2021
Results reported at Tue Sep 28 03:26:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1366 330.832 -50.1512 593395201 593654401 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 :                                   934.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

