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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1373
RA = 330.872, Dec = 17.4318
tmin = 595209601, tmax = 595468801
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='158216', job_status='RUN', time_executed='2021-09-28 03:35:48.749919', time_epoch_executed='1632825348.75' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158216

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158216/ft1_4FGL_J2203.4+1725_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158216/ft2_4FGL_J2203.4+1725_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158216/ft1_4FGL_J2203.4+1725_daily_bin1373.fits outfile=/scratch/kocevski/158216/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1373.fits ra=330.872 dec=17.4318 rad=12.0 tmin=595209601.0 tmax=595468801.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 2.91
user 2.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158216/ft1_filtered_4FGL_J2203.4+1725_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/158216/ft2_4FGL_J2203.4+1725_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/158216/ltcube_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.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/158216/ft2_4FGL_J2203.4+1725_daily_bin1373.fits
.....................!
real 12.06
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158216/ft1_filtered_4FGL_J2203.4+1725_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/158216/ft2_4FGL_J2203.4+1725_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/158216/ltcube_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.fits outfile=/scratch/kocevski/158216/expmap_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.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/158216/ltcube_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.fits
.....................!
real 192.07
user 186.60
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/158216/ft1_filtered_4FGL_J2203.4+1725_daily_bin1373.fits scfile=/scratch/kocevski/158216/ft2_4FGL_J2203.4+1725_daily_bin1373.fits outfile=/scratch/kocevski/158216/cmap_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158216/ft1_filtered_4FGL_J2203.4+1725_daily_bin1373.fits scfile=/scratch/kocevski/158216/ft2_4FGL_J2203.4+1725_daily_bin1373.fits outfile=/scratch/kocevski/158216/cmap_HighResolution_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9306       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.299       1.0000         .10000E-03   10000.    
     6 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6568       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .58510       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.412       1.0000         .10000E-03   10000.    
    17 'Prefactor '    85.280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38406       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5051       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7523       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.312       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61565       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94481       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=   8907.042     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2892 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5074        .10251E-06** at limit **
   2  norm          5.9296        3.0841        .16010E-06   -.18551E-05
   3  Prefactor     .10000E-03    2.1564        .12303E-06** at limit **
   4  Prefactor     .10000E-03    1.7889        .70544E-07** at limit **
   5  Prefactor     18.284        48.998        .24836E-05   -.50778E-05
   6  norm          .10000E-03    .61602        .38738E-07** at limit **
   7  Prefactor     .10000E-03    35.998       -.76290E-06** at limit **
   8  norm          3.6560        2.5498        .24955E-06   -.39774E-04
   9  norm          5.1072        16.056        .15432E-05   -.49124E-05
  10  Prefactor     9.2093        15.296        .88559E-07   -.64400E-04
  11  Prefactor     .10000E-03    25.797        .46565E-06** at limit **
  12  norm          .58313        .92489        .71195E-06    .12054E-02
  13  Prefactor     43.005        32.451        .16083E-05   -.17660E-04
  14  Prefactor     .10000E-03    4.5045       -.40227E-06** at limit **
  15  norm          2.1107        4.7092        .43470E-05   -.15624E-03
  16  Prefactor     14.413        13.612        .25007E-06   -.44334E-04
  17  Prefactor     85.024        97.017        .20054E-04   -.41960E-04
  18  Prefactor     .10000E-03    5.7350        .15128E-06** at limit **
  19  Prefactor     .38403        .20649        .44464E-07   -.62547E-04
  20  Prefactor     3.5048        3.9449        .12482E-06   -.87192E-06
  21  norm          2.7521        1.7505        .38470E-07   -.16012E-05
  22  Prefactor     .10000E-03    8.5453       -.74945E-07** at limit **
  23  Prefactor     32.310        14.257        .98540E-07   -.49480E-05
  24  Normalizat    .61550        .21115       -.43737E-05   -.15065E-03
  25  Prefactor     .94499        .94293E-01   -.12614E-06   -.34809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.92965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2837
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.65595
  norm       = 5.1072
  Prefactor  = 9.20932
  Prefactor  = 0.0001
  norm       = 0.583127
  Prefactor  = 43.0052
  Prefactor  = 0.0001
  norm       = 2.11066
  Prefactor  = 14.4131
  Prefactor  = 85.0236
  Prefactor  = 0.0001
  Prefactor  = 0.384032
  Prefactor  = 3.50483
  norm       = 2.75208
  Prefactor  = 0.0001
  Prefactor  = 32.3103
  Normalizat = 0.615501
  Prefactor  = 0.944988
 **********
 **   18 **HESSE 
 **********

 FCN=   8907.042     FROM HESSE     STATUS=OK           433 CALLS     3325 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9296        3.0845        .11569E-03   -1.5221    
   3  Prefactor     .10000E-03    2.1825        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7971        .12325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.284        49.039        .93629E-04   -1.4853    
   6  norm          .10000E-03    .62915        .72230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6560        2.5340        .11221E-03   -1.5326    
   9  norm          5.1072        15.983        .88950E-03   -1.5256    
  10  Prefactor     9.2093        15.244        .13209E-03   -1.5101    
  11  Prefactor     .10000E-03    25.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .58313        .85788        .10479E-02   -1.5555    
  13  Prefactor     43.005        32.468        .61120E-04   -1.4395    
  14  Prefactor     .10000E-03    4.5125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1107        4.7045        .14199E-02   -1.5417    
  16  Prefactor     14.413        13.589        .10551E-03   -1.4948    
  17  Prefactor     85.024        96.682        .21751E-03   -1.3861    
  18  Prefactor     .10000E-03    5.8133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38403        .20102        .28582E-04   -1.5584    
  20  Prefactor     3.5048        3.9459        .19364E-03   -1.5334    
  21  norm          2.7521        1.7487        .95767E-04   -1.5376    
  22  Prefactor     .10000E-03    8.5530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.310        14.246        .70491E-04   -1.4571    
  24  Normalizat    .61550        .23907        .40499E-03   -1.0733    
  25  Prefactor     .94499        .10964        .16266E-03   -.94586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37535e-10
Minuit parameter uncertainties:
  1  3.07229e-06
  2  3.08455
  3  1.04491e-05
  4  5.56856e-06
  5  49.147
  6  1.91163e-06
  7  6.80083e-06
  8  2.53404
  9  15.9966
  10  15.2506
  11  1.49306e-06
  12  0.857898
  13  32.4813
  14  2.4345e-05
  15  4.70533
  16  13.5922
  17  96.8621
  18  5.85705e-06
  19  0.201021
  20  3.94621
  21  1.74873
  22  2.73442e-06
  23  14.248
  24  0.239477
  25  0.10967
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  5.831e-01  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:  9.450e-01  1.097e-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:  6.155e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 330.872 17.432
Photon Flux Upper Limit: 9.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158216/likelihoodResults_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.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) = 8906.13754068
delta logL = 0.904784310569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8906.12246555
delta logL = 0.919859436442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40438       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6107       1.0000          .0000       5.0000    
     3 'Normalizat'    .52173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97285       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=   8906.122     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40364        3.3545        .88537E-02    .21037E-02
   2  alpha         3.6120        4.2174        .45768        .70095E-04
   3  Normalizat    .52161        .43338E-01    .98934E-01    .61717E-04
   4  Prefactor     .97288        .21318E-01    .45927E-01   -.57227E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.403639
  alpha      = 3.61203
  Normalizat = 0.521611
  Prefactor  = 0.972881
 **********
 **   18 **HESSE 
 **********

 FCN=   8906.122     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      263 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40364        8.7754        .40178E-03   -1.5581    
   2  alpha         3.6120        3.6620        .18128E-01    .46097    
   3  Normalizat    .52161        .24947        .43842E-03   -1.1142    
   4  Prefactor     .97288        .12320        .16052E-03   -.93639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3865e-07
Minuit parameter uncertainties:
  1  3.76424
  2  6.93315
  3  0.250004
  4  0.123235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158216': 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): 102
logL (Free Index) = 8906.12246457
delta logL = 0.919860420061

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  4.036e-01  3.764e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  3.612e+00  6.933e+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:  9.729e-01  1.232e-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:  5.216e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 330.872 17.432
Photon Index (Free Index): 3.61 +/- 6.93
Photon Flux (Free Index): 8.54e-08 +/- 6.61e-08
Energy Flux (Free Index): 1.42e-05 +/- 2.25e-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/158216/cmap_HighResolution_595209601_595468801_4FGL_J2203.4+1725_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', comment='SUCCESS', energy_flux2='1.42e-05', dlogl='9.20e-01', photon_flux2='8.54e-08', job_status='DONE', time_completed='2021-09-28 03:50:56.084990', photon_index_error2='6.93', photon_index2='3.61', ts='0.65', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.97e-08', energy_flux_error2='2.25e-05', EG='0.62', time_epoch_completed='1632826256.09', return_code='0', job_id='158216', GAL2='0.97', EG2='0.52', return_code2='102', photon_flux_error2='6.61e-08', ts2='2.91', photon_index='2.23' WHERE bin_id='1373' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:50:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 158216: <4FGL_J2203.4+1725_daily_bin1373> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1373> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:35:37 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:35:38 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:35:38 2021
Terminated at Tue Sep 28 03:50:56 2021
Results reported at Tue Sep 28 03:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1373 330.872 17.4318 595209601 595468801 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 :                                   900.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

