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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin560
RA = 330.832, Dec = -50.1512
tmin = 384480001, tmax = 384739201
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='146455', job_status='RUN', time_executed='2021-09-28 02:57:51.059748', time_epoch_executed='1632823071.06' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146455/ft1_4FGL_J2203.3-5009_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146455/ft2_4FGL_J2203.3-5009_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146455/ft1_4FGL_J2203.3-5009_daily_bin560.fits outfile=/scratch/kocevski/146455/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin560.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=384480001.0 tmax=384739201.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.93
user 3.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146455/ft2_4FGL_J2203.3-5009_daily_bin560.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/146455/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin560.fits evtable="EVENTS" outfile="/scratch/kocevski/146455/ft1_filtered_4FGL_J2203.3-5009_daily_bin560.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/146455/ft1_filtered_4FGL_J2203.3-5009_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/146455/ft2_4FGL_J2203.3-5009_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/146455/ltcube_384480001_384739201_4FGL_J2203.3-5009_daily_bin560.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/146455/ft2_4FGL_J2203.3-5009_daily_bin560.fits
.....................!
real 11.79
user 11.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146455/ft1_filtered_4FGL_J2203.3-5009_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/146455/ft2_4FGL_J2203.3-5009_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/146455/ltcube_384480001_384739201_4FGL_J2203.3-5009_daily_bin560.fits outfile=/scratch/kocevski/146455/expmap_384480001_384739201_4FGL_J2203.3-5009_daily_bin560.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/146455/ltcube_384480001_384739201_4FGL_J2203.3-5009_daily_bin560.fits
.....................!
real 191.53
user 186.42
sys 4.79

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/146455/ft1_filtered_4FGL_J2203.3-5009_daily_bin560.fits scfile=/scratch/kocevski/146455/ft2_4FGL_J2203.3-5009_daily_bin560.fits outfile=/scratch/kocevski/146455/cmap_384480001_384739201_4FGL_J2203.3-5009_daily_bin560.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146455/ft1_filtered_4FGL_J2203.3-5009_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/146455/ft2_4FGL_J2203.3-5009_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146455/Model_4FGL_J2203.3-5009_daily_bin560.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/146455/ft1_filtered_4FGL_J2203.3-5009_daily_bin560.fits.....................!
real 54.91
user 53.58
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1862       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9028       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8854       1.0000         .10000E-03   10000.    
     9 'norm      '    .22456E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2977       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15169E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12517E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6949       1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.984       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2488       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3643       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94121       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=   7077.822     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3082 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3548        .66203E-08** at limit **
   2  Prefactor     .10000E-03    9.3829        .52554E-06** at limit **
   3  norm          7.1862        2.5658        .26738E-07   -.14494E-04
   4  Prefactor     .10000E-03    15.100        .89137E-06** at limit **
   5  Prefactor     3.0926        4.6429        .18427E-06    .51039E-04
   6  Prefactor     .10000E-03    9.8260        .22176E-06** at limit **
   7  Prefactor     2.8933        43.405        .22428E-05    .10290E-04
   8  Prefactor     3.8860        3.8385        .97207E-06    .10297E-02
   9  norm          .10010E-03    2.1659       -.29055E-06** at limit **
  10  Prefactor     27.254        14.837        .11142E-06    .95620E-05
  11  Prefactor     .10000E-03    8.6637       -.28072E-06** at limit **
  12  Prefactor     .10000E-03    1.7532        .69726E-08** at limit **
  13  Prefactor     2.5719        3.0737       -.36857E-06    .84244E-04
  14  Prefactor     .10000E-03    21.390       -.12329E-05** at limit **
  15  norm          3.2979        4.5768       -.25149E-07    .44338E-04
  16  Prefactor     3.3716        3.0429       -.57353E-08    .25674E-03
  17  Prefactor     .10000E-03    13.062       -.67144E-06** at limit **
  18  Prefactor     .10003E-03    9.2232       -.44631E-05** at limit **
  19  Prefactor     18.190        28.432        .36421E-05    .33886E-03
  20  Prefactor     .10000E-03    11.996       -.21198E-05** at limit **
  21  Prefactor     .10000E-03    56.054       -.43161E-06** at limit **
  22  Prefactor     4.6954        6.6867        .92337E-07    .49974E-04
  23  Prefactor     57.981        42.068        .27894E-06    .11632E-03
  24  Prefactor     2.2507        23.629        .22319E-06    .28091E-04
  25  Normalizat    1.3640        .19839        .59505E-06    .52448E-03
  26  Prefactor     .94142        .14660       -.12937E-05    .22384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.18616
  Prefactor  = 0.0001
  Prefactor  = 3.09258
  Prefactor  = 0.0001
  Prefactor  = 2.89329
  Prefactor  = 3.88601
  norm       = 0.000100097
  Prefactor  = 27.2538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.57192
  Prefactor  = 0.0001
  norm       = 3.29792
  Prefactor  = 3.37155
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 18.1898
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.69537
  Prefactor  = 57.9808
  Prefactor  = 2.25073
  Normalizat = 1.36397
  Prefactor  = 0.941419
 **********
 **   18 **HESSE 
 **********

 FCN=   7077.822     FROM HESSE     STATUS=OK           462 CALLS     3544 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3697        .95614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1862        2.5666        .77261E-04   -1.5172    
   4  Prefactor     .10000E-03    15.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0926        4.6258        .21451E-03   -1.5356    
   6  Prefactor     .10000E-03    9.8363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8933        43.121        .23849E-03   -1.5368    
   8  Prefactor     3.8860        4.1172        .83822E-03   -1.5314    
   9  norm          .10010E-03    3.6098        .43355E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.254        14.827        .76739E-04   -1.4663    
  11  Prefactor     .10000E-03    8.6638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7565        .10878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5719        3.0653        .15506E-03   -1.5387    
  14  Prefactor     .10000E-03    21.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2979        4.5677        .20668E-03   -1.5345    
  16  Prefactor     3.3716        3.0467        .13452E-03   -1.5341    
  17  Prefactor     .10000E-03    13.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    15.925        .32777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.190        29.631        .93848E-04   -1.4855    
  20  Prefactor     .10000E-03    12.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    56.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6954        6.6815        .18572E-03   -1.5275    
  23  Prefactor     57.981        42.068        .52685E-04   -1.4184    
  24  Prefactor     2.2507        23.694        .27401E-03   -1.5408    
  25  Normalizat    1.3640        .23254        .26128E-03   -.81677    
  26  Prefactor     .94142        .17112        .23596E-03   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23297e-09
Minuit parameter uncertainties:
  1  1.44872e-06
  2  4.1958e-06
  3  2.56667
  4  4.04127e-06
  5  4.62632
  6  5.14246e-06
  7  22.3582
  8  4.11747
  9  0.00118539
  10  14.8291
  11  6.10664e-06
  12  1.60846e-06
  13  3.06546
  14  6.3568e-06
  15  4.5682
  16  3.04688
  17  6.2405e-06
  18  0.00143993
  19  29.6551
  20  0.000220357
  21  8.48585e-05
  22  6.68258
  23  42.0897
  24  14.6123
  25  0.23272
  26  0.171214
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.608e-06  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.414e-01  1.712e-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.364e+00  2.327e-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: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146455/likelihoodResults_384480001_384739201_4FGL_J2203.3-5009_daily_bin560.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) = 7077.82492338
delta logL = -0.00265356710315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7077.82226943
delta logL = 3.81687641493e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7209       1.0000          .0000       10.000    
     3 'Normalizat'    1.3640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94143       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=   7077.822     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.434        .11038E-01** at limit **
   2  Index         1.9082        5.5009        .50000       -.20875E-06
   3  Normalizat    1.3640        .18019E-01    .26128E-03   -.13358E-03
   4  Prefactor     .94142        .13901E-01    .23596E-03   -.14628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90821
  Normalizat = 1.36396
  Prefactor  = 0.941421
 **********
 **   18 **HESSE 
 **********

 FCN=   7077.822     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    247.99        .13369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9082        9.0355        .50000       -.66665    
   3  Normalizat    1.3640        .53172E-01    .52257E-04   -.81677    
   4  Prefactor     .94142        .41019E-01    .94384E-05   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.05882e-10
Minuit parameter uncertainties:
  1  6.1594e-05
  2  780.918
  3  0.053174
  4  0.0410206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146455': 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) = 7077.82226007
delta logL = 9.73595160758e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  6.159e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.908e+00  7.809e+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:  9.414e-01  4.102e-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:  1.364e+00  5.317e-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/146455/cmap_HighResolution_384480001_384739201_4FGL_J2203.3-5009_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-09-28 03:11:09.814509', job_id='146455', GAL2='0.94', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632823869.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='560' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:11:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 146455: <4FGL_J2203.3-5009_daily_bin560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin560 330.832 -50.1512 384480001 384739201 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 :                                   797.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

