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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1588
RA = 330.872, Dec = 17.4318
tmin = 650937601, tmax = 651196801
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='160093', job_status='RUN', time_executed='2021-09-28 03:40:30.069751', time_epoch_executed='1632825630.07' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160093/ft1_4FGL_J2203.4+1725_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160093/ft2_4FGL_J2203.4+1725_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160093/ft1_4FGL_J2203.4+1725_daily_bin1588.fits outfile=/scratch/kocevski/160093/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1588.fits ra=330.872 dec=17.4318 rad=12.0 tmin=650937601.0 tmax=651196801.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.63
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/160093/ft2_4FGL_J2203.4+1725_daily_bin1588.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/160093/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1588.fits evtable="EVENTS" outfile="/scratch/kocevski/160093/ft1_filtered_4FGL_J2203.4+1725_daily_bin1588.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160093/ft1_filtered_4FGL_J2203.4+1725_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/160093/ft2_4FGL_J2203.4+1725_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/160093/ltcube_650937601_651196801_4FGL_J2203.4+1725_daily_bin1588.fits outfile=/scratch/kocevski/160093/expmap_650937601_651196801_4FGL_J2203.4+1725_daily_bin1588.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/160093/ltcube_650937601_651196801_4FGL_J2203.4+1725_daily_bin1588.fits
.....................!
real 190.82
user 185.37
sys 5.09

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/160093/ft1_filtered_4FGL_J2203.4+1725_daily_bin1588.fits scfile=/scratch/kocevski/160093/ft2_4FGL_J2203.4+1725_daily_bin1588.fits outfile=/scratch/kocevski/160093/cmap_650937601_651196801_4FGL_J2203.4+1725_daily_bin1588.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160093/ft1_filtered_4FGL_J2203.4+1725_daily_bin1588.fits scfile=/scratch/kocevski/160093/ft2_4FGL_J2203.4+1725_daily_bin1588.fits outfile=/scratch/kocevski/160093/cmap_HighResolution_650937601_651196801_4FGL_J2203.4+1725_daily_bin1588.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/160093/ft1_filtered_4FGL_J2203.4+1725_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/160093/ft2_4FGL_J2203.4+1725_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/160093/Model_4FGL_J2203.4+1725_daily_bin1588.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/160093/ft1_filtered_4FGL_J2203.4+1725_daily_bin1588.fits.....................!
real 116.18
user 114.69
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.358       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9753       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16691E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10457E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .79029       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4100       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.767       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1650       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.576       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62377       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0150       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=   7410.162     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2936 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.357        37.100       -.21943E-06   -.27670E-04
   2  norm          2.9758        3.4821        .13104E-06   -.73146E-04
   3  Prefactor     .10000E-03    4.0319       -.24705E-06** at limit **
   4  Prefactor     9.3032        8.4266        .14893E-06    .85562E-04
   5  Prefactor     .10000E-03    42.170        .20378E-05** at limit **
   6  norm          .10000E-03    1.2037       -.36082E-07** at limit **
   7  Prefactor     .10000E-03    134.14       -.10542E-05** at limit **
   8  norm          .78988        1.9888        .50617E-06   -.29295E-03
   9  norm          .10000E-03    6.6730       -.25123E-07** at limit **
  10  Prefactor     33.431        29.261       -.10100E-05   -.18869E-03
  11  Prefactor     .10000E-03    13.658        .30272E-05** at limit **
  12  norm          .10000E-03    .37044        .16334E-07** at limit **
  13  Prefactor     38.373        32.850        .16050E-06    .19208E-04
  14  Prefactor     .10000E-03    9.3719        .12211E-06** at limit **
  15  norm          .10000E-03    2.1024        .10316E-07** at limit **
  16  Prefactor     2.4102        8.9096        .55606E-06   -.65058E-04
  17  Prefactor     .10000E-03    41.739       -.17451E-05** at limit **
  18  Prefactor     35.766        14.878        .15015E-06   -.60525E-04
  19  Prefactor     .17530        .13295       -.23008E-07   -.32307E-03
  20  Prefactor     6.1650        7.1356        .17827E-05   -.66522E-03
  21  norm          1.5616        2.0989        .15557E-06   -.17492E-03
  22  Prefactor     .10000E-03    14.212       -.28681E-05** at limit **
  23  Prefactor     20.577        13.271       -.11236E-07    .14373E-04
  24  Normalizat    .62373        .24706       -.39409E-06   -.10047E-04
  25  Prefactor     1.0150        .11285       -.83610E-07    .17230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.357
  norm       = 2.97576
  Prefactor  = 0.0001
  Prefactor  = 9.30318
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.789878
  norm       = 0.0001
  Prefactor  = 33.4307
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 38.373
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.41019
  Prefactor  = 0.000100001
  Prefactor  = 35.7656
  Prefactor  = 0.175298
  Prefactor  = 6.16504
  norm       = 1.56162
  Prefactor  = 0.000100003
  Prefactor  = 20.577
  Normalizat = 0.623726
  Prefactor  = 1.01497
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.162     FROM HESSE     STATUS=OK           429 CALLS     3365 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.357        37.083        .62332E-04   -1.4421    
   2  norm          2.9758        3.4718        .16615E-03   -1.5363    
   3  Prefactor     .10000E-03    11.111        .32079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3032        8.1957        .13138E-03   -1.5098    
   5  Prefactor     .10000E-03    42.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2364        .18384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    134.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78988        1.9866        .18258E-03   -1.5530    
   9  norm          .10000E-03    6.6784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.431        29.636        .69285E-04   -1.4551    
  11  Prefactor     .10000E-03    14.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .58363        .10044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.373        32.850        .64705E-04   -1.4468    
  14  Prefactor     .10000E-03    9.4429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1125        .12185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4102        8.8722        .26371E-03   -1.5397    
  17  Prefactor     .10000E-03    42.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.766        14.892        .33505E-03   -1.4511    
  19  Prefactor     .17530        .13380        .25731E-04   -1.5624    
  20  Prefactor     6.1650        7.6650        .80843E-03   -1.5211    
  21  norm          1.5616        2.0763        .13587E-03   -1.5458    
  22  Prefactor     .10000E-03    15.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.577        13.220        .88299E-04   -1.4800    
  24  Normalizat    .62373        .27483        .41678E-03   -1.0699    
  25  Prefactor     1.0150        .12955        .16718E-03   -.92232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11945e-09
Minuit parameter uncertainties:
  1  37.1039
  2  3.472
  3  0.000104383
  4  8.19667
  5  0.000507182
  6  5.59527e-06
  7  0.000439915
  8  1.98677
  9  3.21835e-06
  10  29.6492
  11  0.000433747
  12  5.01309e-06
  13  32.8652
  14  1.13575e-05
  15  2.13136e-07
  16  8.87705
  17  0.000421974
  18  14.894
  19  0.133805
  20  7.66627
  21  2.07635
  22  0.000408919
  23  13.2214
  24  0.275433
  25  0.129586
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.000e-04  5.013e-06  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.015e+00  1.296e-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.237e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/160093/likelihoodResults_650937601_651196801_4FGL_J2203.4+1725_daily_bin1588.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) = 7410.17060608
delta logL = -0.00816729252801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7410.16232379
delta logL = 0.000115001404993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24872E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1893       1.0000          .0000       5.0000    
     3 'Normalizat'    .62394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7410.162     FROM MIGRAD    STATUS=FAILED       121 CALLS      322 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39150E-02    264.37        .57167E-03    .80723E-02
   2  alpha         4.0347        2.8013        .10000        .34413E-06
   3  Normalizat    .62156        .25364        .41748E-03   -.14024E-04
   4  Prefactor     1.0156        .60047E-01    .16714E-03   -.49994E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7410.162     FROM SIMPLEX   STATUS=UNCHANGED    111 CALLS      433 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39150E-02    264.37        .17420E-03    .80723E-02
   2  alpha         4.0347        2.8013        .53160E-03    .34413E-06
   3  Normalizat    .62156        .25364        .59412E-04   -.14024E-04
   4  Prefactor     1.0156        .60047E-01    .70653E-05   -.49994E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7410.162     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      469 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39150E-02    2.6179        .11433E-03    .32254E-03
   2  alpha         4.0347        3.0036        .40000E-02    .36948E-07
   3  Normalizat    .62156        .27083        .16699E-04   -.14024E-04
   4  Prefactor     1.0156        .13047        .66856E-05   -.49994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.003915
  alpha      = 4.03475
  Normalizat = 0.621562
  Prefactor  = 1.01557
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.162     FROM HESSE     STATUS=OK            25 CALLS      494 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39150E-02    2.3094        .22867E-04   -1.5696    
   2  alpha         4.0347        2.5880        .16000E-03    .66099    
   3  Normalizat    .62156        .26929        .33398E-05   -1.0708    
   4  Prefactor     1.0156        .13031        .13371E-05   -.92212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20362e-12
Minuit parameter uncertainties:
  1  0.187733
  2  12.5702
  3  0.269859
  4  0.130352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160093': 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) = 7410.16209837
delta logL = 0.000340413552294

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  3.915e-03  1.877e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  4.035e+00  1.257e+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:  1.016e+00  1.304e-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.216e-01  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.872 17.432

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/160093/cmap_HighResolution_650937601_651196801_4FGL_J2203.4+1725_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-28 03:54:33.567270', job_id='160093', GAL2='1.02', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632826473.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.40e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1588' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 160093: <4FGL_J2203.4+1725_daily_bin1588> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1588> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 03:40:17 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:40:19 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:40:19 2021
Terminated at Tue Sep 28 03:54:34 2021
Results reported at Tue Sep 28 03:54:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1588 330.872 17.4318 650937601 651196801 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 :                                   833.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

