/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 88 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin859
RA = 330.832, Dec = -50.1512
tmin = 461980801, tmax = 462240001
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='147938', job_status='RUN', time_executed='2021-09-28 03:02:10.697989', time_epoch_executed='1632823330.7' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147938/ft1_4FGL_J2203.3-5009_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147938/ft2_4FGL_J2203.3-5009_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147938/ft1_4FGL_J2203.3-5009_daily_bin859.fits outfile=/scratch/kocevski/147938/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin859.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=461980801.0 tmax=462240001.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.64
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147938/ft1_filtered_4FGL_J2203.3-5009_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/147938/ft2_4FGL_J2203.3-5009_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/147938/ltcube_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.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/147938/ft2_4FGL_J2203.3-5009_daily_bin859.fits
.....................!
real 12.98
user 12.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147938/ft1_filtered_4FGL_J2203.3-5009_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/147938/ft2_4FGL_J2203.3-5009_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/147938/ltcube_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.fits outfile=/scratch/kocevski/147938/expmap_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.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/147938/ltcube_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.fits
.....................!
real 190.06
user 185.72
sys 4.01

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/147938/ft1_filtered_4FGL_J2203.3-5009_daily_bin859.fits scfile=/scratch/kocevski/147938/ft2_4FGL_J2203.3-5009_daily_bin859.fits outfile=/scratch/kocevski/147938/cmap_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147938/ft1_filtered_4FGL_J2203.3-5009_daily_bin859.fits scfile=/scratch/kocevski/147938/ft2_4FGL_J2203.3-5009_daily_bin859.fits outfile=/scratch/kocevski/147938/cmap_HighResolution_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147938/ft1_filtered_4FGL_J2203.3-5009_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/147938/ft2_4FGL_J2203.3-5009_daily_bin859.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147938/Model_4FGL_J2203.3-5009_daily_bin859.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/147938/ft1_filtered_4FGL_J2203.3-5009_daily_bin859.fits.....................!
real 53.07
user 51.71
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .54948E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1571       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.470       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9760       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.298       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.401       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7076       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3843       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .63599       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1270       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=   7262.849     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3094 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69540        2.5234       -.64511E-06   -.33471E-03
   2  Prefactor     .10000E-03    7.8689       -.46079E-05** at limit **
   3  norm          1.4603        1.2791       -.13578E-06   -.13523E-03
   4  Prefactor     .10000E-03    20.208        .90072E-05** at limit **
   5  Prefactor     .10000E-03    2.2942        .62330E-07** at limit **
   6  Prefactor     .10000E-03    6.4139        .97077E-06** at limit **
   7  Prefactor     7.1566        18.692       -.15032E-05   -.16757E-03
   8  Prefactor     .10000E-03    1.4560        .31606E-06** at limit **
   9  norm          7.7928        4.1098       -.17091E-06   -.34006E-04
  10  Prefactor     .10000E-03    2.7775       -.12196E-07** at limit **
  11  Prefactor     59.450        36.672       -.17860E-04   -.49457E-04
  12  Prefactor     1.1684        1.4293        .52116E-06   -.44559E-02
  13  Prefactor     2.9757        3.4452       -.29813E-06   -.26101E-02
  14  Prefactor     31.276        52.167       -.33786E-04   -.17977E-04
  15  norm          .10000E-03    1.9653        .31314E-07** at limit **
  16  Prefactor     .10000E-03    1.1628       -.15139E-07** at limit **
  17  Prefactor     .10000E-03    9.4689        .45749E-05** at limit **
  18  Prefactor     6.8982        5.4081        .12842E-07    .35320E-04
  19  Prefactor     16.402        17.708        .72360E-06    .35197E-04
  20  Prefactor     2.7075        7.9732       -.71005E-06   -.51397E-04
  21  Prefactor     .10000E-03    33.294       -.30307E-05** at limit **
  22  Prefactor     7.3849        5.7635       -.26629E-06    .18312E-05
  23  Prefactor     .10000E-03    10.480        .36077E-05** at limit **
  24  Prefactor     .10000E-03    14.230       -.99862E-05** at limit **
  25  Normalizat    .63591        .16230        .54835E-05   -.59796E-04
  26  Prefactor     1.1270        .12639       -.35144E-07    .16240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.695399
  Prefactor  = 0.0001
  norm       = 1.46026
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.15661
  Prefactor  = 0.000100004
  norm       = 7.79277
  Prefactor  = 0.0001
  Prefactor  = 59.4496
  Prefactor  = 1.1684
  Prefactor  = 2.97572
  Prefactor  = 31.2758
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.89822
  Prefactor  = 16.402
  Prefactor  = 2.70754
  Prefactor  = 0.0001
  Prefactor  = 7.38487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.635906
  Prefactor  = 1.12698
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.849     FROM HESSE     STATUS=OK           458 CALLS     3552 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69540        2.5076        .24787E-03   -1.5541    
   2  Prefactor     .10000E-03    7.9157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4603        1.2637        .87236E-04   -1.5466    
   4  Prefactor     .10000E-03    20.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.490        .24836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1566        18.658        .74970E-03   -1.5173    
   8  Prefactor     .10000E-03    11.473        .19658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7928        4.1078        .12071E-03   -1.5150    
  10  Prefactor     .10000E-03    2.7855        .13869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.450        37.188        .52026E-04   -1.4164    
  12  Prefactor     1.1684        5.6074        .18560E-02   -1.5492    
  13  Prefactor     2.9757        3.4676        .81214E-03   -1.5363    
  14  Prefactor     31.276        53.244        .71620E-04   -1.4589    
  15  norm          .10000E-03    1.9694        .11668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1758        .89682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.8982        5.4085        .15276E-03   -1.5183    
  19  Prefactor     16.402        17.645        .98899E-04   -1.4898    
  20  Prefactor     2.7075        7.9317        .24754E-03   -1.5379    
  21  Prefactor     .10000E-03    33.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3849        5.7646        .14759E-03   -1.5164    
  23  Prefactor     .10000E-03    10.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .63591        .18536        .29560E-03   -1.0648    
  26  Prefactor     1.1270        .14549        .18450E-03   -.88609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54437e-08
Minuit parameter uncertainties:
  1  2.50795
  2  1.69234e-05
  3  1.26375
  4  1.00829e-05
  5  0.00019039
  6  4.96092e-06
  7  18.6733
  8  0.000426144
  9  4.10799
  10  6.72936e-06
  11  37.2027
  12  5.11982
  13  3.46782
  14  53.3245
  15  3.29479e-06
  16  3.13283e-06
  17  2.77883e-07
  18  5.4089
  19  17.6509
  20  7.9348
  21  2.084e-05
  22  5.76503
  23  3.75894e-06
  24  4.63005e-05
  25  0.185538
  26  0.145546
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.168e+00  5.120e+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.127e+00  1.455e-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:  6.359e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147938/likelihoodResults_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.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) = 7262.78556732
delta logL = 0.0630766994955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7262.77179134
delta logL = 0.0768526812108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0328       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0079       1.0000          .0000       10.000    
     3 'Normalizat'    .63975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1236       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7262.772     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      304 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0339        5.1114        .29012E-03    .25549E-04
   2  Index         2.0083        1.3449        .13229E-01   -.37298E-05
   3  Normalizat    .63977        .17469        .29475E-03    .12420E-05
   4  Prefactor     1.1236        .14268        .18472E-03   -.61546E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03388
  Index      = 2.0083
  Normalizat = 0.639767
  Prefactor  = 1.12363
 **********
 **   18 **HESSE 
 **********

 FCN=   7262.772     FROM HESSE     STATUS=OK            29 CALLS      333 TOTAL
                     EDM=   .33E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0339        5.1668        .58025E-04   -1.5423    
   2  Index         2.0083        1.3599        .52915E-03   -.64143    
   3  Normalizat    .63977        .17483        .58950E-04   -1.0632    
   4  Prefactor     1.1236        .14279        .73887E-05   -.88715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25922e-15
Minuit parameter uncertainties:
  1  5.16792
  2  1.38751
  3  0.174982
  4  0.142838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147938': 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) = 7262.77179128
delta logL = 0.0768527422169

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.034e+00  5.168e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.008e+00  1.388e+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.124e+00  1.428e-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:  6.398e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/147938/cmap_HighResolution_461980801_462240001_4FGL_J2203.3-5009_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-28 03:15:32.023822', job_id='147938', GAL2='1.12', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632824132.02', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='7.69e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='859' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 147938: <4FGL_J2203.3-5009_daily_bin859> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin859> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 03:00:32 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:00:34 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:00:34 2021
Terminated at Tue Sep 28 03:15:32 2021
Results reported at Tue Sep 28 03:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin859 330.832 -50.1512 461980801 462240001 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 :                                   799.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

