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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1266
RA = 330.832, Dec = -50.1512
tmin = 567475201, tmax = 567734401
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='150675', job_status='RUN', time_executed='2021-09-28 03:11:30.932062', time_epoch_executed='1632823890.93' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150675

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150675/ft1_4FGL_J2203.3-5009_daily_bin1266.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150675/ft2_4FGL_J2203.3-5009_daily_bin1266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150675/ft1_4FGL_J2203.3-5009_daily_bin1266.fits outfile=/scratch/kocevski/150675/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1266.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=567475201.0 tmax=567734401.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.51
user 2.30
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150675/ft1_filtered_4FGL_J2203.3-5009_daily_bin1266.fits" evtable="EVENTS" scfile=/scratch/kocevski/150675/ft2_4FGL_J2203.3-5009_daily_bin1266.fits sctable="SC_DATA" outfile=/scratch/kocevski/150675/ltcube_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.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/150675/ft2_4FGL_J2203.3-5009_daily_bin1266.fits
.....................!
real 12.21
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150675/ft1_filtered_4FGL_J2203.3-5009_daily_bin1266.fits evtable="EVENTS" scfile=/scratch/kocevski/150675/ft2_4FGL_J2203.3-5009_daily_bin1266.fits sctable="SC_DATA" expcube=/scratch/kocevski/150675/ltcube_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.fits outfile=/scratch/kocevski/150675/expmap_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.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/150675/ltcube_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.fits
.....................!
real 190.83
user 185.45
sys 4.98

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/150675/ft1_filtered_4FGL_J2203.3-5009_daily_bin1266.fits scfile=/scratch/kocevski/150675/ft2_4FGL_J2203.3-5009_daily_bin1266.fits outfile=/scratch/kocevski/150675/cmap_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150675/ft1_filtered_4FGL_J2203.3-5009_daily_bin1266.fits scfile=/scratch/kocevski/150675/ft2_4FGL_J2203.3-5009_daily_bin1266.fits outfile=/scratch/kocevski/150675/cmap_HighResolution_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.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/150675/ft1_filtered_4FGL_J2203.3-5009_daily_bin1266.fits evtable="EVENTS" scfile=/scratch/kocevski/150675/ft2_4FGL_J2203.3-5009_daily_bin1266.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150675/Model_4FGL_J2203.3-5009_daily_bin1266.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/150675/ft1_filtered_4FGL_J2203.3-5009_daily_bin1266.fits.....................!
real 49.38
user 48.08
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.693       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14222E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3515       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8718       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3728       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6501       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1348       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.447       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1965       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.204       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.976       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97061       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2248       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6436.417     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3597 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.690        6.3470         .0000       -.47584E-02
   2  Prefactor     .10044E-03    209.12         .0000    ** at limit **
   3  norm          5.3509        2.8229         .0000       -.12636E-03
   4  Prefactor     .10015E-03    23.834         .0000    ** at limit **
   5  Prefactor     4.8710        9.2989         .0000        .15793E-02
   6  Prefactor     44.200        33.997         .0000        .32014E-03
   7  Prefactor     6.3671        32.670         .0000       -.73588E-04
   8  Prefactor     3.6508        6.0546         .0000        .43513E-02
   9  norm          3.8583        4.3096         .0000        .53804E-03
  10  Prefactor     6.1343        6.4153         .0000       -.12617E-02
  11  Prefactor     21.454        34.864         .0000        .12437E-03
  12  Prefactor     .10000E-03    2.4268         .0000    ** at limit **
  13  Prefactor     1.1964        4.0521         .0000        .10043E-02
  14  Prefactor     .10021E-03    30.375         .0000    ** at limit **
  15  norm          .10000E-03    2.8716         .0000    ** at limit **
  16  Prefactor     .10000E-03    1.5957         .0000    ** at limit **
  17  Prefactor     29.187        28.446         .0000       -.13625E-02
  18  Prefactor     6.0024        7.2239         .0000       -.40677E-02
  19  Prefactor     25.989        30.527         .0000        .29969E-04
  20  Prefactor     .10000E-03    4.9695         .0000    ** at limit **
  21  Prefactor     .10005E-03    44.996         .0000    ** at limit **
  22  Prefactor     1.0169        11.492         .0000        .30760E-01
  23  Prefactor     .10000E-03    24.219         .0000    ** at limit **
  24  Prefactor     .10043E-03    24.842         .0000    ** at limit **
  25  Normalizat    .97028        .20880         .0000       -.81132E-05
  26  Prefactor     1.2250        .15827         .0000       -.25051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6896
  Prefactor  = 0.000100439
  norm       = 5.35089
  Prefactor  = 0.000100148
  Prefactor  = 4.871
  Prefactor  = 44.2001
  Prefactor  = 6.36712
  Prefactor  = 3.65079
  norm       = 3.85831
  Prefactor  = 6.13426
  Prefactor  = 21.4542
  Prefactor  = 0.0001
  Prefactor  = 1.19641
  Prefactor  = 0.000100213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1874
  Prefactor  = 6.00244
  Prefactor  = 25.989
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  Prefactor  = 1.01691
  Prefactor  = 0.000100001
  Prefactor  = 0.000100426
  Normalizat = 0.970279
  Prefactor  = 1.22504
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.417     FROM HESSE     STATUS=OK           456 CALLS     4053 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.690        6.3410        .11715E-03   -1.5024    
   2  Prefactor     .10044E-03    217.10        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3509        2.8216        .94674E-04   -1.5245    
   4  Prefactor     .10015E-03    23.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8710        9.2658        .18224E-03   -1.5267    
   6  Prefactor     44.200        33.928        .60302E-04   -1.4377    
   7  Prefactor     6.3671        32.594        .15900E-03   -1.5203    
   8  Prefactor     3.6508        6.0360        .21144E-03   -1.5326    
   9  norm          3.8583        4.2984        .16617E-03   -1.5315    
  10  Prefactor     6.1343        6.4158        .16209E-03   -1.5213    
  11  Prefactor     21.454        34.878        .43244E-03   -1.4781    
  12  Prefactor     .10000E-03    2.4309        .12203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1964        4.0398        .27867E-03   -1.5489    
  14  Prefactor     .10021E-03    30.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8742        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6108        .98906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.187        28.444        .74137E-04   -1.4627    
  18  Prefactor     6.0024        7.2305        .16391E-03   -1.5218    
  19  Prefactor     25.989        30.661        .78600E-04   -1.4688    
  20  Prefactor     .10000E-03    4.9858        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    45.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0169        11.873        .25788E-02   -1.5506    
  23  Prefactor     .10000E-03    24.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10043E-03    25.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97028        .24515        .29948E-03   -.94033    
  26  Prefactor     1.2250        .18679        .21891E-03   -.85564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58648e-08
Minuit parameter uncertainties:
  1  6.3414
  2  0.019593
  3  2.82168
  4  0.00375213
  5  9.26855
  6  33.9429
  7  28.8366
  8  6.03702
  9  4.29875
  10  6.41647
  11  34.9116
  12  1.29215e-05
  13  4.04076
  14  0.0050905
  15  8.51957e-06
  16  6.57668e-06
  17  28.4575
  18  7.23153
  19  30.6797
  20  5.21134e-06
  21  0.00301615
  22  6.9508
  23  0.000227695
  24  0.00656037
  25  0.245434
  26  0.186887
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.292e-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:  1.225e+00  1.869e-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:  9.703e-01  2.454e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150675/likelihoodResults_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.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) = 6436.41903275
delta logL = -0.00193878408663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6436.41709385
delta logL = 1.16235241876e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7270       1.0000          .0000       10.000    
     3 'Normalizat'    .97030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2250       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=   6436.417     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      252 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.122        .12279E-01** at limit **
   2  Index         2.2429        6.0168        .50000        .91882E-07
   3  Normalizat    .97028        .14909E-01    .29948E-03   -.10211E-02
   4  Prefactor     1.2250        .12148E-01    .21891E-03   -.13303E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24289
  Normalizat = 0.970276
  Prefactor  = 1.22504
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.417     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    205.04        .13080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2429        5.8751        .50000       -.58407    
   3  Normalizat    .97028        .47280E-01    .59896E-04   -.94033    
   4  Prefactor     1.2250        .38525E-01    .43781E-04   -.85564    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.19568e-10
Minuit parameter uncertainties:
  1  4.52454e-06
  2  927.102
  3  0.0472824
  4  0.0385258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150675': 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) = 6436.41709129
delta logL = 2.66857205133e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.225e+00  3.853e-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:  9.703e-01  4.728e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/150675/cmap_HighResolution_567475201_567734401_4FGL_J2203.3-5009_daily_bin1266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-28 03:24:29.201471', job_id='150675', GAL2='1.23', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632824669.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1266' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:24:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 150675: <4FGL_J2203.3-5009_daily_bin1266> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1266 330.832 -50.1512 567475201 567734401 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 :                                   771.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

