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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1081
RA = 330.832, Dec = -50.1512
tmin = 519523201, tmax = 519782401
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='149386', job_status='RUN', time_executed='2021-09-28 03:06:21.387573', time_epoch_executed='1632823581.39' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149386

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149386/ft1_4FGL_J2203.3-5009_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149386/ft2_4FGL_J2203.3-5009_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149386/ft1_4FGL_J2203.3-5009_daily_bin1081.fits outfile=/scratch/kocevski/149386/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1081.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.97
user 2.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149386/ft1_filtered_4FGL_J2203.3-5009_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/149386/ft2_4FGL_J2203.3-5009_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/149386/ltcube_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.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/149386/ft2_4FGL_J2203.3-5009_daily_bin1081.fits
.....................!
real 9.78
user 9.31
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149386/ft1_filtered_4FGL_J2203.3-5009_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/149386/ft2_4FGL_J2203.3-5009_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/149386/ltcube_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.fits outfile=/scratch/kocevski/149386/expmap_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.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/149386/ltcube_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.fits
.....................!
real 192.80
user 187.61
sys 4.75

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/149386/ft1_filtered_4FGL_J2203.3-5009_daily_bin1081.fits scfile=/scratch/kocevski/149386/ft2_4FGL_J2203.3-5009_daily_bin1081.fits outfile=/scratch/kocevski/149386/cmap_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.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/149386/ft1_filtered_4FGL_J2203.3-5009_daily_bin1081.fits scfile=/scratch/kocevski/149386/ft2_4FGL_J2203.3-5009_daily_bin1081.fits outfile=/scratch/kocevski/149386/cmap_HighResolution_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.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/149386/ft1_filtered_4FGL_J2203.3-5009_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/149386/ft2_4FGL_J2203.3-5009_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149386/Model_4FGL_J2203.3-5009_daily_bin1081.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/149386/ft1_filtered_4FGL_J2203.3-5009_daily_bin1081.fits.....................!
real 37.36
user 36.07
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58513E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3529       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8917       1.0000         .10000E-03   10000.    
     9 'norm      '    23.867       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.694       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29326E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.670       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4504       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.356       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.991       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74108       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88458       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=   4465.766     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3096 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    2.5911        .34425E-06** at limit **
   2  Prefactor     .10000E-03    9.0583        .19995E-06** at limit **
   3  norm          1.3529        1.6997       -.51049E-07   -.16977E-03
   4  Prefactor     .10000E-03    70.712        .15668E-05** at limit **
   5  Prefactor     1.2175        6.9740       -.95188E-05   -.79669E-03
   6  Prefactor     19.531        31.130        .73441E-05    .50571E-04
   7  Prefactor     25.489        27.898        .39455E-05    .13043E-04
   8  Prefactor     6.8916        5.7916       -.79394E-06    .30624E-04
   9  norm          23.866        7.8808       -.43184E-06    .15549E-03
  10  Prefactor     .10000E-03    4.8693       -.20908E-06** at limit **
  11  Prefactor     65.695        45.832        .10335E-05    .17034E-03
  12  Prefactor     9.8511        9.5801       -.67786E-06   -.68257E-03
  13  Prefactor     2.2205        3.3492        .15055E-06   -.24520E-04
  14  Prefactor     .10002E-03    515.91       -.15792E-03** at limit **
  15  norm          .10000E-03    9.6744       -.21790E-05** at limit **
  16  Prefactor     .10000E-03    1.3375        .78166E-07** at limit **
  17  Prefactor     27.664        49.389       -.68513E-05    .50566E-05
  18  Prefactor     1.4501        3.4271       -.26100E-05   -.45900E-03
  19  Prefactor     .10000E-03    26.378       -.22997E-05** at limit **
  20  Prefactor     21.354        13.709        .92468E-07    .14259E-03
  21  Prefactor     .10000E-03    37.630        .12953E-05** at limit **
  22  Prefactor     .10000E-03    3.9157       -.24557E-07** at limit **
  23  Prefactor     12.990        19.853       -.25628E-06   -.89493E-04
  24  Prefactor     .10000E-03    9.6964        .21838E-05** at limit **
  25  Normalizat    .74108        .19434        .12566E-05    .28945E-03
  26  Prefactor     .88460        .14948        .42935E-06    .34732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  norm       = 1.35291
  Prefactor  = 0.0001
  Prefactor  = 1.2175
  Prefactor  = 19.5312
  Prefactor  = 25.489
  Prefactor  = 6.89156
  norm       = 23.8664
  Prefactor  = 0.0001
  Prefactor  = 65.6947
  Prefactor  = 9.85109
  Prefactor  = 2.2205
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6643
  Prefactor  = 1.45014
  Prefactor  = 0.0001
  Prefactor  = 21.3543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9903
  Prefactor  = 0.0001
  Normalizat = 0.741082
  Prefactor  = 0.884604
 **********
 **   18 **HESSE 
 **********

 FCN=   4465.766     FROM HESSE     STATUS=OK           456 CALLS     3552 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    18.681        .20751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3529        1.6768        .94630E-04   -1.5475    
   4  Prefactor     .10000E-03    70.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2175        7.5548        .35021E-03   -1.5487    
   6  Prefactor     19.531        31.109        .90649E-04   -1.4824    
   7  Prefactor     25.489        27.831        .79357E-04   -1.4698    
   8  Prefactor     6.8916        5.7793        .13819E-03   -1.5183    
   9  norm          23.866        7.8770        .81993E-04   -1.4731    
  10  Prefactor     .10000E-03    4.8781        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.695        45.920        .49516E-04   -1.4085    
  12  Prefactor     9.8511        9.5821        .63831E-03   -1.5080    
  13  Prefactor     2.2205        3.3265        .14364E-03   -1.5410    
  14  Prefactor     .10002E-03    488.89        .21399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.9917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3475        .75442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.664        49.445        .76161E-04   -1.4656    
  18  Prefactor     1.4501        3.3971        .18469E-03   -1.5467    
  19  Prefactor     .10000E-03    26.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.354        13.735        .86673E-04   -1.4783    
  21  Prefactor     .10000E-03    37.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9361        .12913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.990        19.853        .55567E-03   -1.4987    
  24  Prefactor     .10000E-03    9.7160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .74108        .22513        .27144E-03   -1.0229    
  26  Prefactor     .88460        .17340        .19864E-03   -.96681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68328e-09
Minuit parameter uncertainties:
  1  0.00185584
  2  8.2418e-06
  3  1.67682
  4  0.000236815
  5  6.06651
  6  31.1351
  7  27.8453
  8  5.77978
  9  7.87733
  10  6.97348e-06
  11  45.9443
  12  9.58355
  13  3.32675
  14  0.00574762
  15  2.67988e-05
  16  4.25501e-06
  17  49.5183
  18  3.3975
  19  5.91658e-05
  20  13.7367
  21  2.06447e-07
  22  4.79809e-06
  23  19.8631
  24  6.09935e-06
  25  0.225414
  26  0.173511
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  9.851e+00  9.584e+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:  8.846e-01  1.735e-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:  7.411e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/149386/likelihoodResults_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.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) = 4465.3115364
delta logL = 0.454936055541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4465.29376747
delta logL = 0.472704983195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3866       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0275       1.0000          .0000       10.000    
     3 'Normalizat'    .70605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90428       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=   4465.294     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      249 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3627        54.026        .54966E-02    .77417E-03
   2  Index         4.0333        6.8916        .16723        .12639E-03
   3  Normalizat    .70547        .65452E-01    .62678E-01    .31381E-03
   4  Prefactor     .90473        .51436E-01    .45060E-01    .66104E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36268
  Index      = 4.03325
  Normalizat = 0.70547
  Prefactor  = 0.904727
 **********
 **   18 **HESSE 
 **********

 FCN=   4465.294     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3627        89.209        .87185E-04   -1.5341    
   2  Index         4.0333        6.9478        .62663E-02   -.19458    
   3  Normalizat    .70547        .22173        .27728E-03   -1.0368    
   4  Prefactor     .90473        .17928        .19661E-03   -.95976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1425e-10
Minuit parameter uncertainties:
  1  34.6969
  2  7.9052
  3  0.22201
  4  0.1794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149386': 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) = 4465.29375901
delta logL = 0.472713439034

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.363e+00  3.470e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.033e+00  7.905e+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.047e-01  1.794e-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:  7.055e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 4.03 +/- 7.91
Photon Flux (Free Index): 7.77e-08 +/- 5.86e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.78e-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/149386/cmap_HighResolution_519523201_519782401_4FGL_J2203.3-5009_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='1.16e-05', photon_flux_error='4.71e-08', dlogl='4.73e-01', energy_flux='1.13e-05', photon_flux2='7.77e-08', job_status='DONE', time_completed='2021-09-28 03:16:26.353481', photon_index_error2='7.91', photon_index2='4.03', ts='1.60', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.78e-05', EG='0.74', time_epoch_completed='1632824186.35', return_code='0', job_id='149386', GAL2='0.90', EG2='0.71', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='5.86e-08', ts2='2.63', photon_index='2.74' WHERE bin_id='1081' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:16:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 149386: <4FGL_J2203.3-5009_daily_bin1081> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1081> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:34 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:36 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:36 2021
Terminated at Tue Sep 28 03:16:27 2021
Results reported at Tue Sep 28 03:16:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1081 330.832 -50.1512 519523201 519782401 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 :                                   601.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            653 sec.

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

