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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin144
RA = 330.832, Dec = -50.1512
tmin = 276652801, tmax = 276912001
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='143727', job_status='RUN', time_executed='2021-09-28 02:46:09.314374', time_epoch_executed='1632822369.31' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143727

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143727/ft1_4FGL_J2203.3-5009_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143727/ft2_4FGL_J2203.3-5009_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143727/ft1_4FGL_J2203.3-5009_daily_bin144.fits outfile=/scratch/kocevski/143727/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin144.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=276652801.0 tmax=276912001.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 4.72
user 4.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/143727/ft2_4FGL_J2203.3-5009_daily_bin144.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/143727/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin144.fits evtable="EVENTS" outfile="/scratch/kocevski/143727/ft1_filtered_4FGL_J2203.3-5009_daily_bin144.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/143727/ft1_filtered_4FGL_J2203.3-5009_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/143727/ft2_4FGL_J2203.3-5009_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/143727/ltcube_276652801_276912001_4FGL_J2203.3-5009_daily_bin144.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/143727/ft2_4FGL_J2203.3-5009_daily_bin144.fits
.....................!
real 11.64
user 11.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143727/ft1_filtered_4FGL_J2203.3-5009_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/143727/ft2_4FGL_J2203.3-5009_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/143727/ltcube_276652801_276912001_4FGL_J2203.3-5009_daily_bin144.fits outfile=/scratch/kocevski/143727/expmap_276652801_276912001_4FGL_J2203.3-5009_daily_bin144.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/143727/ltcube_276652801_276912001_4FGL_J2203.3-5009_daily_bin144.fits
.....................!
real 190.08
user 184.80
sys 4.80

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/143727/ft1_filtered_4FGL_J2203.3-5009_daily_bin144.fits scfile=/scratch/kocevski/143727/ft2_4FGL_J2203.3-5009_daily_bin144.fits outfile=/scratch/kocevski/143727/cmap_276652801_276912001_4FGL_J2203.3-5009_daily_bin144.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.52
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/143727/ft1_filtered_4FGL_J2203.3-5009_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/143727/ft2_4FGL_J2203.3-5009_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/143727/Model_4FGL_J2203.3-5009_daily_bin144.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/143727/ft1_filtered_4FGL_J2203.3-5009_daily_bin144.fits.....................!
real 55.74
user 54.54
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.962       1.0000         .10000E-03   10000.    
     3 'norm      '    16.476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23332E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6806       1.0000         .10000E-03   10000.    
     9 'norm      '    .53025       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7534       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4322       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4528       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0755       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84777       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0074       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=   7730.274     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     2725 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0324        .17054E-06** at limit **
   2  Prefactor     11.972        14.216        .44506E-06   -.25709E-04
   3  norm          16.477        3.0264        .36908E-07   -.61586E-04
   4  Prefactor     4.9580        81.285       -.55620E-05   -.59914E-04
   5  Prefactor     .10000E-03    2.0890       -.22198E-07** at limit **
   6  Prefactor     16.372        20.026        .85925E-06    .48370E-04
   7  Prefactor     .10001E-03    16.522        .10544E-06** at limit **
   8  Prefactor     5.6803        4.6704       -.20645E-06   -.20840E-03
   9  norm          .52995        2.4180        .75331E-06   -.20163E-03
  10  Prefactor     .10000E-03    15.355        .39170E-06** at limit **
  11  Prefactor     .10000E-03    33.288       -.12513E-05** at limit **
  12  Prefactor     4.7539        8.1690        .24497E-05    .17518E-05
  13  Prefactor     3.2625        3.6717        .15863E-05   -.33650E-03
  14  Prefactor     .10000E-03    32.338       -.20548E-06** at limit **
  15  norm          .10000E-03    2.0008        .89570E-08** at limit **
  16  Prefactor     .10000E-03    2.3147        .99162E-08** at limit **
  17  Prefactor     .10000E-03    11.836       -.17251E-06** at limit **
  18  Prefactor     .10000E-03    7.2565        .20019E-06** at limit **
  19  Prefactor     4.4292        35.795       -.33736E-06    .63062E-06
  20  Prefactor     7.4557        9.6302        .95812E-07   -.62632E-05
  21  Prefactor     .10000E-03    26.693        .23254E-05** at limit **
  22  Prefactor     6.0756        5.6439        .97017E-07    .10365E-04
  23  Prefactor     .10000E-03    18.968       -.17469E-05** at limit **
  24  Prefactor     .10000E-03    3.9725       -.14228E-07** at limit **
  25  Normalizat    .84770        .16683       -.14874E-05   -.16150E-03
  26  Prefactor     1.0074        .12504       -.52815E-07   -.30941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.9721
  norm       = 16.4766
  Prefactor  = 4.958
  Prefactor  = 0.0001
  Prefactor  = 16.3719
  Prefactor  = 0.000100013
  Prefactor  = 5.68028
  norm       = 0.529951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75386
  Prefactor  = 3.26248
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42924
  Prefactor  = 7.45567
  Prefactor  = 0.0001
  Prefactor  = 6.07562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.847703
  Prefactor  = 1.00739
 **********
 **   18 **HESSE 
 **********

 FCN=   7730.274     FROM HESSE     STATUS=OK           466 CALLS     3191 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1213        .24193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.972        14.159        .11583E-03   -1.5016    
   3  norm          16.477        3.0268        .63167E-04   -1.4896    
   4  Prefactor     4.9580        83.279        .18104E-03   -1.5263    
   5  Prefactor     .10000E-03    2.0993        .12407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.372        19.847        .99006E-04   -1.4899    
   7  Prefactor     .10001E-03    19.493        .10117       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6803        4.6657        .15954E-03   -1.5231    
   9  norm          .52995        6.9304        .23858E-02   -1.5562    
  10  Prefactor     .10000E-03    15.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7539        8.1376        .92274E-03   -1.5272    
  13  Prefactor     3.2625        3.6733        .83934E-03   -1.5347    
  14  Prefactor     .10000E-03    32.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0022        .12145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3935        .26082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4292        34.967        .19128E-03   -1.5287    
  20  Prefactor     7.4557        9.4980        .14691E-03   -1.5162    
  21  Prefactor     .10000E-03    26.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.0756        5.6497        .16289E-03   -1.5215    
  23  Prefactor     .10000E-03    18.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.9758        .17114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .84770        .19172        .27217E-03   -.98323    
  26  Prefactor     1.0074        .14554        .20210E-03   -.92483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07327e-08
Minuit parameter uncertainties:
  1  2.35664e-05
  2  14.163
  3  3.02685
  4  40.7062
  5  1.026e-06
  6  19.8551
  7  0.00101697
  8  4.66597
  9  3.83309
  10  0.000134968
  11  8.50682e-06
  12  8.1395
  13  3.67351
  14  4.35073e-07
  15  5.32258e-07
  16  3.13355e-06
  17  2.22442e-08
  18  3.15731e-05
  19  24.9099
  20  9.49989
  21  3.64839e-05
  22  5.6502
  23  8.7833e-06
  24  7.03652e-07
  25  0.191873
  26  0.145595
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  4.754e+00  8.140e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.007e+00  1.456e-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.477e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/143727/likelihoodResults_276652801_276912001_4FGL_J2203.3-5009_daily_bin144.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): 0
logL (Free Index) = 7728.72790195
delta logL = 1.54648322256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7728.70652232
delta logL = 1.5678628526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85827       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1078       1.0000          .0000       10.000    
     3 'Normalizat'    .77104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0445       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.

 FCN=   7728.707     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      263 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85445        6.6450        .10630E-01    .22040E-03
   2  Index         5.1107        3.0196        .16081        .83634E-04
   3  Normalizat    .77141        .40483E-01    .64179E-01   -.48692E-06
   4  Prefactor     1.0442        .32643E-01    .40244E-01   -.17248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.854453
  Index      = 5.11066
  Normalizat = 0.771408
  Prefactor  = 1.04425
 **********
 **   18 **HESSE 
 **********

 FCN=   7728.707     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85445        15.539        .48103E-04   -1.5523    
   2  Index         5.1107        7.3568        .60498E-02    .22133E-01
   3  Normalizat    .77141        .16605        .28391E-03   -1.0114    
   4  Prefactor     1.0442        .13047        .19877E-03   -.91269    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.55849e-10
Minuit parameter uncertainties:
  1  7.28936
  2  5.95717
  3  0.166157
  4  0.130511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143727': 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) = 7728.70651909
delta logL = 1.56786608183

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  8.545e-01  7.289e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  5.111e+00  5.957e+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.044e+00  1.305e-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:  7.714e-01  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 5.11 +/- 5.96
Photon Flux (Free Index): 8.40e-08 +/- 5.66e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.07e-05

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/143727/cmap_HighResolution_276652801_276912001_4FGL_J2203.3-5009_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='1.57e+00', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-09-28 02:59:30.264700', photon_index_error2='5.96', photon_index2='5.11', ts='0.41', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.07e-05', EG='0.85', time_epoch_completed='1632823170.26', return_code='0', job_id='143727', GAL2='1.04', EG2='0.77', return_code2='102', photon_flux_error2='5.66e-08', ts2='3.80', photon_index='2.74' WHERE bin_id='144' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 02:59:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 143727: <4FGL_J2203.3-5009_daily_bin144> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin144> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:45:31 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:45:33 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:45:33 2021
Terminated at Tue Sep 28 02:59:30 2021
Results reported at Tue Sep 28 02:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin144 330.832 -50.1512 276652801 276912001 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 :                                   793.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

