/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7401
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1440
RA = 330.832, Dec = -50.1512
tmin = 612576001, tmax = 612835201
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='150968', job_status='RUN', time_executed='2021-09-28 03:12:04.855765', time_epoch_executed='1632823924.86' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150968/ft1_4FGL_J2203.3-5009_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150968/ft2_4FGL_J2203.3-5009_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150968/ft1_4FGL_J2203.3-5009_daily_bin1440.fits outfile=/scratch/kocevski/150968/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1440.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=612576001.0 tmax=612835201.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.78
user 2.59
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150968/ft1_filtered_4FGL_J2203.3-5009_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/150968/ft2_4FGL_J2203.3-5009_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/150968/ltcube_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.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/150968/ft2_4FGL_J2203.3-5009_daily_bin1440.fits
.....................!
real 12.18
user 11.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150968/ft1_filtered_4FGL_J2203.3-5009_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/150968/ft2_4FGL_J2203.3-5009_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/150968/ltcube_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.fits outfile=/scratch/kocevski/150968/expmap_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.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/150968/ltcube_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.fits
.....................!
real 190.06
user 185.35
sys 4.42

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/150968/ft1_filtered_4FGL_J2203.3-5009_daily_bin1440.fits scfile=/scratch/kocevski/150968/ft2_4FGL_J2203.3-5009_daily_bin1440.fits outfile=/scratch/kocevski/150968/cmap_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150968/ft1_filtered_4FGL_J2203.3-5009_daily_bin1440.fits scfile=/scratch/kocevski/150968/ft2_4FGL_J2203.3-5009_daily_bin1440.fits outfile=/scratch/kocevski/150968/cmap_HighResolution_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.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/150968/ft1_filtered_4FGL_J2203.3-5009_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/150968/ft2_4FGL_J2203.3-5009_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150968/Model_4FGL_J2203.3-5009_daily_bin1440.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/150968/ft1_filtered_4FGL_J2203.3-5009_daily_bin1440.fits.....................!
real 61.74
user 60.42
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.265       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.180       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4262       1.0000         .10000E-03   10000.    
     9 'norm      '    8.5248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6025       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.688       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .43314E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4929       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4935       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.113       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.685       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3181       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87088       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89301       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=   8352.085     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3094 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.265        9.1144        .97022E-06   -.29319E-05
   2  Prefactor     .10000E-03    35.194        .75624E-05** at limit **
   3  norm          7.6897        2.8525       -.16943E-07   -.93727E-04
   4  Prefactor     .10000E-03    20.205       -.94842E-05** at limit **
   5  Prefactor     24.181        9.7386       -.59095E-06   -.11864E-03
   6  Prefactor     .10000E-03    18.910        .16319E-04** at limit **
   7  Prefactor     20.642        27.959       -.35175E-04    .25164E-04
   8  Prefactor     4.4278        4.4698        .21405E-06   -.40112E-03
   9  norm          8.5252        4.0545       -.14457E-05   -.28413E-03
  10  Prefactor     8.6027        6.5989       -.59419E-06   -.34448E-04
  11  Prefactor     69.687        37.258       -.36027E-06    .46840E-04
  12  Prefactor     .10000E-03    6.3536        .56398E-07** at limit **
  13  Prefactor     2.6673        2.8388       -.61320E-06   -.25945E-03
  14  Prefactor     .10000E-03    47.702        .26315E-05** at limit **
  15  norm          .10011E-03    3.6108       -.93412E-06** at limit **
  16  Prefactor     .88982        2.5222       -.24877E-05   -.18900E-02
  17  Prefactor     5.4977        25.255        .36190E-05    .14222E-04
  18  Prefactor     4.4948        3.7215       -.18414E-08   -.77804E-04
  19  Prefactor     20.100        22.399       -.77274E-05    .67402E-04
  20  Prefactor     10.688        10.252        .16186E-05    .62829E-04
  21  Prefactor     .10000E-03    20.165       -.98261E-05** at limit **
  22  Prefactor     4.3189        5.4062       -.12152E-05   -.27025E-03
  23  Prefactor     .10000E-03    6.9361       -.39411E-06** at limit **
  24  Prefactor     .10000E-03    3.3565        .11028E-06** at limit **
  25  Normalizat    .87076        .16491        .44503E-05    .13986E-03
  26  Prefactor     .89312        .12617        .22464E-05    .13708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.265
  Prefactor  = 0.0001
  norm       = 7.68966
  Prefactor  = 0.0001
  Prefactor  = 24.1807
  Prefactor  = 0.0001
  Prefactor  = 20.6417
  Prefactor  = 4.42778
  norm       = 8.52523
  Prefactor  = 8.60274
  Prefactor  = 69.6875
  Prefactor  = 0.0001
  Prefactor  = 2.66728
  Prefactor  = 0.0001
  norm       = 0.00010011
  Prefactor  = 0.889825
  Prefactor  = 5.49771
  Prefactor  = 4.49481
  Prefactor  = 20.1
  Prefactor  = 10.6879
  Prefactor  = 0.0001
  Prefactor  = 4.31887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.870763
  Prefactor  = 0.893118
 **********
 **   18 **HESSE 
 **********

 FCN=   8352.085     FROM HESSE     STATUS=OK           466 CALLS     3560 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.265        9.1063        .57719E-04   -1.4317    
   2  Prefactor     .10000E-03    35.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6897        2.8524        .90798E-04   -1.5153    
   4  Prefactor     .10000E-03    20.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.181        9.7342        .81461E-04   -1.4724    
   6  Prefactor     .10000E-03    18.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.642        27.830        .88075E-04   -1.4799    
   8  Prefactor     4.4278        4.4558        .18256E-03   -1.5287    
   9  norm          8.5252        4.0576        .12258E-03   -1.5124    
  10  Prefactor     8.6027        6.5995        .13667E-03   -1.5121    
  11  Prefactor     69.687        37.283        .48085E-04   -1.4036    
  12  Prefactor     .10000E-03    6.4444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6673        2.8270        .15151E-03   -1.5381    
  14  Prefactor     .10000E-03    47.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10011E-03    31.791        .33698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .88982        2.5298        .22927E-03   -1.5519    
  17  Prefactor     5.4977        25.077        .17144E-03   -1.5239    
  18  Prefactor     4.4948        3.7181        .15235E-03   -1.5284    
  19  Prefactor     20.100        22.366        .89308E-04   -1.4811    
  20  Prefactor     10.688        10.215        .12257E-03   -1.5054    
  21  Prefactor     .10000E-03    20.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3189        5.4002        .19386E-03   -1.5292    
  23  Prefactor     .10000E-03    6.9373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.3590        .16351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87076        .18777        .27847E-03   -.97495    
  26  Prefactor     .89312        .14420        .22226E-03   -.96382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10347e-09
Minuit parameter uncertainties:
  1  9.10653
  2  0.000162839
  3  2.85242
  4  0.000186888
  5  9.7348
  6  3.05846e-05
  7  27.8479
  8  4.45611
  9  4.05774
  10  6.60007
  11  37.295
  12  2.53893e-05
  13  2.82711
  14  1.4813e-05
  15  0.00374022
  16  2.53007
  17  23.4993
  18  3.71825
  19  22.3749
  20  10.2166
  21  2.89018e-06
  22  5.40078
  23  3.99705e-06
  24  7.00729e-06
  25  0.18791
  26  0.144262
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.539e-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:  8.931e-01  1.443e-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:  8.708e-01  1.879e-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: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150968/likelihoodResults_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.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) = 8352.08525494
delta logL = -0.000739790180887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8352.08451528
delta logL = -1.32515197038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7642       1.0000          .0000       10.000    
     3 'Normalizat'    .87080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89311       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=   8352.085     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      238 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1160.3        .18142E-02** at limit **
   2  Index         2.7921        6.2175        .50000       -.41413E-04
   3  Normalizat    .87076        .73332E-01    .27847E-03   -.18127E-04
   4  Prefactor     .89312        .59455E-01    .22226E-03   -.21893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.79208
  Normalizat = 0.870762
  Prefactor  = 0.893118
 **********
 **   18 **HESSE 
 **********

 FCN=   8352.085     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.9641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7921        6.3946        .50000       -.45736    
   3  Normalizat    .87076        .17307        .11139E-04   -.97495    
   4  Prefactor     .89312        .14061        .88903E-05   -.96382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51745e-09
Minuit parameter uncertainties:
  1  0.000619104
  2  4.84266
  3  0.173176
  4  0.140665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150968': 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) = 8352.08451469
delta logL = 4.57892383565e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  6.191e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.792e+00  4.843e+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:  8.931e-01  1.407e-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:  8.708e-01  1.732e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/150968/cmap_HighResolution_612576001_612835201_4FGL_J2203.3-5009_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-28 03:26:34.859695', job_id='150968', GAL2='0.89', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632824794.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1440' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 150968: <4FGL_J2203.3-5009_daily_bin1440> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1440 330.832 -50.1512 612576001 612835201 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 :                                   857.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

