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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1381
RA = 330.832, Dec = -50.1512
tmin = 597283201, tmax = 597542401
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='150870', job_status='RUN', time_executed='2021-09-28 03:12:23.082339', time_epoch_executed='1632823943.08' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150870/ft1_4FGL_J2203.3-5009_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150870/ft2_4FGL_J2203.3-5009_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150870/ft1_4FGL_J2203.3-5009_daily_bin1381.fits outfile=/scratch/kocevski/150870/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1381.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=597283201.0 tmax=597542401.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.61
user 3.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150870/ft1_filtered_4FGL_J2203.3-5009_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/150870/ft2_4FGL_J2203.3-5009_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/150870/ltcube_597283201_597542401_4FGL_J2203.3-5009_daily_bin1381.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/150870/ft2_4FGL_J2203.3-5009_daily_bin1381.fits
.....................!
real 15.37
user 14.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150870/ft1_filtered_4FGL_J2203.3-5009_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/150870/ft2_4FGL_J2203.3-5009_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/150870/ltcube_597283201_597542401_4FGL_J2203.3-5009_daily_bin1381.fits outfile=/scratch/kocevski/150870/expmap_597283201_597542401_4FGL_J2203.3-5009_daily_bin1381.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/150870/ltcube_597283201_597542401_4FGL_J2203.3-5009_daily_bin1381.fits
.....................!
real 193.23
user 188.73
sys 4.11

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/150870/ft1_filtered_4FGL_J2203.3-5009_daily_bin1381.fits scfile=/scratch/kocevski/150870/ft2_4FGL_J2203.3-5009_daily_bin1381.fits outfile=/scratch/kocevski/150870/cmap_597283201_597542401_4FGL_J2203.3-5009_daily_bin1381.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.56
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150870/ft1_filtered_4FGL_J2203.3-5009_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/150870/ft2_4FGL_J2203.3-5009_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150870/Model_4FGL_J2203.3-5009_daily_bin1381.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/150870/ft1_filtered_4FGL_J2203.3-5009_daily_bin1381.fits.....................!
real 51.46
user 50.14
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    10.686       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12362E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15229E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .74083       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20158E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    155.86       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9222       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3060       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94588       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0136       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=   6498.615     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3129 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7017        .26394E-07** at limit **
   2  Prefactor     .10000E-03    5.6431       -.14056E-08** at limit **
   3  norm          10.686        3.2817       -.36849E-08    .69176E-04
   4  Prefactor     .10000E-03    16.502       -.15490E-05** at limit **
   5  Prefactor     24.557        11.174        .53148E-06    .24986E-04
   6  Prefactor     .10000E-03    86.400        .70828E-05** at limit **
   7  Prefactor     18.759        26.917        .14155E-06    .58217E-04
   8  Prefactor     .10001E-03    5.4704       -.46508E-05** at limit **
   9  norm          .73872        2.3937        .29790E-05   -.10730E-02
  10  Prefactor     .10002E-03    14.666       -.79254E-05** at limit **
  11  Prefactor     .10000E-03    24.164        .50143E-07** at limit **
  12  Prefactor     .10000E-03    6.1754       -.46864E-05** at limit **
  13  Prefactor     1.9180        2.7822       -.27379E-06    .10556E-03
  14  Prefactor     155.91        114.21       -.12379E-05    .11170E-03
  15  norm          .10000E-03    2.1434       -.30744E-06** at limit **
  16  Prefactor     4.1676        2.9789       -.47707E-07    .31294E-04
  17  Prefactor     6.9961        34.636        .17259E-06    .75736E-05
  18  Prefactor     .10000E-03    2.9968       -.54450E-06** at limit **
  19  Prefactor     .10000E-03    19.707       -.26232E-05** at limit **
  20  Prefactor     .10000E-03    2.7874       -.18381E-06** at limit **
  21  Prefactor     .10000E-03    49.241       -.57925E-05** at limit **
  22  Prefactor     7.9224        6.5207       -.61750E-07    .21174E-04
  23  Prefactor     .10000E-03    10.493       -.29113E-06** at limit **
  24  Prefactor     4.3063        9.3552       -.18611E-06    .46810E-05
  25  Normalizat    .94584        .18247        .18603E-05    .20746E-03
  26  Prefactor     1.0136        .14277       -.63168E-06    .47210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6857
  Prefactor  = 0.0001
  Prefactor  = 24.5574
  Prefactor  = 0.0001
  Prefactor  = 18.7586
  Prefactor  = 0.000100006
  norm       = 0.738715
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91795
  Prefactor  = 155.911
  norm       = 0.0001
  Prefactor  = 4.16764
  Prefactor  = 6.9961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.92238
  Prefactor  = 0.0001
  Prefactor  = 4.30626
  Normalizat = 0.945835
  Prefactor  = 1.0136
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.615     FROM HESSE     STATUS=OK           454 CALLS     3583 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7174        .10267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.686        3.2828        .77633E-04   -1.5054    
   4  Prefactor     .10000E-03    16.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.557        11.125        .40416E-03   -1.4716    
   6  Prefactor     .10000E-03    86.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.759        26.845        .92473E-04   -1.4841    
   8  Prefactor     .10001E-03    13.790        .23799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .73872        4.7427        .16665E-02   -1.5536    
  10  Prefactor     .10002E-03    29.599        .34316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9180        2.7581        .15543E-03   -1.5431    
  14  Prefactor     155.91        114.04        .16147E-03   -1.3204    
  15  norm          .10000E-03    2.1444        .11527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1676        2.9800        .56442E-03   -1.5300    
  17  Prefactor     6.9961        34.591        .15164E-03   -1.5179    
  18  Prefactor     .10000E-03    3.0474        .13634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7934        .13145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9224        6.5202        .14246E-03   -1.5145    
  23  Prefactor     .10000E-03    10.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.3063        9.3422        .19414E-03   -1.5293    
  25  Normalizat    .94584        .20636        .27106E-03   -.94868    
  26  Prefactor     1.0136        .16362        .21094E-03   -.92277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55133e-09
Minuit parameter uncertainties:
  1  5.02126e-06
  2  5.36264e-06
  3  3.28287
  4  0.000102584
  5  11.1255
  6  0.000302105
  7  26.8625
  8  0.000586207
  9  3.74372
  10  0.00148018
  11  7.12308e-05
  12  2.76774e-05
  13  2.75827
  14  114.202
  15  8.18715e-08
  16  2.98015
  17  31.1417
  18  9.03221e-06
  19  0.000117556
  20  3.80245e-06
  21  0.000603511
  22  6.52082
  23  1.84866e-05
  24  9.34537
  25  0.206537
  26  0.163703
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.768e-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.014e+00  1.637e-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.458e-01  2.065e-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: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150870/likelihoodResults_597283201_597542401_4FGL_J2203.3-5009_daily_bin1381.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) = 6498.61600777
delta logL = -0.000767594738136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6498.61524015
delta logL = 2.64935806626e-08

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.7548       1.0000          .0000       10.000    
     3 'Normalizat'    .94580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0137       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=   6498.615     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1712        .18142E-02** at limit **
   2  Index         2.7705        6.3843        .50000       -.23281E-04
   3  Normalizat    .94584        .19888        .27106E-03    .44457E-04
   4  Prefactor     1.0136        .16059        .21094E-03    .65646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.77054
  Normalizat = 0.945837
  Prefactor  = 1.0136
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.615     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7705        6.3718        .50000       -.46217    
   3  Normalizat    .94584        .19905        .10843E-04   -.94868    
   4  Prefactor     1.0136        .16073        .84374E-05   -.92277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00166e-09
Minuit parameter uncertainties:
  1  0.000300046
  2  4.497
  3  0.199204
  4  0.160804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150870': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.61524002
delta logL = 1.62107426149e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.014e+00  1.608e-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.458e-01  1.992e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/150870/cmap_HighResolution_597283201_597542401_4FGL_J2203.3-5009_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-09-28 03:25:42.920261', job_id='150870', GAL2='1.01', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632824742.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1381' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 150870: <4FGL_J2203.3-5009_daily_bin1381> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1381> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:32 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:35 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:35 2021
Terminated at Tue Sep 28 03:25:43 2021
Results reported at Tue Sep 28 03:25:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1381 330.832 -50.1512 597283201 597542401 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 :                                   769.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

