/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 67 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_bin1146
RA = 330.832, Dec = -50.1512
tmin = 536371201, tmax = 536630401
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='149490', job_status='RUN', time_executed='2021-09-28 03:07:00.815805', time_epoch_executed='1632823620.82' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149490/ft1_4FGL_J2203.3-5009_daily_bin1146.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149490/ft2_4FGL_J2203.3-5009_daily_bin1146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149490/ft1_4FGL_J2203.3-5009_daily_bin1146.fits outfile=/scratch/kocevski/149490/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1146.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=536371201.0 tmax=536630401.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.56
user 3.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149490/ft1_filtered_4FGL_J2203.3-5009_daily_bin1146.fits" evtable="EVENTS" scfile=/scratch/kocevski/149490/ft2_4FGL_J2203.3-5009_daily_bin1146.fits sctable="SC_DATA" outfile=/scratch/kocevski/149490/ltcube_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.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/149490/ft2_4FGL_J2203.3-5009_daily_bin1146.fits
.....................!
real 13.80
user 13.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149490/ft1_filtered_4FGL_J2203.3-5009_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/149490/ft2_4FGL_J2203.3-5009_daily_bin1146.fits sctable="SC_DATA" expcube=/scratch/kocevski/149490/ltcube_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.fits outfile=/scratch/kocevski/149490/expmap_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.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/149490/ltcube_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.fits
.....................!
real 191.40
user 186.19
sys 4.86

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/149490/ft1_filtered_4FGL_J2203.3-5009_daily_bin1146.fits scfile=/scratch/kocevski/149490/ft2_4FGL_J2203.3-5009_daily_bin1146.fits outfile=/scratch/kocevski/149490/cmap_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149490/ft1_filtered_4FGL_J2203.3-5009_daily_bin1146.fits scfile=/scratch/kocevski/149490/ft2_4FGL_J2203.3-5009_daily_bin1146.fits outfile=/scratch/kocevski/149490/cmap_HighResolution_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149490/ft1_filtered_4FGL_J2203.3-5009_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/149490/ft2_4FGL_J2203.3-5009_daily_bin1146.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149490/Model_4FGL_J2203.3-5009_daily_bin1146.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/149490/ft1_filtered_4FGL_J2203.3-5009_daily_bin1146.fits.....................!
real 44.83
user 43.43
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41300E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3842       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.215       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5943       1.0000         .10000E-03   10000.    
     9 'norm      '    12.299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.360       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13604E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.409       1.0000         .10000E-03   10000.    
    15 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.150       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28516E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.043       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.423       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2824       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1623       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86923       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=   5457.678     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3160 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2.2791        .34383E-06** at limit **
   2  Prefactor     .10023E-03    16.576        .27724E-05** at limit **
   3  norm          1.7309        1.8190        .24141E-06   -.36848E-03
   4  Prefactor     .10000E-03    15.269       -.55732E-06** at limit **
   5  Prefactor     5.3795        9.5165       -.58045E-07   -.16791E-03
   6  Prefactor     .10000E-03    44.240        .13597E-05** at limit **
   7  Prefactor     20.212        20.293        .10448E-05    .75342E-04
   8  Prefactor     2.5941        3.7841        .21619E-06   -.18793E-03
   9  norm          12.299        5.7935        .46209E-06   -.31763E-04
  10  Prefactor     .10000E-03    16.133        .11451E-05** at limit **
  11  Prefactor     14.372        28.283       -.32119E-05    .35730E-04
  12  Prefactor     10.995        10.312       -.14676E-04    .53280E-03
  13  Prefactor     .10049E-03    2.3369       -.44909E-05** at limit **
  14  Prefactor     50.637        121.06        .26906E-03    .14249E-03
  15  norm          .10000E-03    9.1615       -.10750E-05** at limit **
  16  Prefactor     19.148        6.8966        .40779E-06   -.62530E-04
  17  Prefactor     .10000E-03    290.65        .10737E-04** at limit **
  18  Prefactor     .10000E-03    3.0668       -.30592E-06** at limit **
  19  Prefactor     .10002E-03    90.299        .66691E-05** at limit **
  20  Prefactor     18.044        14.861       -.17964E-05    .18476E-03
  21  Prefactor     .10000E-03    58.302        .94962E-05** at limit **
  22  Prefactor     15.422        10.372       -.27573E-06   -.22591E-04
  23  Prefactor     .10000E-03    12.404        .17873E-06** at limit **
  24  Prefactor     2.2797        15.996       -.22740E-05   -.14335E-03
  25  Normalizat    1.1626        .21362       -.29630E-05    .65436E-03
  26  Prefactor     .86921        .15314       -.35275E-05    .52177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Prefactor  = 0.000100233
  norm       = 1.73095
  Prefactor  = 0.0001
  Prefactor  = 5.37953
  Prefactor  = 0.0001
  Prefactor  = 20.2121
  Prefactor  = 2.59407
  norm       = 12.2991
  Prefactor  = 0.0001
  Prefactor  = 14.3719
  Prefactor  = 10.9946
  Prefactor  = 0.000100492
  Prefactor  = 50.6369
  norm       = 0.000100001
  Prefactor  = 19.1478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 18.0438
  Prefactor  = 0.0001
  Prefactor  = 15.4218
  Prefactor  = 0.0001
  Prefactor  = 2.27966
  Normalizat = 1.16263
  Prefactor  = 0.869209
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.678     FROM HESSE     STATUS=OK           476 CALLS     3636 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    20.482        .21141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10023E-03    21.166        .88784E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7309        1.8076        .98430E-04   -1.5445    
   4  Prefactor     .10000E-03    15.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3795        9.4971        .17319E-03   -1.5244    
   6  Prefactor     .10000E-03    44.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.212        20.290        .89083E-04   -1.4809    
   8  Prefactor     2.5941        3.7655        .16618E-03   -1.5386    
   9  norm          12.299        5.7923        .11422E-03   -1.5006    
  10  Prefactor     .10000E-03    16.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.372        28.287        .10570E-03   -1.4950    
  12  Prefactor     10.995        10.297        .12084E-03   -1.5045    
  13  Prefactor     .10049E-03    5.9563        .36345E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     50.637        121.21        .28242E-03   -1.4284    
  15  norm          .10000E-03    9.4135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.148        6.9194        .91525E-04   -1.4833    
  17  Prefactor     .10000E-03    299.75        .42822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0812        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    91.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.044        14.887        .94290E-04   -1.4858    
  21  Prefactor     .10000E-03    58.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.422        10.372        .10199E-03   -1.4922    
  23  Prefactor     .10000E-03    12.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.2797        15.971        .27176E-03   -1.5406    
  25  Normalizat    1.1626        .25190        .26640E-03   -.87766    
  26  Prefactor     .86921        .17974        .22652E-03   -.97225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.199e-09
Minuit parameter uncertainties:
  1  0.00133499
  2  0.00444114
  3  1.8077
  4  1.54297e-05
  5  9.49972
  6  0.000205873
  7  20.2969
  8  3.7658
  9  5.79259
  10  9.53008e-05
  11  28.3138
  12  10.2985
  13  0.00342352
  14  121.804
  15  0.000234152
  16  6.91965
  17  0.000709237
  18  5.37142e-05
  19  0.00236582
  20  14.8899
  21  3.97433e-05
  22  10.3736
  23  6.8415e-07
  24  12.0723
  25  0.252162
  26  0.179863
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.099e+01  1.030e+01  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:  8.692e-01  1.799e-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.163e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/149490/likelihoodResults_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.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) = 5457.36500409
delta logL = 0.313466868623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5457.34113081
delta logL = 0.337340155456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.457       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9888       1.0000          .0000       10.000    
     3 'Normalizat'    1.1957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84967       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5457.341     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.476        11.727        .27297E-02    .48934E-03
   2  Index         1.9898        .57015        .19092       -.68191E-04
   3  Normalizat    1.1953        .20236        .59517E-01    .12774E-03
   4  Prefactor     .84998        .15119        .44360E-01    .26259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4763
  Index      = 1.98981
  Normalizat = 1.19529
  Prefactor  = 0.849979
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.341     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.476        11.642        .54595E-03   -1.4974    
   2  Index         1.9898        .69757        .97976E-02   -.64605    
   3  Normalizat    1.1953        .23734        .26322E-03   -.86748    
   4  Prefactor     .84998        .17685        .22865E-03   -.97912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81002e-11
Minuit parameter uncertainties:
  1  11.6437
  2  0.701174
  3  0.237555
  4  0.17697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149490': 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) = 5457.34112757
delta logL = 0.337343390864

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.348e+01  1.164e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.990e+00  7.012e-01  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:  8.500e-01  1.770e-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.195e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 1.99 +/- 0.70
Photon Flux (Free Index): 3.44e-08 +/- 3.67e-08
Energy Flux (Free Index): 2.44e-05 +/- 3.32e-05

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/149490/cmap_HighResolution_536371201_536630401_4FGL_J2203.3-5009_daily_bin1146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='2.44e-05', photon_flux_error='5.06e-08', dlogl='3.37e-01', energy_flux='1.26e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-09-28 03:18:21.741470', photon_index_error2='0.70', photon_index2='1.99', ts='2.21', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='3.32e-05', EG='1.16', time_epoch_completed='1632824301.74', return_code='0', job_id='149490', GAL2='0.85', EG2='1.20', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.67e-08', ts2='2.88', photon_index='2.74' WHERE bin_id='1146' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:18:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 149490: <4FGL_J2203.3-5009_daily_bin1146> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1146 330.832 -50.1512 536371201 536630401 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            759 sec.

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

