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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin844
RA = 330.872, Dec = 17.4318
tmin = 458092801, tmax = 458352001
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='155569', job_status='RUN', time_executed='2021-09-28 03:25:49.813116', time_epoch_executed='1632824749.81' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155569/ft1_4FGL_J2203.4+1725_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155569/ft1_4FGL_J2203.4+1725_daily_bin844.fits outfile=/scratch/kocevski/155569/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin844.fits ra=330.872 dec=17.4318 rad=12.0 tmin=458092801.0 tmax=458352001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.62
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.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/155569/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin844.fits evtable="EVENTS" outfile="/scratch/kocevski/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.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/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/155569/ltcube_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.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/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/155569/ltcube_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.fits outfile=/scratch/kocevski/155569/expmap_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.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/155569/ltcube_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.fits
.....................!
real 191.70
user 185.77
sys 5.61

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/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits scfile=/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits outfile=/scratch/kocevski/155569/cmap_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits scfile=/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits outfile=/scratch/kocevski/155569/cmap_HighResolution_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/155569/Model_4FGL_J2203.4+1725_daily_bin844.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/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits.....................!
real 129.78
user 128.36
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits', '/scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits', expMap='/scratch/kocevski/155569/expmap_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.fits', expCube='/scratch/kocevski/155569/ltcube_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/155569/Model_4FGL_J2203.4+1725_daily_bin844.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/155569/ft1_filtered_4FGL_J2203.4+1725_daily_bin844.fits
Spacecraft file(s): /scratch/kocevski/155569/ft2_4FGL_J2203.4+1725_daily_bin844.fits
Exposure map: /scratch/kocevski/155569/expmap_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.fits
Exposure cube: /scratch/kocevski/155569/ltcube_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/155569/Model_4FGL_J2203.4+1725_daily_bin844.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) = 8123.57136385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.7869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11986E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7744       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2613       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.813       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.103       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6417       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .72974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5498       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1582       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1200       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90712       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84221       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.

 FCN=   8123.560     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2907 TOTAL
                     EDM=   .55E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.936        .33207E-06** at limit **
   2  norm          9.7863        5.7218        .17319E-06    .77087E-05
   3  Prefactor     .10000E-03    1.7861       -.32907E-07** at limit **
   4  Prefactor     5.1256        8.1173       -.19136E-06   -.90836E-05
   5  Prefactor     .10000E-03    576.90        .20794E-04** at limit **
   6  norm          5.7750        3.2075        .25326E-06   -.41576E-04
   7  Prefactor     .10000E-03    50.976       -.50813E-08** at limit **
   8  norm          2.2608        2.4994       -.15416E-06   -.14714E-04
   9  norm          .10000E-03    26.849       -.27812E-06** at limit **
  10  Prefactor     18.049        33.879        .45320E-05   -.72402E-06
  11  Prefactor     .10000E-03    16.344        .32773E-07** at limit **
  12  norm          1.4728        .86176       -.25691E-07   -.15079E-03
  13  Prefactor     79.817        38.217       -.14721E-06   -.23571E-06
  14  Prefactor     17.104        14.105       -.18883E-06    .45935E-05
  15  norm          1.6408        3.2849       -.71704E-07   -.12698E-04
  16  Prefactor     22.629        14.902       -.91599E-07    .37023E-05
  17  Prefactor     .10000E-03    69.783       -.48029E-06** at limit **
  18  Prefactor     .10000E-03    8.2591       -.12030E-06** at limit **
  19  Prefactor     .72973        .21986       -.48298E-08    .36817E-04
  20  Prefactor     7.5497        6.0650       -.17735E-07   -.76311E-07
  21  norm          1.1582        1.0600       -.26595E-07    .53103E-05
  22  Prefactor     .10000E-03    7.9580       -.14951E-07** at limit **
  23  Prefactor     1.1195        8.7118        .22418E-05    .30504E-05
  24  Normalizat    .90722        .22955        .29282E-06    .39653E-04
  25  Prefactor     .84219        .10529        .37971E-06    .43530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.78626
  Prefactor  = 0.0001
  Prefactor  = 5.12557
  Prefactor  = 0.0001
  norm       = 5.77496
  Prefactor  = 0.0001
  norm       = 2.26084
  norm       = 0.0001
  Prefactor  = 18.0485
  Prefactor  = 0.0001
  norm       = 1.47278
  Prefactor  = 79.8171
  Prefactor  = 17.1036
  norm       = 1.64084
  Prefactor  = 22.6287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.729728
  Prefactor  = 7.54966
  norm       = 1.15825
  Prefactor  = 0.0001
  Prefactor  = 1.11945
  Normalizat = 0.90722
  Prefactor  = 0.842195
 **********
 **   18 **HESSE 
 **********

 FCN=   8123.560     FROM HESSE     STATUS=OK           431 CALLS     3338 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.7863        5.7221        .12809E-03   -1.5082    
   3  Prefactor     .10000E-03    1.7947        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1256        8.1022        .17756E-03   -1.5255    
   5  Prefactor     .10000E-03    574.33        .20639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7750        3.1918        .10524E-03   -1.5227    
   7  Prefactor     .10000E-03    50.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2608        2.4916        .14107E-03   -1.5407    
   9  norm          .10000E-03    27.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.049        33.695        .94238E-04   -1.4858    
  11  Prefactor     .10000E-03    16.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4728        .85784        .61468E-04   -1.5465    
  13  Prefactor     79.817        38.227        .44954E-04   -1.3919    
  14  Prefactor     17.104        14.126        .96847E-04   -1.4881    
  15  norm          1.6408        3.2466        .22348E-03   -1.5452    
  16  Prefactor     22.629        14.916        .84203E-04   -1.4756    
  17  Prefactor     .10000E-03    69.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .72973        .22009        .21810E-04   -1.5537    
  20  Prefactor     7.5497        6.0682        .14595E-03   -1.5158    
  21  norm          1.1582        1.0699        .86433E-04   -1.5493    
  22  Prefactor     .10000E-03    7.9596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1195        8.7118        .22196E-02   -1.5496    
  24  Normalizat    .90722        .26806        .37569E-03   -.96207    
  25  Prefactor     .84219        .12409        .18613E-03   -.98191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74627e-11
Minuit parameter uncertainties:
  1  3.23913e-05
  2  5.72239
  3  2.05122e-06
  4  8.10393
  5  0.000867486
  6  3.19188
  7  5.89296e-06
  8  2.49167
  9  1.26891e-05
  10  33.7303
  11  1.63864e-05
  12  0.85785
  13  38.2391
  14  14.1286
  15  3.24698
  16  14.918
  17  8.78821e-05
  18  1.24702e-05
  19  0.220091
  20  6.06867
  21  1.06996
  22  1.08362e-06
  23  6.24675
  24  0.268451
  25  0.124132
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.473e+00  8.579e-01  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:  8.422e-01  1.241e-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:  9.072e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.45
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.27e-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) = 8122.33241857
delta logL = 1.22801856922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8122.25453116
delta logL = 1.30590598256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0233       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4183       1.0000          .0000       5.0000    
     3 'Normalizat'    .94564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83319       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=   8122.255     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0227        .68080        .12702E-01   -.66037E-04
   2  alpha         1.4182        .33585        .31138       -.51316E-04
   3  Normalizat    .94570        .21577        .83271E-01    .29395E-04
   4  Prefactor     .83316        .10393        .44148E-01    .69168E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02274
  alpha      = 1.41824
  Normalizat = 0.945699
  Prefactor  = 0.83316
 **********
 **   18 **HESSE 
 **********

 FCN=   8122.255     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0227        .88541        .56247E-04   -1.5506    
   2  alpha         1.4182        .47763        .12522E-01   -.44749    
   3  Normalizat    .94570        .25426        .36865E-03   -.94872    
   4  Prefactor     .83316        .12277        .18705E-03   -.98517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99574e-09
Minuit parameter uncertainties:
  1  0.885421
  2  0.481276
  3  0.254581
  4  0.122815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155569': 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) = 8122.25453081
delta logL = 1.30590632801

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.023e+00  8.854e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.418e+00  4.813e-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:  8.332e-01  1.228e-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:  9.457e-01  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.97
Ra Dec: 330.872 17.432
Photon Index (Free Index): 1.42 +/- 0.48
Photon Flux (Free Index): 2.48e-08 +/- 2.21e-08
Energy Flux (Free Index): 4.94e-05 +/- 4.63e-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/155569/cmap_HighResolution_458092801_458352001_4FGL_J2203.4+1725_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='4.94e-05', photon_flux_error='3.37e-08', dlogl='1.31e+00', energy_flux='2.19e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2021-09-28 03:38:39.048037', photon_index_error2='0.48', photon_index2='1.42', ts='9.45', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.63e-05', EG='0.91', time_epoch_completed='1632825519.05', return_code='0', job_id='155569', GAL2='0.83', EG2='0.95', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='2.21e-08', ts2='11.97', photon_index='2.23' WHERE bin_id='844' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:38:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 155569: <4FGL_J2203.4+1725_daily_bin844> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin844> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:25:38 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:25:40 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:25:40 2021
Terminated at Tue Sep 28 03:38:39 2021
Results reported at Tue Sep 28 03:38:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin844 330.872 17.4318 458092801 458352001 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             368.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

