/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 174 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2203.4+1725_daily_bin47
RA = 330.872, Dec = 17.4318
tmin = 251510401, tmax = 251769601
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='152261', job_status='RUN', time_executed='2021-09-28 03:18:19.302853', time_epoch_executed='1632824299.3' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152261

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152261/ft1_4FGL_J2203.4+1725_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152261/ft1_4FGL_J2203.4+1725_daily_bin47.fits outfile=/scratch/kocevski/152261/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin47.fits ra=330.872 dec=17.4318 rad=12.0 tmin=251510401.0 tmax=251769601.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 1.47
user 1.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.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/152261/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin47.fits evtable="EVENTS" outfile="/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/152261/ltcube_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.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/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits
.....................!
real 12.59
user 12.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/152261/ltcube_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.fits outfile=/scratch/kocevski/152261/expmap_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.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/152261/ltcube_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.fits
.....................!
real 192.08
user 186.53
sys 5.17

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 162 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2203.4+1725 @ 330.872 17.4318

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits scfile=/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits outfile=/scratch/kocevski/152261/cmap_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.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.872 yref=17.4318 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits scfile=/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits outfile=/scratch/kocevski/152261/cmap_HighResolution_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.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.872 yref=17.4318 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152261/Model_4FGL_J2203.4+1725_daily_bin47.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits.....................!
real 136.92
user 135.28
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits', '/scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits', expMap='/scratch/kocevski/152261/expmap_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.fits', expCube='/scratch/kocevski/152261/ltcube_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152261/Model_4FGL_J2203.4+1725_daily_bin47.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2203.4+1725'

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.262e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/152261/ft1_filtered_4FGL_J2203.4+1725_daily_bin47.fits
Spacecraft file(s): /scratch/kocevski/152261/ft2_4FGL_J2203.4+1725_daily_bin47.fits
Exposure map: /scratch/kocevski/152261/expmap_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.fits
Exposure cube: /scratch/kocevski/152261/ltcube_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152261/Model_4FGL_J2203.4+1725_daily_bin47.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) = 8745.00114663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.4025       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11897E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.998       1.0000         .10000E-03   10000.    
     9 'norm      '    .39545E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24586E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8091       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19324E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.803       1.0000         .10000E-03   10000.    
    15 'norm      '    .13850E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4979       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20449E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8409       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3891       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.580       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11364E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .21741       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2641       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   8744.942     FROM MIGRAD    STATUS=CONVERGED   1065 CALLS     2570 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.587        .18142E-02** at limit **
   2  norm          9.3387        5.8896        .65348E-03    .19556E-03
   3  Prefactor     7.1921        5.5277        .74609E-03   -.38003E-04
   4  Prefactor     .10000E-03    2.4518        .14270E-02** at limit **
   5  Prefactor     .10000E-03    37.821        .18142E-02** at limit **
   6  norm          2.0136        2.4523        .14461E-03   -.32389E-04
   7  Prefactor     .10000E-03    67.927        .18142E-02** at limit **
   8  norm          16.989        3.5016        .75397E-04   -.62425E-04
   9  norm          .10000E-03    5.4819        .21269E-02** at limit **
  10  Prefactor     24.940        29.250        .81257E-04   -.17909E-04
  11  Prefactor     .10000E-03    132.34        .20034E-02** at limit **
  12  norm          1.8063        1.0539        .31065E-04   -.84171E-04
  13  Prefactor     .10000E-03    80.195        .20260E-02** at limit **
  14  Prefactor     16.796        12.224        .97708E-04   -.27925E-05
  15  norm          .10000E-03    4.2427        .36285E-03** at limit **
  16  Prefactor     12.260        12.268        .11364E-03   -.96041E-05
  17  Prefactor     2.8656        543.56        .25859E-03   -.61551E-06
  18  Prefactor     .10000E-03    4.1169        .18142E-02** at limit **
  19  Prefactor     .31770        .17600        .27213E-04   -.65171E-04
  20  Prefactor     8.7347        9.3976        .67402E-03   -.13629E-04
  21  norm          2.3893        1.4757        .86791E-04    .26198E-06
  22  Prefactor     14.324        20.126        .10490E-03   -.36850E-05
  23  Prefactor     .10000E-03    5.9035        .18142E-02** at limit **
  24  Normalizat    .21768        .26725        .74841E-03   -.22543E-04
  25  Prefactor     1.2642        .13457        .16793E-03   -.96403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.33873
  Prefactor  = 7.19208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01363
  Prefactor  = 0.0001
  norm       = 16.9892
  norm       = 0.0001
  Prefactor  = 24.9395
  Prefactor  = 0.0001
  norm       = 1.80628
  Prefactor  = 0.0001
  Prefactor  = 16.7956
  norm       = 0.0001
  Prefactor  = 12.2601
  Prefactor  = 2.86559
  Prefactor  = 0.0001
  Prefactor  = 0.317703
  Prefactor  = 8.73468
  norm       = 2.38927
  Prefactor  = 14.3236
  Prefactor  = 0.0001
  Normalizat = 0.217679
  Prefactor  = 1.26416
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.942     FROM HESSE     STATUS=OK           407 CALLS     2977 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3387        5.8892        .13070E-03   -1.5097    
   3  Prefactor     7.1921        5.5270        .29844E-04   -1.5172    
   4  Prefactor     .10000E-03    2.4520        .28541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0136        2.4516        .57845E-05   -1.5424    
   7  Prefactor     .10000E-03    67.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.989        3.5012        .30159E-05   -1.4883    
   9  norm          .10000E-03    5.4822        .42538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.940        29.251        .32503E-05   -1.4709    
  11  Prefactor     .10000E-03    132.42        .40069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8063        1.0538        .12426E-05   -1.5439    
  13  Prefactor     .10000E-03    80.246        .40519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.796        12.224        .39083E-05   -1.4888    
  15  norm          .10000E-03    4.2429        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.260        12.266        .45455E-05   -1.5008    
  17  Prefactor     2.8656        545.52        .10343E-04   -1.5369    
  18  Prefactor     .10000E-03    4.1176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .31770        .17597        .10885E-05   -1.5595    
  20  Prefactor     8.7347        9.3965        .26961E-04   -1.5117    
  21  norm          2.3893        1.4757        .34716E-05   -1.5399    
  22  Prefactor     14.324        20.130        .41958E-05   -1.4951    
  23  Prefactor     .10000E-03    5.9047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .21768        .26653        .29936E-04   -1.2814    
  25  Prefactor     1.2642        .13427        .67172E-05   -.84379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89999e-12
Minuit parameter uncertainties:
  1  4.24695e-05
  2  5.88954
  3  5.52735
  4  1.23146e-07
  5  5.04928e-06
  6  2.45175
  7  2.95907e-05
  8  3.50125
  9  1.1502e-07
  10  29.2682
  11  2.6612e-05
  12  1.05384
  13  1.17803e-05
  14  12.2256
  15  5.27537e-07
  16  12.2689
  17  79.8231
  18  1.94613e-08
  19  0.175975
  20  9.39809
  21  1.47572
  22  20.1395
  23  2.64006e-07
  24  0.268106
  25  0.134311
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.806e+00  1.054e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.264e+00  1.343e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  2.177e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.17
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.11e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.56e-05

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) = 8744.76864349
delta logL = 0.173512212999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8744.74510123
delta logL = 0.197054479922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5239       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8153       1.0000          .0000       5.0000    
     3 'Normalizat'    .25464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8744.745     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5199        1.4251        .86498E-02    .66747E-03
   2  alpha         1.8131        .55958        .43295       -.42182E-04
   3  Normalizat    .25505        .39056        .15816        .10780E-03
   4  Prefactor     1.2551        .20305        .33441E-01    .19944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51993
  alpha      = 1.81309
  Normalizat = 0.255054
  Prefactor  = 1.25506
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.745     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5199        1.4998        .75941E-04   -1.5461    
   2  alpha         1.8131        .74350        .15191E-01   -.27834    
   3  Normalizat    .25505        .26349        .69534E-03   -1.2563    
   4  Prefactor     1.2551        .13322        .16850E-03   -.84653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51702e-09
Minuit parameter uncertainties:
  1  1.4998
  2  0.755899
  3  0.264787
  4  0.13326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152261': 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) = 8744.74509676
delta logL = 0.197058947635

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.520e+00  1.500e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.813e+00  7.559e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.255e+00  1.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  2.551e-01  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 330.872 17.432
Photon Index (Free Index): 1.81 +/- 0.76
Photon Flux (Free Index): 4.27e-08 +/- 5.83e-08
Energy Flux (Free Index): 3.24e-05 +/- 2.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/152261/cmap_HighResolution_251510401_251769601_4FGL_J2203.4+1725_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.11e-08', energy_flux2='3.24e-05', photon_flux_error='4.15e-08', dlogl='1.97e-01', energy_flux='2.68e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-09-28 03:30:56.251571', photon_index_error2='0.76', photon_index2='1.81', ts='6.17', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='0.22', time_epoch_completed='1632825056.25', return_code='0', job_id='152261', GAL2='1.26', EG2='0.26', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.83e-08', ts2='6.40', photon_index='2.23' WHERE bin_id='47' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 152261: <4FGL_J2203.4+1725_daily_bin47> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin47> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 03:15:11 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:15:13 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:15:13 2021
Terminated at Tue Sep 28 03:30:57 2021
Results reported at Tue Sep 28 03:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin47 330.872 17.4318 251510401 251769601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2203.4+1725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

