/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 212 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 = 7470
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin440
RA = 330.832, Dec = -50.1512
tmin = 353376001, tmax = 353635201
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='145241', job_status='RUN', time_executed='2021-09-28 02:54:28.450972', time_epoch_executed='1632822868.45' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145241/ft1_4FGL_J2203.3-5009_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145241/ft2_4FGL_J2203.3-5009_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145241/ft1_4FGL_J2203.3-5009_daily_bin440.fits outfile=/scratch/kocevski/145241/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin440.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=353376001.0 tmax=353635201.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.47
user 3.25
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/145241/ft1_filtered_4FGL_J2203.3-5009_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/145241/ft2_4FGL_J2203.3-5009_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/145241/ltcube_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.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/145241/ft2_4FGL_J2203.3-5009_daily_bin440.fits
.....................!
real 12.40
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145241/ft1_filtered_4FGL_J2203.3-5009_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/145241/ft2_4FGL_J2203.3-5009_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/145241/ltcube_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.fits outfile=/scratch/kocevski/145241/expmap_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.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/145241/ltcube_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.fits
.....................!
real 191.86
user 187.12
sys 4.38

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/145241/ft1_filtered_4FGL_J2203.3-5009_daily_bin440.fits scfile=/scratch/kocevski/145241/ft2_4FGL_J2203.3-5009_daily_bin440.fits outfile=/scratch/kocevski/145241/cmap_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145241/ft1_filtered_4FGL_J2203.3-5009_daily_bin440.fits scfile=/scratch/kocevski/145241/ft2_4FGL_J2203.3-5009_daily_bin440.fits outfile=/scratch/kocevski/145241/cmap_HighResolution_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10090E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    63.042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.477       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75009       1.0000         .10000E-03   10000.    
     9 'norm      '    13.015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9770       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .67907       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.942       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.8518       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4008       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76590       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=   5658.210     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3220 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8489        .45525E-07** at limit **
   2  Prefactor     .10000E-03    24.732       -.16585E-05** at limit **
   3  norm          6.7504        3.0188        .18897E-07   -.60368E-04
   4  Prefactor     63.044        55.264        .40336E-06    .53814E-04
   5  Prefactor     48.161        13.795       -.84650E-08   -.81018E-05
   6  Prefactor     .10000E-03    14.636        .33375E-06** at limit **
   7  Prefactor     38.475        30.985       -.28232E-06   -.90979E-04
   8  Prefactor     .74030        4.1707        .49988E-06   -.28502E-03
   9  norm          13.014        6.0152        .20095E-06    .47733E-03
  10  Prefactor     6.9771        11.076        .16140E-06   -.22837E-05
  11  Prefactor     .10000E-03    22.073        .43977E-06** at limit **
  12  Prefactor     .10000E-03    2.6120       -.25584E-07** at limit **
  13  Prefactor     2.7016        4.7993       -.37998E-06   -.87073E-03
  14  Prefactor     .10000E-03    34.310        .13548E-05** at limit **
  15  norm          .68107        9.1514       -.27372E-07   -.66639E-04
  16  Prefactor     4.6733        6.2388        .74036E-06    .35754E-03
  17  Prefactor     3.9261        180.07        .19914E-05    .21383E-04
  18  Prefactor     .89316        5.1622        .83474E-06   -.29096E-03
  19  Prefactor     71.930        50.240       -.41667E-05   -.57498E-03
  20  Prefactor     6.2574        17.251        .59719E-05   -.50053E-03
  21  Prefactor     .10000E-03    60.152       -.10842E-05** at limit **
  22  Prefactor     .10000E-03    11.637       -.74849E-07** at limit **
  23  Prefactor     .10000E-03    33.182        .38670E-06** at limit **
  24  Prefactor     6.8552        22.007        .58238E-06    .17554E-04
  25  Normalizat    1.4009        .23466        .23942E-07   -.14824E-03
  26  Prefactor     .76583        .16313       -.60743E-06   -.68348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 6.7504
  Prefactor  = 63.0437
  Prefactor  = 48.1605
  Prefactor  = 0.0001
  Prefactor  = 38.4752
  Prefactor  = 0.740298
  norm       = 13.0139
  Prefactor  = 6.97711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70158
  Prefactor  = 0.000100003
  norm       = 0.681072
  Prefactor  = 4.67333
  Prefactor  = 3.9261
  Prefactor  = 0.893159
  Prefactor  = 71.9301
  Prefactor  = 6.25745
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85523
  Normalizat = 1.4009
  Prefactor  = 0.765828
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.210     FROM HESSE     STATUS=OK           460 CALLS     3680 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9460        .28802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7504        3.0197        .83877E-04   -1.5188    
   4  Prefactor     63.044        55.311        .50540E-04   -1.4118    
   5  Prefactor     48.161        13.781        .57782E-04   -1.4319    
   6  Prefactor     .10000E-03    14.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.475        30.991        .64615E-04   -1.4467    
   8  Prefactor     .74030        8.0587        .28568E-02   -1.5536    
   9  norm          13.014        6.0349        .11103E-03   -1.4986    
  10  Prefactor     6.9771        11.073        .15188E-03   -1.5180    
  11  Prefactor     .10000E-03    22.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6164        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7016        4.9893        .21416E-03   -1.5379    
  14  Prefactor     .10000E-03    34.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68107        36.576        .43366E-02   -1.5543    
  16  Prefactor     4.6733        6.2469        .18613E-03   -1.5276    
  17  Prefactor     3.9261        179.09        .20365E-03   -1.5312    
  18  Prefactor     .89316        16.849        .29848E-02   -1.5519    
  19  Prefactor     71.930        50.775        .47331E-04   -1.4010    
  20  Prefactor     6.2574        18.030        .80227E-03   -1.5208    
  21  Prefactor     .10000E-03    60.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.8552        22.028        .15328E-03   -1.5184    
  25  Normalizat    1.4009        .27637        .26921E-03   -.80603    
  26  Prefactor     .76583        .18946        .25872E-03   -1.0100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56322e-08
Minuit parameter uncertainties:
  1  3.85537e-06
  2  0.000623784
  3  3.01972
  4  55.3564
  5  13.7816
  6  7.79555e-05
  7  31.0043
  8  4.88553
  9  6.03519
  10  11.0767
  11  0.000148714
  12  2.30831e-06
  13  4.99009
  14  0.000623954
  15  9.98792
  16  6.24779
  17  53.2032
  18  7.76071
  19  50.8058
  20  18.0452
  21  0.000567953
  22  5.81795e-05
  23  0.000197969
  24  22.0542
  25  0.276669
  26  0.189619
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.308e-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:  7.658e-01  1.896e-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.401e+00  2.767e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/145241/likelihoodResults_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.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) = 5658.21220042
delta logL = -0.00176980017659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5658.21043055
delta logL = 7.41947587812e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7282       1.0000          .0000       10.000    
     3 'Normalizat'    1.4009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76585       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=   5658.210     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.955        .11934E-01** at limit **
   2  Index         2.2552        8.8507        .50000       -.79808E-08
   3  Normalizat    1.4009        .16257E-01    .26921E-03   -.93362E-04
   4  Prefactor     .76583        .12016E-01    .25873E-03   -.91925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2552
  Normalizat = 1.4009
  Prefactor  = 0.765827
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.210     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    203.63        .12623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2552        5.5440        .50000       -.58112    
   3  Normalizat    1.4009        .51243E-01    .53842E-04   -.80603    
   4  Prefactor     .76583        .37875E-01    .10349E-04   -1.0100    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79932e-09
Minuit parameter uncertainties:
  1  0.000239696
  2  972.803
  3  0.0512445
  4  0.0378762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145241': 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) = 5658.21042842
delta logL = 2.20205492951e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.397e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.255e+00  9.728e+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:  7.658e-01  3.788e-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.401e+00  5.124e-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/145241/cmap_HighResolution_353376001_353635201_4FGL_J2203.3-5009_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-28 03:06:09.134220', job_id='145241', GAL2='0.77', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632823569.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='440' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:06:09 PDT 2021


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

Job <4FGL_J2203.3-5009_daily_bin440> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 02:50:46 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:50:48 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:50:48 2021
Terminated at Tue Sep 28 03:06:09 2021
Results reported at Tue Sep 28 03:06:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin440 330.832 -50.1512 353376001 353635201 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 :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

