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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1602
RA = 330.832, Dec = -50.1512
tmin = 654566401, tmax = 654825601
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='860225', job_status='RUN', time_executed='2021-10-02 00:17:30.711834', time_epoch_executed='1633159050.71' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/860225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/860225/ft1_4FGL_J2203.3-5009_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/860225/ft2_4FGL_J2203.3-5009_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/860225/ft1_4FGL_J2203.3-5009_daily_bin1602.fits outfile=/scratch/kocevski/860225/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1602.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=654566401.0 tmax=654825601.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 5.00
user 4.74
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/860225/ft1_filtered_4FGL_J2203.3-5009_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/860225/ft2_4FGL_J2203.3-5009_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/860225/ltcube_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.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/860225/ft2_4FGL_J2203.3-5009_daily_bin1602.fits
.....................!
real 11.77
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/860225/ft1_filtered_4FGL_J2203.3-5009_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/860225/ft2_4FGL_J2203.3-5009_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/860225/ltcube_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.fits outfile=/scratch/kocevski/860225/expmap_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.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/860225/ltcube_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.fits
.....................!
real 191.35
user 185.16
sys 5.66

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/860225/ft1_filtered_4FGL_J2203.3-5009_daily_bin1602.fits scfile=/scratch/kocevski/860225/ft2_4FGL_J2203.3-5009_daily_bin1602.fits outfile=/scratch/kocevski/860225/cmap_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/860225/ft1_filtered_4FGL_J2203.3-5009_daily_bin1602.fits scfile=/scratch/kocevski/860225/ft2_4FGL_J2203.3-5009_daily_bin1602.fits outfile=/scratch/kocevski/860225/cmap_HighResolution_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/860225/ft1_filtered_4FGL_J2203.3-5009_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/860225/ft2_4FGL_J2203.3-5009_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/860225/Model_4FGL_J2203.3-5009_daily_bin1602.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/860225/ft1_filtered_4FGL_J2203.3-5009_daily_bin1602.fits.....................!
real 55.41
user 54.11
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2505       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.960       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6611       1.0000         .10000E-03   10000.    
     9 'norm      '    5.4504       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1817       1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4709       1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.317       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 '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.830       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.7954       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3478       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69811       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=   7437.932     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3159 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0159        3.5838        .78611E-06   -.36650E-03
   2  Prefactor     .10000E-03    6.5618        .38695E-06** at limit **
   3  norm          3.2505        1.6870        .16829E-07   -.84909E-04
   4  Prefactor     .10000E-03    256.97       -.78270E-05** at limit **
   5  Prefactor     10.960        6.8283       -.33282E-08   -.44475E-04
   6  Prefactor     .10000E-03    6.3886       -.21330E-06** at limit **
   7  Prefactor     21.281        25.931        .18751E-05    .89439E-04
   8  Prefactor     1.6612        2.8607        .14014E-06   -.11108E-03
   9  norm          5.4506        3.6846       -.45795E-07   -.62125E-04
  10  Prefactor     4.1811        6.5489        .22148E-05   -.13134E-02
  11  Prefactor     57.379        35.866       -.76134E-07    .59736E-04
  12  Prefactor     1.5393        12.306       -.41464E-05   -.31979E-03
  13  Prefactor     2.4719        4.2794        .39303E-07   -.13930E-03
  14  Prefactor     59.341        85.548        .13351E-04    .15754E-03
  15  norm          .10000E-03    2.0177        .13045E-07** at limit **
  16  Prefactor     .10000E-03    1.2761        .61762E-07** at limit **
  17  Prefactor     .10000E-03    18.474        .59802E-06** at limit **
  18  Prefactor     .10000E-03    2.0714        .16114E-06** at limit **
  19  Prefactor     10.829        22.767       -.20865E-06    .70020E-05
  20  Prefactor     .10000E-03    4.8806       -.76455E-07** at limit **
  21  Prefactor     .10000E-03    51.329       -.14616E-05** at limit **
  22  Prefactor     .10000E-03    3.8153       -.11552E-06** at limit **
  23  Prefactor     .10000E-03    15.974       -.42485E-06** at limit **
  24  Prefactor     7.7953        11.883        .51858E-06   -.28197E-03
  25  Normalizat    1.3478        .17563       -.31692E-06    .84182E-04
  26  Prefactor     .69813        .12493       -.69682E-06    .74989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01588
  Prefactor  = 0.0001
  norm       = 3.25053
  Prefactor  = 0.000100003
  Prefactor  = 10.9605
  Prefactor  = 0.0001
  Prefactor  = 21.2806
  Prefactor  = 1.66116
  norm       = 5.45055
  Prefactor  = 4.18113
  Prefactor  = 57.3794
  Prefactor  = 1.53933
  Prefactor  = 2.47188
  Prefactor  = 59.3411
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7953
  Normalizat = 1.34778
  Prefactor  = 0.698129
 **********
 **   18 **HESSE 
 **********

 FCN=   7437.932     FROM HESSE     STATUS=OK           454 CALLS     3613 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0159        3.6887        .29281E-03   -1.5506    
   2  Prefactor     .10000E-03    6.5952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2505        1.6856        .77879E-04   -1.5347    
   4  Prefactor     .10000E-03    261.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.960        6.8295        .12102E-03   -1.5046    
   6  Prefactor     .10000E-03    6.3960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.281        25.931        .86823E-04   -1.4785    
   8  Prefactor     1.6612        2.8312        .18310E-03   -1.5450    
   9  norm          5.4506        3.6845        .13112E-03   -1.5241    
  10  Prefactor     4.1811        8.9394        .98543E-03   -1.5299    
  11  Prefactor     57.379        35.422        .52964E-04   -1.4192    
  12  Prefactor     1.5393        13.149        .34332E-03   -1.5460    
  13  Prefactor     2.4719        4.2721        .21433E-03   -1.5394    
  14  Prefactor     59.341        89.298        .52093E-04   -1.4166    
  15  norm          .10000E-03    2.0192        .11963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3018        .95110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0861        .12114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.829        22.929        .12175E-03   -1.5050    
  20  Prefactor     .10000E-03    4.8961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.8328        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.7953        12.041        .71809E-03   -1.5149    
  25  Normalizat    1.3478        .20791        .23526E-03   -.82151    
  26  Prefactor     .69813        .14589        .23520E-03   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07509e-09
Minuit parameter uncertainties:
  1  3.68954
  2  1.07875e-05
  3  1.6856
  4  0.00179794
  5  6.83002
  6  4.64536e-06
  7  25.9448
  8  2.83147
  9  3.68469
  10  8.9422
  11  35.4352
  12  9.00038
  13  4.27262
  14  89.5002
  15  9.76066e-07
  16  1.53346e-06
  17  3.2639e-05
  18  2.50314e-06
  19  22.9477
  20  5.04922e-07
  21  0.000112682
  22  1.11398e-06
  23  1.67484e-05
  24  12.0451
  25  0.208042
  26  0.145966
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  6.981e-01  1.460e-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.348e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/860225/likelihoodResults_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.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) = 7436.9938612
delta logL = 0.938494349909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7436.79310718
delta logL = 1.13924837847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41242E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.2954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72474       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=   7436.793     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      466 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41224E-03    .16256E-01    .34316E-03** at limit **
   2  Index        10.0000        6.3433        .50000    ** at limit **
   3  Normalizat    1.2947        .83240E-01    .54026E-01    .12823E-04
   4  Prefactor     .72522        .59367E-01    .42730E-01    .38468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000412238
  Index      = 10
  Normalizat = 1.2947
  Prefactor  = 0.725219
 **********
 **   18 **HESSE 
 **********

 FCN=   7436.793     FROM HESSE     STATUS=OK            37 CALLS      503 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41224E-03    .38880E-03    .16280E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.1375        .47176        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2947        .19511        .23889E-03   -.83725    
   4  Prefactor     .72522        .14436        .23120E-03   -1.0255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7801e-09
Minuit parameter uncertainties:
  1  0.000388801
  2  0.000165004
  3  0.195223
  4  0.144436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/860225': 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) = 7436.79309357
delta logL = 1.13926198477

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  4.122e-04  3.888e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.000e+01  1.650e-04  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:  7.252e-01  1.444e-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.295e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.32e-08 +/- 4.87e-08
Energy Flux (Free Index): 5.95e-06 +/- 5.47e-06

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/860225/cmap_HighResolution_654566401_654825601_4FGL_J2203.3-5009_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', comment='SUCCESS', energy_flux2='5.95e-06', dlogl='1.14e+00', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-10-02 00:31:34.672867', photon_index_error2='0.00', photon_index2='10.00', ts='0.04', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='9.64e-08', energy_flux_error2='5.47e-06', EG='1.35', time_epoch_completed='1633159894.67', return_code='0', job_id='860225', GAL2='0.73', EG2='1.29', return_code2='0', photon_flux_error2='4.87e-08', ts2='2.39', photon_index='2.74' WHERE bin_id='1602' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 860225: <4FGL_J2203.3-5009_daily_bin1602> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1602> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Oct  2 00:15:55 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:15:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:15:57 2021
Terminated at Sat Oct  2 00:31:35 2021
Results reported at Sat Oct  2 00:31:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1602 330.832 -50.1512 654566401 654825601 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 :                                   846.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

