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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1136
RA = 330.832, Dec = -50.1512
tmin = 533779201, tmax = 534038401
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='149473', job_status='RUN', time_executed='2021-09-28 03:06:09.480343', time_epoch_executed='1632823569.48' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149473/ft1_4FGL_J2203.3-5009_daily_bin1136.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149473/ft2_4FGL_J2203.3-5009_daily_bin1136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149473/ft1_4FGL_J2203.3-5009_daily_bin1136.fits outfile=/scratch/kocevski/149473/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1136.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=533779201.0 tmax=534038401.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.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149473/ft2_4FGL_J2203.3-5009_daily_bin1136.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/149473/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1136.fits evtable="EVENTS" outfile="/scratch/kocevski/149473/ft1_filtered_4FGL_J2203.3-5009_daily_bin1136.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149473/ft1_filtered_4FGL_J2203.3-5009_daily_bin1136.fits" evtable="EVENTS" scfile=/scratch/kocevski/149473/ft2_4FGL_J2203.3-5009_daily_bin1136.fits sctable="SC_DATA" outfile=/scratch/kocevski/149473/ltcube_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.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/149473/ft2_4FGL_J2203.3-5009_daily_bin1136.fits
.....................!
real 11.92
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149473/ft1_filtered_4FGL_J2203.3-5009_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/149473/ft2_4FGL_J2203.3-5009_daily_bin1136.fits sctable="SC_DATA" expcube=/scratch/kocevski/149473/ltcube_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.fits outfile=/scratch/kocevski/149473/expmap_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.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/149473/ltcube_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.fits
.....................!
real 192.56
user 186.66
sys 5.54

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/149473/ft1_filtered_4FGL_J2203.3-5009_daily_bin1136.fits scfile=/scratch/kocevski/149473/ft2_4FGL_J2203.3-5009_daily_bin1136.fits outfile=/scratch/kocevski/149473/cmap_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149473/ft1_filtered_4FGL_J2203.3-5009_daily_bin1136.fits scfile=/scratch/kocevski/149473/ft2_4FGL_J2203.3-5009_daily_bin1136.fits outfile=/scratch/kocevski/149473/cmap_HighResolution_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.095       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9020       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3461       1.0000         .10000E-03   10000.    
     9 'norm      '    31.170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.316       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7035       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.948       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6966       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.248       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.624       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2906       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1880       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83926       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97536       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=   7901.657     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3063 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3115       -.22233E-07** at limit **
   2  Prefactor     .10000E-03    6.7721       -.13774E-06** at limit **
   3  norm          3.9992        1.8242        .78898E-08    .21286E-05
   4  Prefactor     77.929        49.876        .46719E-06    .13941E-05
   5  Prefactor     3.5544        6.4264        .14207E-06    .40920E-05
   6  Prefactor     33.095        29.814        .34650E-06   -.10865E-06
   7  Prefactor     6.8994        16.519       -.22511E-06    .15518E-05
   8  Prefactor     1.3455        2.2170        .47457E-07    .17677E-04
   9  norm          31.170        6.9007        .91435E-08    .33042E-05
  10  Prefactor     7.5317        5.6221        .10115E-07    .27390E-06
  11  Prefactor     18.241        34.429       -.33061E-05    .13986E-04
  12  Prefactor     .10000E-03    5.5956       -.97894E-06** at limit **
  13  Prefactor     2.7037        2.4272       -.10109E-06   -.21748E-04
  14  Prefactor     32.778        72.058        .13053E-04    .10903E-05
  15  norm          3.1633        3.2645        .33047E-07   -.14386E-04
  16  Prefactor     1.6953        2.7009        .11391E-06    .99497E-05
  17  Prefactor     26.239        31.653        .73947E-07   -.10504E-05
  18  Prefactor     11.622        5.2514        .13078E-07    .96444E-05
  19  Prefactor     4.2850        21.592       -.12706E-05   -.11889E-04
  20  Prefactor     .10000E-03    5.7032        .52554E-06** at limit **
  21  Prefactor     .10000E-03    24.275        .21089E-07** at limit **
  22  Prefactor     2.1876        4.3970        .17928E-05   -.31772E-04
  23  Prefactor     .10000E-03    7.4206        .78720E-07** at limit **
  24  Prefactor     .10000E-03    3.1406        .41733E-09** at limit **
  25  Normalizat    .83971        .16983       -.68842E-06    .24674E-04
  26  Prefactor     .97504        .12965        .20310E-06    .18563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99917
  Prefactor  = 77.9288
  Prefactor  = 3.55439
  Prefactor  = 33.0945
  Prefactor  = 6.89935
  Prefactor  = 1.34546
  norm       = 31.1697
  Prefactor  = 7.53174
  Prefactor  = 18.2414
  Prefactor  = 0.0001
  Prefactor  = 2.70374
  Prefactor  = 32.7779
  norm       = 3.16332
  Prefactor  = 1.69534
  Prefactor  = 26.2389
  Prefactor  = 11.6222
  Prefactor  = 4.28504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.18758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.839714
  Prefactor  = 0.975043
 **********
 **   18 **HESSE 
 **********

 FCN=   7901.657     FROM HESSE     STATUS=OK           464 CALLS     3527 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4149        .26379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9992        1.8234        .78369E-04   -1.5308    
   4  Prefactor     77.929        49.883        .45488E-04   -1.3940    
   5  Prefactor     3.5544        6.4087        .21439E-03   -1.5331    
   6  Prefactor     33.095        29.797        .69654E-04   -1.4557    
   7  Prefactor     6.8994        16.496        .15271E-03   -1.5183    
   8  Prefactor     1.3455        2.1764        .16382E-03   -1.5476    
   9  norm          31.170        6.9014        .71767E-04   -1.4591    
  10  Prefactor     7.5317        5.6223        .14613E-03   -1.5159    
  11  Prefactor     18.241        34.356        .93585E-04   -1.4854    
  12  Prefactor     .10000E-03    5.6730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7037        2.4210        .12616E-03   -1.5379    
  14  Prefactor     32.778        72.189        .69810E-04   -1.4562    
  15  norm          3.1633        3.2713        .15918E-03   -1.5352    
  16  Prefactor     1.6953        2.6747        .17420E-03   -1.5448    
  17  Prefactor     26.239        31.620        .78193E-04   -1.4683    
  18  Prefactor     11.622        5.2469        .11750E-03   -1.5026    
  19  Prefactor     4.2850        21.546        .19450E-03   -1.5294    
  20  Prefactor     .10000E-03    5.7390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1876        4.4016        .12895E-02   -1.5412    
  23  Prefactor     .10000E-03    7.4216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.1429        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .83971        .19744        .27779E-03   -.98612    
  26  Prefactor     .97504        .15198        .20876E-03   -.93566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54621e-10
Minuit parameter uncertainties:
  1  5.04566e-07
  2  2.94058e-07
  3  1.82343
  4  49.91
  5  6.40998
  6  29.8103
  7  16.5073
  8  2.17649
  9  6.90157
  10  5.62274
  11  34.3936
  12  3.96434e-05
  13  2.42104
  14  72.3824
  15  3.27151
  16  2.67492
  17  31.6397
  18  5.24711
  19  19.2281
  20  1.01156e-05
  21  3.77975e-06
  22  4.40224
  23  7.08372e-07
  24  3.66167e-07
  25  0.197613
  26  0.152051
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.750e-01  1.521e-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:  8.397e-01  1.976e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149473/likelihoodResults_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.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) = 7901.6579049
delta logL = -0.000840527548462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7901.65706435
delta logL = 1.47538230522e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7579       1.0000          .0000       10.000    
     3 'Normalizat'    .83974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97504       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=   7901.650     FROM MIGRAD    STATUS=CONVERGED    170 CALLS      319 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10948E-01    .68209        .10860E-01   -.41365E-02
   2  Index         5.9920        7.4008        .50000        .16342E-04
   3  Normalizat    .83470        .14925E-01    .27780E-03    .47473E-05
   4  Prefactor     .97752        .12055E-01    .20876E-03    .31585E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0109478
  Index      = 5.99198
  Normalizat = 0.834701
  Prefactor  = 0.977521
 **********
 **   18 **HESSE 
 **********

 FCN=   7901.650     FROM HESSE     STATUS=OK            31 CALLS      350 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10948E-01    .56720        .38465E-03   -1.5729    
   2  Index         5.9920        7.9784        .24823E-01    .19972    
   3  Normalizat    .83470        .18722        .11112E-04   -.98794    
   4  Prefactor     .97752        .14903        .83505E-05   -.93483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88475e-08
Minuit parameter uncertainties:
  1  0.156883
  2  9.25858
  3  0.187361
  4  0.149091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149473': 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) = 7901.65006801
delta logL = 0.00699635617457

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.095e-02  1.569e-01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  5.992e+00  9.259e+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.775e-01  1.491e-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:  8.347e-01  1.874e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149473/cmap_HighResolution_533779201_534038401_4FGL_J2203.3-5009_daily_bin1136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-28 03:20:21.472620', job_id='149473', GAL2='0.98', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1632824421.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.00e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1136' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:20:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 149473: <4FGL_J2203.3-5009_daily_bin1136> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1136 330.832 -50.1512 533779201 534038401 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 :                                   849.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

