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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1321
RA = 330.832, Dec = -50.1512
tmin = 581731201, tmax = 581990401
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='150764', job_status='RUN', time_executed='2021-09-28 03:13:43.775580', time_epoch_executed='1632824023.78' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150764

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150764/ft1_4FGL_J2203.3-5009_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150764/ft2_4FGL_J2203.3-5009_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150764/ft1_4FGL_J2203.3-5009_daily_bin1321.fits outfile=/scratch/kocevski/150764/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1321.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=581731201.0 tmax=581990401.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.54
user 2.35
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150764/ft1_filtered_4FGL_J2203.3-5009_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/150764/ft2_4FGL_J2203.3-5009_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/150764/ltcube_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.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/150764/ft2_4FGL_J2203.3-5009_daily_bin1321.fits
.....................!
real 15.89
user 15.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150764/ft1_filtered_4FGL_J2203.3-5009_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/150764/ft2_4FGL_J2203.3-5009_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/150764/ltcube_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.fits outfile=/scratch/kocevski/150764/expmap_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.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/150764/ltcube_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.fits
.....................!
real 189.73
user 185.31
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/150764/ft1_filtered_4FGL_J2203.3-5009_daily_bin1321.fits scfile=/scratch/kocevski/150764/ft2_4FGL_J2203.3-5009_daily_bin1321.fits outfile=/scratch/kocevski/150764/cmap_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=330.832 yref=-50.1512 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150764/ft1_filtered_4FGL_J2203.3-5009_daily_bin1321.fits scfile=/scratch/kocevski/150764/ft2_4FGL_J2203.3-5009_daily_bin1321.fits outfile=/scratch/kocevski/150764/cmap_HighResolution_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.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.59
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150764/ft1_filtered_4FGL_J2203.3-5009_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/150764/ft2_4FGL_J2203.3-5009_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150764/Model_4FGL_J2203.3-5009_daily_bin1321.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/150764/ft1_filtered_4FGL_J2203.3-5009_daily_bin1321.fits.....................!
real 50.58
user 49.32
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15431E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.869       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.627       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43980E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68326       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.830       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.768       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4234       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3802       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1508       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=   6459.762     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3086 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8496       -.52853E-06** at limit **
   2  Prefactor     .10000E-03    81.908        .15024E-05** at limit **
   3  norm          26.869        5.5259       -.17343E-07   -.21195E-03
   4  Prefactor     .10000E-03    48.620       -.54389E-06** at limit **
   5  Prefactor     .10000E-03    14.476        .12574E-06** at limit **
   6  Prefactor     32.901        26.765        .18174E-06    .21025E-04
   7  Prefactor     19.625        22.264        .11219E-06   -.15568E-04
   8  Prefactor     .10000E-03    2.6613       -.85687E-07** at limit **
   9  norm          2.5655        3.7764        .27588E-06    .11165E-03
  10  Prefactor     .10091E-03    9.1798       -.29543E-05** at limit **
  11  Prefactor     .10000E-03    12.837        .16396E-06** at limit **
  12  Prefactor     12.764        10.744        .64331E-07   -.28506E-04
  13  Prefactor     .68293        4.7413        .14314E-05   -.10332E-04
  14  Prefactor     .10000E-03    58.149       -.23171E-05** at limit **
  15  norm          .10000E-03    3.2468       -.44313E-07** at limit **
  16  Prefactor     3.3747        2.7417        .77307E-09   -.48693E-04
  17  Prefactor     .10000E-03    26.953        .20690E-05** at limit **
  18  Prefactor     11.831        8.1716        .61153E-06    .10137E-03
  19  Prefactor     .10000E-03    22.270        .27383E-06** at limit **
  20  Prefactor     .10000E-03    11.844        .17697E-05** at limit **
  21  Prefactor     19.822        85.373       -.10199E-04   -.42031E-06
  22  Prefactor     .10000E-03    2.4512       -.18873E-07** at limit **
  23  Prefactor     .10000E-03    21.114       -.98010E-06** at limit **
  24  Prefactor     1.4235        22.483        .17957E-04    .27036E-04
  25  Normalizat    1.3802        .22945       -.15030E-05   -.49966E-05
  26  Prefactor     1.1508        .17585        .23795E-06   -.22335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.8688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9009
  Prefactor  = 19.6245
  Prefactor  = 0.0001
  norm       = 2.56553
  Prefactor  = 0.000100909
  Prefactor  = 0.0001
  Prefactor  = 12.7643
  Prefactor  = 0.682934
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.37475
  Prefactor  = 0.0001
  Prefactor  = 11.8309
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 19.8216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42352
  Normalizat = 1.38024
  Prefactor  = 1.15078
 **********
 **   18 **HESSE 
 **********

 FCN=   6459.762     FROM HESSE     STATUS=OK           458 CALLS     3544 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.567        .30445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.869        5.5260        .77285E-04   -1.4671    
   4  Prefactor     .10000E-03    48.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.901        26.719        .69855E-04   -1.4560    
   7  Prefactor     19.625        22.263        .90407E-04   -1.4822    
   8  Prefactor     .10000E-03    2.6882        .12800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5655        3.7551        .18245E-03   -1.5388    
  10  Prefactor     .10091E-03    136.75        .44918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.764        10.741        .11211E-03   -1.4993    
  13  Prefactor     .68293        4.7325        .33138E-03   -1.5543    
  14  Prefactor     .10000E-03    58.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2499        .14143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3747        2.7430        .11656E-03   -1.5341    
  17  Prefactor     .10000E-03    26.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.831        8.2225        .58236E-03   -1.5020    
  19  Prefactor     .10000E-03    22.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.822        85.223        .90085E-04   -1.4817    
  22  Prefactor     .10000E-03    2.4531        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4235        22.591        .18123E-02   -1.5469    
  25  Normalizat    1.3802        .27642        .29193E-03   -.81202    
  26  Prefactor     1.1508        .21192        .24950E-03   -.87860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47299e-09
Minuit parameter uncertainties:
  1  5.60775e-05
  2  0.000344109
  3  5.52609
  4  3.90416e-05
  5  9.04818e-05
  6  26.7289
  7  22.2727
  8  7.45917e-06
  9  3.75541
  10  0.0223537
  11  6.09654e-06
  12  10.7429
  13  3.5957
  14  4.27533e-05
  15  4.72355e-06
  16  2.74313
  17  9.236e-06
  18  8.22332
  19  0.000227384
  20  0.000454035
  21  82.4003
  22  1.2115e-06
  23  4.39244e-05
  24  11.3464
  25  0.276716
  26  0.212073
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.276e+01  1.074e+01  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.151e+00  2.121e-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:  1.380e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 5.28e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.23e-05

TS (Fixed Index): 2.03
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150764/likelihoodResults_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.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) = 6459.75236414
delta logL = 0.00989881269197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6459.74733012
delta logL = 0.0149328300367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5958       1.0000          .0000       10.000    
     3 'Normalizat'    1.3861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1469       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=   6459.747     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      237 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.008        13.610        .10702E-03   -.12633E-02
   2  Index         2.5952        .82532        .98864E-02   -.32327E-03
   3  Normalizat    1.3861        .26801        .29141E-03    .40438E-03
   4  Prefactor     1.1469        .21048        .24985E-03    .54492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0085
  Index      = 2.59522
  Normalizat = 1.3861
  Prefactor  = 1.14688
 **********
 **   18 **HESSE 
 **********

 FCN=   6459.747     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.008        13.221        .21405E-04   -1.4959    
   2  Index         2.5952        .80152        .39546E-03   -.50174    
   3  Normalizat    1.3861        .26818        .58282E-04   -.81032    
   4  Prefactor     1.1469        .21057        .49970E-04   -.87982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77472e-09
Minuit parameter uncertainties:
  1  13.2233
  2  0.806059
  3  0.268456
  4  0.210724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150764': 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) = 6459.74732987
delta logL = 0.0149330834292

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.401e+01  1.322e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.595e+00  8.061e-01  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.147e+00  2.107e-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:  1.386e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 2.60 +/- 0.81
Photon Flux (Free Index): 5.94e-08 +/- 5.43e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.44e-05

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/150764/cmap_HighResolution_581731201_581990401_4FGL_J2203.3-5009_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='1.57e-05', photon_flux_error='5.28e-08', dlogl='1.49e-02', energy_flux='1.47e-05', photon_flux2='5.94e-08', job_status='DONE', time_completed='2021-09-28 03:26:36.428421', photon_index_error2='0.81', photon_index2='2.60', ts='2.03', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.44e-05', EG='1.38', time_epoch_completed='1632824796.43', return_code='0', job_id='150764', GAL2='1.15', EG2='1.39', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.43e-08', ts2='2.05', photon_index='2.74' WHERE bin_id='1321' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:26:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 150764: <4FGL_J2203.3-5009_daily_bin1321> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1321 330.832 -50.1512 581731201 581990401 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 :                                   743.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

