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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1264
RA = 330.832, Dec = -50.1512
tmin = 566956801, tmax = 567216001
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='150672', job_status='RUN', time_executed='2021-09-28 03:11:14.647512', time_epoch_executed='1632823874.65' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150672/ft1_4FGL_J2203.3-5009_daily_bin1264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150672/ft2_4FGL_J2203.3-5009_daily_bin1264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150672/ft1_4FGL_J2203.3-5009_daily_bin1264.fits outfile=/scratch/kocevski/150672/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1264.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=566956801.0 tmax=567216001.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.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150672/ft2_4FGL_J2203.3-5009_daily_bin1264.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/150672/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1264.fits evtable="EVENTS" outfile="/scratch/kocevski/150672/ft1_filtered_4FGL_J2203.3-5009_daily_bin1264.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.51
user 0.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150672/ft1_filtered_4FGL_J2203.3-5009_daily_bin1264.fits" evtable="EVENTS" scfile=/scratch/kocevski/150672/ft2_4FGL_J2203.3-5009_daily_bin1264.fits sctable="SC_DATA" outfile=/scratch/kocevski/150672/ltcube_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.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/150672/ft2_4FGL_J2203.3-5009_daily_bin1264.fits
.....................!
real 12.80
user 12.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150672/ft1_filtered_4FGL_J2203.3-5009_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/150672/ft2_4FGL_J2203.3-5009_daily_bin1264.fits sctable="SC_DATA" expcube=/scratch/kocevski/150672/ltcube_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.fits outfile=/scratch/kocevski/150672/expmap_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.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/150672/ltcube_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.fits
.....................!
real 191.01
user 184.76
sys 5.69

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/150672/ft1_filtered_4FGL_J2203.3-5009_daily_bin1264.fits scfile=/scratch/kocevski/150672/ft2_4FGL_J2203.3-5009_daily_bin1264.fits outfile=/scratch/kocevski/150672/cmap_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150672/ft1_filtered_4FGL_J2203.3-5009_daily_bin1264.fits scfile=/scratch/kocevski/150672/ft2_4FGL_J2203.3-5009_daily_bin1264.fits outfile=/scratch/kocevski/150672/cmap_HighResolution_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5810       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3479       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.609       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .56076       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11735E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23034E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    11.292       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .55043E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2069       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82441       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1439       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=   7912.976     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     2726 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5791        2.9525        .19362E-07    .13910E-04
   2  Prefactor     1.3525        37.765       -.85757E-06   -.56366E-05
   3  norm          4.9761        2.6120        .11567E-07    .14241E-04
   4  Prefactor     .10000E-03    12.157       -.57663E-07** at limit **
   5  Prefactor     20.610        8.6573        .10513E-06   -.91786E-05
   6  Prefactor     .10000E-03    10.773       -.98006E-07** at limit **
   7  Prefactor     .10000E-03    81.529       -.11999E-05** at limit **
   8  Prefactor     .10000E-03    1.9950        .27090E-06** at limit **
   9  norm          .56143        2.3203       -.97110E-07   -.25195E-04
  10  Prefactor     .10000E-03    2.2898       -.32867E-07** at limit **
  11  Prefactor     7.7561        45.822       -.11197E-05   -.33749E-04
  12  Prefactor     .10000E-03    4.8600       -.78441E-06** at limit **
  13  Prefactor     4.0043        4.4835       -.28737E-06   -.21400E-03
  14  Prefactor     .10001E-03    1329.3        .46813E-04** at limit **
  15  norm          11.292        5.8485       -.38449E-07   -.29370E-04
  16  Prefactor     3.8212        4.2170        .57440E-06    .78902E-05
  17  Prefactor     .10000E-03    485.53        .19235E-05** at limit **
  18  Prefactor     6.2079        3.8988       -.10157E-07   -.35539E-04
  19  Prefactor     .10000E-03    9.5635        .13587E-07** at limit **
  20  Prefactor     .10001E-03    4.2530       -.50365E-06** at limit **
  21  Prefactor     .10000E-03    21.836       -.97399E-07** at limit **
  22  Prefactor     .10000E-03    4.3663        .10336E-06** at limit **
  23  Prefactor     .10000E-03    6.2975       -.19169E-07** at limit **
  24  Prefactor     .10000E-03    2.9075       -.33787E-07** at limit **
  25  Normalizat    .82416        .17280       -.11771E-05    .38229E-05
  26  Prefactor     1.1438        .13111        .10656E-05   -.94509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57913
  Prefactor  = 1.35246
  norm       = 4.97614
  Prefactor  = 0.0001
  Prefactor  = 20.6098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.561432
  Prefactor  = 0.0001
  Prefactor  = 7.75612
  Prefactor  = 0.0001
  Prefactor  = 4.00432
  Prefactor  = 0.000100007
  norm       = 11.2919
  Prefactor  = 3.82123
  Prefactor  = 0.000100001
  Prefactor  = 6.20795
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.824164
  Prefactor  = 1.14384
 **********
 **   18 **HESSE 
 **********

 FCN=   7912.976     FROM HESSE     STATUS=OK           460 CALLS     3186 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5791        2.9443        .15847E-03   -1.5387    
   2  Prefactor     1.3525        38.270        .37703E-03   -1.5475    
   3  norm          4.9761        2.6094        .10060E-03   -1.5262    
   4  Prefactor     .10000E-03    12.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.610        8.6351        .88229E-04   -1.4800    
   6  Prefactor     .10000E-03    10.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    84.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2599        .23600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .56143        2.2430        .26320E-03   -1.5558    
  10  Prefactor     .10000E-03    2.2940        .13146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7561        45.934        .14403E-03   -1.5151    
  12  Prefactor     .10000E-03    4.8948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0043        4.5245        .18348E-03   -1.5308    
  14  Prefactor     .10001E-03    1334.1        .36551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.292        5.8468        .11922E-03   -1.5036    
  16  Prefactor     3.8212        4.2346        .86664E-03   -1.5317    
  17  Prefactor     .10000E-03    503.05        .37179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2079        3.9014        .13367E-03   -1.5210    
  19  Prefactor     .10000E-03    9.5804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    17.216        .34407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.2983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.9120        .14814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82416        .19323        .28261E-03   -.99179    
  26  Prefactor     1.1438        .14759        .20127E-03   -.88077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40799e-10
Minuit parameter uncertainties:
  1  2.94447
  2  14.3983
  3  2.60943
  4  2.88492e-06
  5  8.63558
  6  5.16866e-06
  7  0.000183033
  8  0.000307098
  9  2.2433
  10  1.0527e-06
  11  37.7937
  12  2.16805e-05
  13  4.52485
  14  0.00646128
  15  5.84709
  16  4.23492
  17  0.00133674
  18  3.90152
  19  5.11147e-06
  20  0.00068202
  21  1.3593e-06
  22  2.77323e-06
  23  5.21406e-07
  24  3.8733e-07
  25  0.193396
  26  0.147646
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.144e+00  1.476e-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.242e-01  1.934e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150672/likelihoodResults_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.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) = 7912.97728079
delta logL = -0.000973713379608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7912.97630689
delta logL = 1.91265826288e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7679       1.0000          .0000       10.000    
     3 'Normalizat'    .82416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1439       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=   7912.976     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    869.21        .18142E-02** at limit **
   2  Index         2.7991        5.8835        .50000       -.59676E-04
   3  Normalizat    .82416        .70807E-01    .28261E-03    .15073E-03
   4  Prefactor     1.1438        .58729E-01    .20127E-03    .11227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.79908
  Normalizat = 0.824164
  Prefactor  = 1.14384
 **********
 **   18 **HESSE 
 **********

 FCN=   7912.976     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    6.2760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7991        6.3988        .50000       -.45580    
   3  Normalizat    .82416        .17193        .11304E-04   -.99179    
   4  Prefactor     1.1438        .14288        .40254E-04   -.88077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15663e-09
Minuit parameter uncertainties:
  1  0.000692806
  2  4.89516
  3  0.172047
  4  0.142924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150672': 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) = 7912.97630632
delta logL = 7.59314389143e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  6.928e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.799e+00  4.895e+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.144e+00  1.429e-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.242e-01  1.720e-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/150672/cmap_HighResolution_566956801_567216001_4FGL_J2203.3-5009_daily_bin1264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-28 03:24:30.185772', job_id='150672', GAL2='1.14', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632824670.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='7.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1264' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:24:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 150672: <4FGL_J2203.3-5009_daily_bin1264> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1264> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:15 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:16 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:16 2021
Terminated at Tue Sep 28 03:24:30 2021
Results reported at Tue Sep 28 03:24:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1264 330.832 -50.1512 566956801 567216001 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

