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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin603
RA = 330.872, Dec = 17.4318
tmin = 395625601, tmax = 395884801
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='154171', job_status='RUN', time_executed='2021-09-28 03:20:54.563563', time_epoch_executed='1632824454.56' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154171/ft1_4FGL_J2203.4+1725_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154171/ft2_4FGL_J2203.4+1725_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154171/ft1_4FGL_J2203.4+1725_daily_bin603.fits outfile=/scratch/kocevski/154171/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin603.fits ra=330.872 dec=17.4318 rad=12.0 tmin=395625601.0 tmax=395884801.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 4.59
user 4.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154171/ft1_filtered_4FGL_J2203.4+1725_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/154171/ft2_4FGL_J2203.4+1725_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/154171/ltcube_395625601_395884801_4FGL_J2203.4+1725_daily_bin603.fits outfile=/scratch/kocevski/154171/expmap_395625601_395884801_4FGL_J2203.4+1725_daily_bin603.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/154171/ltcube_395625601_395884801_4FGL_J2203.4+1725_daily_bin603.fits
.....................!
real 190.89
user 185.86
sys 4.65

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/154171/ft1_filtered_4FGL_J2203.4+1725_daily_bin603.fits scfile=/scratch/kocevski/154171/ft2_4FGL_J2203.4+1725_daily_bin603.fits outfile=/scratch/kocevski/154171/cmap_395625601_395884801_4FGL_J2203.4+1725_daily_bin603.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=330.872 yref=17.4318 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154171/ft1_filtered_4FGL_J2203.4+1725_daily_bin603.fits scfile=/scratch/kocevski/154171/ft2_4FGL_J2203.4+1725_daily_bin603.fits outfile=/scratch/kocevski/154171/cmap_HighResolution_395625601_395884801_4FGL_J2203.4+1725_daily_bin603.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9595       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1249       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4931       1.0000         .10000E-03   10000.    
     9 'norm      '    23.020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .86108       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6600       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    157.44       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .57258       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65168       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96286       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=   7159.324     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2911 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.946        .94522E-05** at limit **
   2  norm          4.9561        2.2558        .16568E-06   -.13519E-02
   3  Prefactor     .53870        2.9685       -.43631E-06    .24393E-03
   4  Prefactor     12.707        9.0122       -.83077E-07    .77885E-04
   5  Prefactor     .10000E-03    91.015       -.10365E-04** at limit **
   6  norm          3.1246        2.7385        .75295E-07    .64993E-06
   7  Prefactor     .10000E-03    38.281       -.39296E-06** at limit **
   8  norm          4.4929        2.4978        .29283E-07    .44112E-04
   9  norm          23.018        24.065       -.38231E-06    .30455E-05
  10  Prefactor     8.6926        24.836       -.14283E-05   -.17872E-05
  11  Prefactor     .10000E-03    13.850        .24627E-07** at limit **
  12  norm          .86109        .85978        .30552E-07   -.25073E-05
  13  Prefactor     9.6596        17.201        .10572E-06   -.53281E-04
  14  Prefactor     .10000E-03    7.7061        .26382E-07** at limit **
  15  norm          .10000E-03    4.1775       -.40981E-07** at limit **
  16  Prefactor     .10000E-03    3.9124        .39712E-07** at limit **
  17  Prefactor     157.44        103.88        .27932E-06    .11856E-05
  18  Prefactor     .10000E-03    21.064        .22637E-06** at limit **
  19  Prefactor     .57262        .20601        .93885E-09   -.29149E-04
  20  Prefactor     .10000E-03    11.858       -.85887E-08** at limit **
  21  norm          .10000E-03    .48961        .91217E-09** at limit **
  22  Prefactor     .10000E-03    6.0578        .20382E-07** at limit **
  23  Prefactor     .10000E-03    5.3742       -.60667E-07** at limit **
  24  Normalizat    .65178        .22785       -.33709E-07    .19905E-04
  25  Prefactor     .96284        .10877        .90006E-07    .30225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.95612
  Prefactor  = 0.5387
  Prefactor  = 12.7071
  Prefactor  = 0.0001
  norm       = 3.12461
  Prefactor  = 0.0001
  norm       = 4.49292
  norm       = 23.0183
  Prefactor  = 8.69262
  Prefactor  = 0.0001
  norm       = 0.861091
  Prefactor  = 9.65958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 157.445
  Prefactor  = 0.0001
  Prefactor  = 0.572622
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.651778
  Prefactor  = 0.962837
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.324     FROM HESSE     STATUS=OK           429 CALLS     3340 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9561        5.3504        .90295E-03   -1.5263    
   3  Prefactor     .53870        11.086        .26784E-02   -1.5561    
   4  Prefactor     12.707        8.9353        .11236E-03   -1.4995    
   5  Prefactor     .10000E-03    91.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1246        2.7161        .11849E-03   -1.5354    
   7  Prefactor     .10000E-03    38.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4929        2.4933        .93366E-04   -1.5284    
   9  norm          23.018        24.047        .83485E-04   -1.4748    
  10  Prefactor     8.6926        24.728        .13592E-03   -1.5118    
  11  Prefactor     .10000E-03    13.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .86109        .83050        .74513E-03   -1.5522    
  13  Prefactor     9.6596        17.290        .64467E-03   -1.5086    
  14  Prefactor     .10000E-03    7.7628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2517        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9177        .16343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     157.44        103.92        .32133E-04   -1.3192    
  18  Prefactor     .10000E-03    21.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .57262        .20471        .22084E-04   -1.5557    
  20  Prefactor     .10000E-03    12.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .49203        .57815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .65178        .25724        .40648E-03   -1.0583    
  25  Prefactor     .96284        .12623        .16914E-03   -.93979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78496e-09
Minuit parameter uncertainties:
  1  0.000128925
  2  5.35096
  3  4.88821
  4  8.93628
  5  0.000215285
  6  2.71623
  7  5.50104e-06
  8  2.49338
  9  24.0571
  10  24.7567
  11  9.47185e-07
  12  0.830509
  13  17.2988
  14  1.40688e-06
  15  1.37524e-06
  16  1.22862e-07
  17  104.043
  18  9.12021e-06
  19  0.204709
  20  2.66394e-06
  21  5.55139e-08
  22  4.0927e-08
  23  8.40785e-07
  24  0.257715
  25  0.126267
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  8.611e-01  8.305e-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.628e-01  1.263e-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.518e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/154171/likelihoodResults_395625601_395884801_4FGL_J2203.4+1725_daily_bin603.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) = 7159.08478631
delta logL = 0.239200016469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7159.07328224
delta logL = 0.250704079817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71241       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0285       1.0000          .0000       5.0000    
     3 'Normalizat'    .59799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97928       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=   7159.073     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71232        7.8428        .11751E-01    .95877E-03
   2  alpha         3.0287        3.9906        .42378        .52476E-04
   3  Normalizat    .59798        .53988E-01    .95533E-01    .43366E-04
   4  Prefactor     .97929        .25778E-01    .46008E-01   -.29096E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.712322
  alpha      = 3.02874
  Normalizat = 0.597978
  Prefactor  = 0.979288
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.073     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71232        1.1403        .53520E-03   -1.5539    
   2  alpha         3.0287        1.4920        .18890E-01    .21310    
   3  Normalizat    .59798        .26931        .42332E-03   -1.0807    
   4  Prefactor     .97929        .12996        .16786E-03   -.93423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46327e-11
Minuit parameter uncertainties:
  1  1.14034
  2  1.60499
  3  0.269907
  4  0.129999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154171': 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) = 7159.07328222
delta logL = 0.250704103188

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  7.123e-01  1.140e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  3.029e+00  1.605e+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.793e-01  1.300e-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.980e-01  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 330.872 17.432
Photon Index (Free Index): 3.03 +/- 1.60
Photon Flux (Free Index): 6.93e-08 +/- 6.94e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.10e-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/154171/cmap_HighResolution_395625601_395884801_4FGL_J2203.4+1725_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-05', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.40e-05', photon_flux_error='3.27e-08', dlogl='2.51e-01', energy_flux='1.28e-05', photon_flux2='6.93e-08', job_status='DONE', time_completed='2021-09-28 03:34:44.520509', photon_index_error2='1.60', photon_index2='3.03', ts='2.17', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.10e-05', EG='0.65', time_epoch_completed='1632825284.52', return_code='0', job_id='154171', GAL2='0.98', EG2='0.60', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='6.94e-08', ts2='2.82', photon_index='2.23' WHERE bin_id='603' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 154171: <4FGL_J2203.4+1725_daily_bin603> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:20:44 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:20:46 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:20:46 2021
Terminated at Tue Sep 28 03:34:45 2021
Results reported at Tue Sep 28 03:34:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin603 330.872 17.4318 395625601 395884801 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 :                                   815.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

