/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 9 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 = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2203.4+1725_daily_bin365
RA = 330.872, Dec = 17.4318
tmin = 333936001, tmax = 334195201
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='152731', job_status='RUN', time_executed='2021-09-28 03:16:09.430037', time_epoch_executed='1632824169.43' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152731/ft1_4FGL_J2203.4+1725_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152731/ft2_4FGL_J2203.4+1725_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152731/ft1_4FGL_J2203.4+1725_daily_bin365.fits outfile=/scratch/kocevski/152731/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin365.fits ra=330.872 dec=17.4318 rad=12.0 tmin=333936001.0 tmax=334195201.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152731/ft2_4FGL_J2203.4+1725_daily_bin365.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/152731/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin365.fits evtable="EVENTS" outfile="/scratch/kocevski/152731/ft1_filtered_4FGL_J2203.4+1725_daily_bin365.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.48
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152731/ft1_filtered_4FGL_J2203.4+1725_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/152731/ft2_4FGL_J2203.4+1725_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/152731/ltcube_333936001_334195201_4FGL_J2203.4+1725_daily_bin365.fits outfile=/scratch/kocevski/152731/expmap_333936001_334195201_4FGL_J2203.4+1725_daily_bin365.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/152731/ltcube_333936001_334195201_4FGL_J2203.4+1725_daily_bin365.fits
.....................!
real 190.83
user 185.13
sys 5.39

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/152731/ft1_filtered_4FGL_J2203.4+1725_daily_bin365.fits scfile=/scratch/kocevski/152731/ft2_4FGL_J2203.4+1725_daily_bin365.fits outfile=/scratch/kocevski/152731/cmap_333936001_334195201_4FGL_J2203.4+1725_daily_bin365.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152731/ft1_filtered_4FGL_J2203.4+1725_daily_bin365.fits scfile=/scratch/kocevski/152731/ft2_4FGL_J2203.4+1725_daily_bin365.fits outfile=/scratch/kocevski/152731/cmap_HighResolution_333936001_334195201_4FGL_J2203.4+1725_daily_bin365.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/152731/ft1_filtered_4FGL_J2203.4+1725_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/152731/ft2_4FGL_J2203.4+1725_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152731/Model_4FGL_J2203.4+1725_daily_bin365.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/152731/ft1_filtered_4FGL_J2203.4+1725_daily_bin365.fits.....................!
real 112.32
user 110.89
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.479       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8669       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18223E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9902       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.771       1.0000         .10000E-03   10000.    
    11 'Prefactor '    95.489       1.0000         .10000E-03   10000.    
    12 'norm      '    .98700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.777       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.648       1.0000         .10000E-03   10000.    
    15 'norm      '    .49514E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11071E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70677       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8805       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4824       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .39138       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0188       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=   7386.321     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2941 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.487        27.126        .54154E-06    .50019E-04
   2  norm          4.8661        3.5400        .34976E-06   -.81197E-04
   3  Prefactor     .10002E-03    3.9123        .75391E-06** at limit **
   4  Prefactor     16.590        10.367        .24596E-06   -.12896E-03
   5  Prefactor     .10000E-03    68.610        .77738E-06** at limit **
   6  norm          2.9024        2.8450        .30130E-06   -.79391E-04
   7  Prefactor     .10000E-03    34.386       -.40695E-06** at limit **
   8  norm          1.9893        2.6109        .33930E-06   -.15603E-03
   9  norm          2.9117        50.590        .12781E-05   -.27005E-04
  10  Prefactor     25.762        31.774        .32931E-08   -.11152E-03
  11  Prefactor     95.481        67.188        .41233E-06   -.94396E-04
  12  norm          .98654        .99253        .19275E-06    .94156E-04
  13  Prefactor     23.767        22.322        .12059E-06   -.57631E-04
  14  Prefactor     26.636        16.851       -.14183E-06    .88876E-04
  15  norm          .10000E-03    2.3148        .22994E-06** at limit **
  16  Prefactor     .10000E-03    4.9609        .88703E-07** at limit **
  17  Prefactor     .10103E-03    470.93       -.27726E-04** at limit **
  18  Prefactor     .10000E-03    2.6980        .79402E-07** at limit **
  19  Prefactor     .70670        .22693       -.99740E-07    .57276E-03
  20  Prefactor     3.8788        9.2435        .10049E-04   -.29073E-03
  21  norm          1.4821        1.3465        .73531E-07   -.28030E-05
  22  Prefactor     .10000E-03    6.1172        .10379E-08** at limit **
  23  Prefactor     .10000E-03    2.7034        .22956E-07** at limit **
  24  Normalizat    .39181        .26725       -.37340E-05   -.11284E-03
  25  Prefactor     1.0187        .12109       -.22575E-06   -.13286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.487
  norm       = 4.86612
  Prefactor  = 0.00010002
  Prefactor  = 16.5897
  Prefactor  = 0.000100002
  norm       = 2.90241
  Prefactor  = 0.0001
  norm       = 1.98926
  norm       = 2.91168
  Prefactor  = 25.7625
  Prefactor  = 95.4805
  norm       = 0.986537
  Prefactor  = 23.7675
  Prefactor  = 26.636
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000101028
  Prefactor  = 0.0001
  Prefactor  = 0.706699
  Prefactor  = 3.87878
  norm       = 1.48214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.391814
  Prefactor  = 1.01875
 **********
 **   18 **HESSE 
 **********

 FCN=   7386.321     FROM HESSE     STATUS=OK           433 CALLS     3374 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.487        27.122        .11339E-03   -1.5001    
   2  norm          4.8661        3.5379        .66483E-03   -1.5267    
   3  Prefactor     .10002E-03    24.065        .32072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.590        10.106        .98336E-04   -1.4893    
   5  Prefactor     .10000E-03    68.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9024        2.8156        .12747E-03   -1.5367    
   7  Prefactor     .10000E-03    34.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9893        2.5430        .14023E-03   -1.5426    
   9  norm          2.9117        48.845        .23778E-03   -1.5367    
  10  Prefactor     25.762        31.600        .78911E-04   -1.4692    
  11  Prefactor     95.481        66.930        .41131E-04   -1.3751    
  12  norm          .98654        .94520        .80257E-03   -1.5509    
  13  Prefactor     23.767        22.280        .82148E-04   -1.4733    
  14  Prefactor     26.636        16.727        .77605E-04   -1.4675    
  15  norm          .10000E-03    17.031        .25001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10103E-03    480.84        .20694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7011        .13786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .70670        .22491        .21498E-04   -1.5540    
  20  Prefactor     3.8788        9.2467        .10242E-02   -1.5314    
  21  norm          1.4821        1.3336        .92540E-04   -1.5464    
  22  Prefactor     .10000E-03    6.1179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7054        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .39181        .25837        .51343E-03   -1.1773    
  25  Prefactor     1.0187        .12361        .16248E-03   -.92107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36961e-09
Minuit parameter uncertainties:
  1  27.1484
  2  3.53801
  3  0.0013798
  4  10.1069
  5  0.000716564
  6  2.81574
  7  0.000223333
  8  2.54318
  9  23.8738
  10  31.6203
  11  66.9825
  12  0.945212
  13  22.2876
  14  16.7298
  15  0.000209318
  16  6.31099e-06
  17  0.0448395
  18  9.06849e-06
  19  0.224915
  20  9.25011
  21  1.33361
  22  2.42432e-06
  23  8.24655e-07
  24  0.259156
  25  0.123643
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  9.865e-01  9.452e-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:  1.019e+00  1.236e-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:  3.918e-01  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/152731/likelihoodResults_333936001_334195201_4FGL_J2203.4+1725_daily_bin365.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) = 7385.77417118
delta logL = 0.546970930924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7385.75349822
delta logL = 0.567643894549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73070       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1284       1.0000          .0000       5.0000    
     3 'Normalizat'    .33331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       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=   7385.753     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73046        7.4666        .11113E-01    .12990E-02
   2  alpha         3.1288        4.0608        .42929        .54846E-04
   3  Normalizat    .33329        .53635E-01    .12545        .15198E-03
   4  Prefactor     1.0367        .26525E-01    .40762E-01    .28338E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.730459
  alpha      = 3.12876
  Normalizat = 0.33329
  Prefactor  = 1.03667
 **********
 **   18 **HESSE 
 **********

 FCN=   7385.753     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73046        1.1252        .50759E-03   -1.5537    
   2  alpha         3.1288        1.1965        .16238E-01    .25423    
   3  Normalizat    .33329        .25399        .55513E-03   -1.2090    
   4  Prefactor     1.0367        .12479        .16117E-03   -.91517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4285e-11
Minuit parameter uncertainties:
  1  1.12521
  2  1.25162
  3  0.254871
  4  0.124824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152731': 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) = 7385.75349814
delta logL = 0.567643970265

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  7.305e-01  1.125e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  3.129e+00  1.252e+00  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.037e+00  1.248e-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:  3.333e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 330.872 17.432
Photon Index (Free Index): 3.13 +/- 1.25
Photon Flux (Free Index): 8.08e-08 +/- 6.13e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.19e-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/152731/cmap_HighResolution_333936001_334195201_4FGL_J2203.4+1725_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-05', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='1.57e-05', photon_flux_error='3.72e-08', dlogl='5.68e-01', energy_flux='1.46e-05', photon_flux2='8.08e-08', job_status='DONE', time_completed='2021-09-28 03:29:20.756416', photon_index_error2='1.25', photon_index2='3.13', ts='1.67', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.19e-05', EG='0.39', time_epoch_completed='1632824960.76', return_code='0', job_id='152731', GAL2='1.04', EG2='0.33', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='6.13e-08', ts2='3.01', photon_index='2.23' WHERE bin_id='365' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:29:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 152731: <4FGL_J2203.4+1725_daily_bin365> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin365> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 03:15:50 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:15:52 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:52 2021
Terminated at Tue Sep 28 03:29:21 2021
Results reported at Tue Sep 28 03:29:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin365 330.872 17.4318 333936001 334195201 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 :                                   787.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

