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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1092
RA = 330.832, Dec = -50.1512
tmin = 522374401, tmax = 522633601
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='149405', job_status='RUN', time_executed='2021-09-28 03:09:00.437015', time_epoch_executed='1632823740.44' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149405

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149405/ft1_4FGL_J2203.3-5009_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149405/ft2_4FGL_J2203.3-5009_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149405/ft1_4FGL_J2203.3-5009_daily_bin1092.fits outfile=/scratch/kocevski/149405/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1092.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=522374401.0 tmax=522633601.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.67
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149405/ft1_filtered_4FGL_J2203.3-5009_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/149405/ft2_4FGL_J2203.3-5009_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/149405/ltcube_522374401_522633601_4FGL_J2203.3-5009_daily_bin1092.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/149405/ft2_4FGL_J2203.3-5009_daily_bin1092.fits
.....................!
real 12.78
user 12.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149405/ft1_filtered_4FGL_J2203.3-5009_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/149405/ft2_4FGL_J2203.3-5009_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/149405/ltcube_522374401_522633601_4FGL_J2203.3-5009_daily_bin1092.fits outfile=/scratch/kocevski/149405/expmap_522374401_522633601_4FGL_J2203.3-5009_daily_bin1092.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/149405/ltcube_522374401_522633601_4FGL_J2203.3-5009_daily_bin1092.fits
.....................!
real 190.81
user 185.10
sys 5.29

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/149405/ft1_filtered_4FGL_J2203.3-5009_daily_bin1092.fits scfile=/scratch/kocevski/149405/ft2_4FGL_J2203.3-5009_daily_bin1092.fits outfile=/scratch/kocevski/149405/cmap_522374401_522633601_4FGL_J2203.3-5009_daily_bin1092.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .74836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30566E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.986       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45865       1.0000         .10000E-03   10000.    
     9 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.174       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.9318       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4925       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3729       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.917       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6831       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98791       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99684       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=   5965.710     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3923 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6569        .10043E-06** at limit **
   2  Prefactor     .10000E-03    6.1905        .61696E-07** at limit **
   3  norm          .74805        1.8767        .81269E-06    .29028E-03
   4  Prefactor     .10000E-03    19.818        .54266E-07** at limit **
   5  Prefactor     .10002E-03    5.8204       -.21734E-05** at limit **
   6  Prefactor     22.163        25.854        .40121E-07    .14761E-04
   7  Prefactor     42.986        25.959       -.28735E-07   -.40057E-04
   8  Prefactor     .45826        3.4687        .26703E-05    .12578E-03
   9  norm          .10000E-03    2.2489       -.37037E-08** at limit **
  10  Prefactor     .10000E-03    3.5841        .42219E-07** at limit **
  11  Prefactor     51.175        32.496       -.21274E-06    .34314E-05
  12  Prefactor     .10000E-03    2.3050       -.54807E-07** at limit **
  13  Prefactor     12.333        5.0872        .44661E-07    .27792E-05
  14  Prefactor     .10000E-03    22.797       -.15372E-06** at limit **
  15  norm          8.9316        7.7751        .58760E-07   -.35321E-05
  16  Prefactor     4.4931        4.0563       -.15313E-06   -.15647E-03
  17  Prefactor     .10000E-03    26.218        .20745E-07** at limit **
  18  Prefactor     8.3781        7.2894        .21068E-05    .22623E-03
  19  Prefactor     19.169        42.744       -.28136E-05   -.15992E-03
  20  Prefactor     14.932        17.686        .34648E-06    .20016E-04
  21  Prefactor     .10000E-03    48.117       -.79358E-07** at limit **
  22  Prefactor     3.6834        8.3110        .48656E-06    .46050E-05
  23  Prefactor     .10000E-03    12.142       -.15256E-06** at limit **
  24  Prefactor     .10000E-03    7.2479       -.46787E-07** at limit **
  25  Normalizat    .98757        .20973        .13469E-05   -.37151E-04
  26  Prefactor     .99706        .15228       -.24697E-05    .88286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.748045
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 22.1629
  Prefactor  = 42.986
  Prefactor  = 0.458255
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.1749
  Prefactor  = 0.0001
  Prefactor  = 12.3326
  Prefactor  = 0.0001
  norm       = 8.93156
  Prefactor  = 4.49305
  Prefactor  = 0.0001
  Prefactor  = 8.37807
  Prefactor  = 19.1688
  Prefactor  = 14.9325
  Prefactor  = 0.0001
  Prefactor  = 3.68344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.987574
  Prefactor  = 0.997058
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.710     FROM HESSE     STATUS=OK           456 CALLS     4379 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6790        .97095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .74805        1.8593        .16028E-03   -1.5535    
   4  Prefactor     .10000E-03    19.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    12.585        .32946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.163        25.814        .85068E-04   -1.4766    
   7  Prefactor     42.986        25.955        .61145E-04   -1.4396    
   8  Prefactor     .45826        3.5622        .27844E-03   -1.5573    
   9  norm          .10000E-03    2.2708        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5905        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.175        32.518        .56062E-04   -1.4276    
  12  Prefactor     .10000E-03    2.3108        .11450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.333        5.0891        .10660E-03   -1.5005    
  14  Prefactor     .10000E-03    22.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9316        7.7758        .13411E-03   -1.5110    
  16  Prefactor     4.4931        4.0608        .14040E-03   -1.5284    
  17  Prefactor     .10000E-03    26.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3781        7.4300        .69271E-03   -1.5129    
  19  Prefactor     19.169        42.832        .91349E-04   -1.4832    
  20  Prefactor     14.932        17.603        .10370E-03   -1.4935    
  21  Prefactor     .10000E-03    48.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6834        8.3000        .21045E-03   -1.5324    
  23  Prefactor     .10000E-03    12.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.2562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98757        .24086        .27932E-03   -.93448    
  26  Prefactor     .99706        .17328        .21206E-03   -.92828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18309e-09
Minuit parameter uncertainties:
  1  4.44231e-06
  2  3.98303e-06
  3  1.8594
  4  6.60548e-06
  5  0.00105524
  6  25.8266
  7  25.9619
  8  2.55524
  9  4.15334e-06
  10  2.7376e-06
  11  32.529
  12  7.67532e-07
  13  5.08927
  14  4.23948e-05
  15  7.77667
  16  4.06107
  17  2.25969e-05
  18  7.43082
  19  42.9008
  20  17.6088
  21  7.45547e-05
  22  8.30258
  23  9.24676e-07
  24  3.61444e-07
  25  0.241123
  26  0.173374
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  7.675e-07  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.971e-01  1.734e-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.876e-01  2.411e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149405/likelihoodResults_522374401_522633601_4FGL_J2203.3-5009_daily_bin1092.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) = 5965.71164564
delta logL = -0.00204634932288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5965.70959907
delta logL = 2.21835762204e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7227       1.0000          .0000       10.000    
     3 'Normalizat'    .98761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99704       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=   5965.710     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.315        .11579E-01** at limit **
   2  Index         2.1640        5.7348        .50000        .96679E-07
   3  Normalizat    .98758        .14400E-01    .27931E-03    .84132E-04
   4  Prefactor     .99706        .11037E-01    .21206E-03    .11608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16404
  Normalizat = 0.987576
  Prefactor  = 0.997057
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.710     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    198.31        .12792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1640        8.9179        .50000       -.60309    
   3  Normalizat    .98758        .44406E-01    .11172E-04   -.93448    
   4  Prefactor     .99706        .34037E-01    .42413E-04   -.92828    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.08311e-10
Minuit parameter uncertainties:
  1  4.23045e-05
  2  819.043
  3  0.0444073
  4  0.0340373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149405': 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) = 5965.70959499
delta logL = 4.30258478445e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  4.230e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.164e+00  8.190e+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.971e-01  3.404e-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.876e-01  4.441e-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/149405/cmap_HighResolution_522374401_522633601_4FGL_J2203.3-5009_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-28 03:21:49.146016', job_id='149405', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632824509.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1092' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 149405: <4FGL_J2203.3-5009_daily_bin1092> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1092> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:37 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:39 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:39 2021
Terminated at Tue Sep 28 03:21:49 2021
Results reported at Tue Sep 28 03:21:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1092 330.832 -50.1512 522374401 522633601 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 :                                   764.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

