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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin726
RA = 330.872, Dec = 17.4318
tmin = 427507201, tmax = 427766401
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='155376', job_status='RUN', time_executed='2021-09-28 03:25:40.760731', time_epoch_executed='1632824740.76' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155376

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155376/ft1_4FGL_J2203.4+1725_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155376/ft2_4FGL_J2203.4+1725_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155376/ft1_4FGL_J2203.4+1725_daily_bin726.fits outfile=/scratch/kocevski/155376/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin726.fits ra=330.872 dec=17.4318 rad=12.0 tmin=427507201.0 tmax=427766401.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.44
user 5.17
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155376/ft2_4FGL_J2203.4+1725_daily_bin726.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/155376/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/155376/ft1_filtered_4FGL_J2203.4+1725_daily_bin726.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155376/ft1_filtered_4FGL_J2203.4+1725_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/155376/ft2_4FGL_J2203.4+1725_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/155376/ltcube_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.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/155376/ft2_4FGL_J2203.4+1725_daily_bin726.fits
.....................!
real 12.10
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155376/ft1_filtered_4FGL_J2203.4+1725_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/155376/ft2_4FGL_J2203.4+1725_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/155376/ltcube_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.fits outfile=/scratch/kocevski/155376/expmap_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.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/155376/ltcube_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.fits
.....................!
real 192.51
user 186.95
sys 4.59

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/155376/ft1_filtered_4FGL_J2203.4+1725_daily_bin726.fits scfile=/scratch/kocevski/155376/ft2_4FGL_J2203.4+1725_daily_bin726.fits outfile=/scratch/kocevski/155376/cmap_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155376/ft1_filtered_4FGL_J2203.4+1725_daily_bin726.fits scfile=/scratch/kocevski/155376/ft2_4FGL_J2203.4+1725_daily_bin726.fits outfile=/scratch/kocevski/155376/cmap_HighResolution_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0628       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.975       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.446       1.0000         .10000E-03   10000.    
     9 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .91053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.123       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16553E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.941       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14907       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.864       1.0000         .10000E-03   10000.    
    21 'norm      '    .42603       1.0000         .10000E-03   10000.    
    22 'Prefactor '    62.398       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93705       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=   4807.038     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2945 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.756       -.25501E-06** at limit **
   2  norm          4.0627        5.3644       -.48151E-06    .19305E-04
   3  Prefactor     .10000E-03    33.598        .53922E-05** at limit **
   4  Prefactor     .10000E-03    4.6567        .52442E-07** at limit **
   5  Prefactor     .10000E-03    76.494       -.15241E-05** at limit **
   6  norm          18.976        5.4864       -.10851E-07    .87786E-04
   7  Prefactor     .10000E-03    50.850        .22085E-05** at limit **
   8  norm          11.447        4.6949        .57456E-07   -.15035E-04
   9  norm          .10000E-03    27.848        .23798E-05** at limit **
  10  Prefactor     .10000E-03    17.155        .71425E-06** at limit **
  11  Prefactor     .10000E-03    20.278       -.89213E-06** at limit **
  12  norm          .91035        .99183       -.10547E-07   -.15301E-04
  13  Prefactor     59.668        51.280       -.45367E-06   -.18822E-04
  14  Prefactor     11.122        14.416       -.10506E-06    .36677E-05
  15  norm          .10000E-03    3.8716        .27434E-07** at limit **
  16  Prefactor     .10000E-03    9.3986        .78380E-07** at limit **
  17  Prefactor     .10000E-03    407.03        .21500E-05** at limit **
  18  Prefactor     45.944        24.346        .22594E-07    .64987E-04
  19  Prefactor     .14904        .24521       -.24163E-06   -.81328E-03
  20  Prefactor     11.863        11.422        .72839E-06   -.10990E-03
  21  norm          .42577        1.5964       -.62060E-06    .40492E-03
  22  Prefactor     62.389        60.439        .67073E-06    .34050E-04
  23  Prefactor     .10000E-03    5.7974        .82468E-07** at limit **
  24  Normalizat    .83096        .35770        .18295E-05    .64719E-04
  25  Prefactor     .93707        .15953       -.73990E-07    .11231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.06273
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.9756
  Prefactor  = 0.000100001
  norm       = 11.4467
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.910347
  Prefactor  = 59.668
  Prefactor  = 11.1224
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.9436
  Prefactor  = 0.149035
  Prefactor  = 11.8635
  norm       = 0.425766
  Prefactor  = 62.3895
  Prefactor  = 0.0001
  Normalizat = 0.830964
  Prefactor  = 0.937073
 **********
 **   18 **HESSE 
 **********

 FCN=   4807.038     FROM HESSE     STATUS=OK           427 CALLS     3372 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0627        5.3671        .17745E-03   -1.5305    
   3  Prefactor     .10000E-03    33.493        .36338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6677        .14607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    76.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.976        5.4829        .82331E-04   -1.4836    
   7  Prefactor     .10000E-03    51.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.447        4.6856        .90698E-04   -1.5031    
   9  norm          .10000E-03    28.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .91035        .97691        .69621E-04   -1.5517    
  13  Prefactor     59.668        51.304        .51947E-04   -1.4162    
  14  Prefactor     11.122        14.410        .12012E-03   -1.5041    
  15  norm          .10000E-03    3.8832        .13320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.4264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    408.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.944        24.376        .59154E-04   -1.4351    
  19  Prefactor     .14904        .23877        .43635E-03   -1.5631    
  20  Prefactor     11.863        11.433        .58152E-03   -1.5019    
  21  norm          .42577        1.6363        .16152E-02   -1.5577    
  22  Prefactor     62.389        60.508        .25399E-03   -1.4127    
  23  Prefactor     .10000E-03    5.8032        .16305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83096        .41204        .44298E-03   -.98930    
  25  Prefactor     .93707        .18825        .19817E-03   -.94857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22615e-10
Minuit parameter uncertainties:
  1  2.05328e-05
  2  5.36776
  3  0.000314299
  4  2.30754e-06
  5  0.000337293
  6  5.48308
  7  0.000371251
  8  4.68573
  9  0.000257558
  10  6.06527e-05
  11  0.000102456
  12  0.976926
  13  51.3424
  14  14.4142
  15  3.19538e-06
  16  4.65709e-06
  17  0.000587921
  18  24.381
  19  0.238769
  20  11.4355
  21  1.63649
  22  60.568
  23  3.29724e-06
  24  0.41361
  25  0.188386
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  9.103e-01  9.769e-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:  9.371e-01  1.884e-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:  8.310e-01  4.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.45e-05

TS (Fixed Index): 2.36
Ra Dec: 330.872 17.432
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155376/likelihoodResults_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4805.79577232
delta logL = 1.24252656688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4805.78193144
delta logL = 1.25636744196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27104       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86349       1.0000          .0000       5.0000    
     3 'Normalizat'    .86315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92914       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=   4805.782     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26948        .30334        .82181E-02   -.57722E-03
   2  alpha         .86220        .46342        .33892       -.29445E-04
   3  Normalizat    .86327        .32900        .98181E-01    .20411E-04
   4  Prefactor     .92907        .15662        .45375E-01    .17908E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.269485
  alpha      = 0.862201
  Normalizat = 0.863273
  Prefactor  = 0.929073
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.782     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26948        .46944        .34181E-03   -1.5604    
   2  alpha         .86220        .68893        .14498E-01   -.71434    
   3  Normalizat    .86327        .38609        .43505E-03   -.97763    
   4  Prefactor     .92907        .18443        .19883E-03   -.95132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04194e-09
Minuit parameter uncertainties:
  1  0.469443
  2  0.705201
  3  0.387336
  4  0.184557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155376': 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) = 4805.78192517
delta logL = 1.25637371611

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.695e-01  4.694e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  8.622e-01  7.052e-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:  9.291e-01  1.846e-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:  8.633e-01  3.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 330.872 17.432
Photon Index (Free Index): 0.86 +/- 0.71
Photon Flux (Free Index): 8.94e-09 +/- 1.02e-08
Energy Flux (Free Index): 7.98e-05 +/- 1.29e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/155376/cmap_HighResolution_427507201_427766401_4FGL_J2203.4+1725_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-05', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='7.98e-05', photon_flux_error='3.84e-08', dlogl='1.26e+00', energy_flux='1.35e-05', photon_flux2='8.94e-09', job_status='DONE', time_completed='2021-09-28 03:36:41.590552', photon_index_error2='0.71', photon_index2='0.86', ts='2.36', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.29e-04', EG='0.83', time_epoch_completed='1632825401.59', return_code='0', job_id='155376', GAL2='0.93', EG2='0.86', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='1.02e-08', ts2='4.85', photon_index='2.23' WHERE bin_id='726' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 155376: <4FGL_J2203.4+1725_daily_bin726> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin726 330.872 17.4318 427507201 427766401 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 :                                   656.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

