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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1279
RA = 330.872, Dec = 17.4318
tmin = 570844801, tmax = 571104001
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='158069', job_status='RUN', time_executed='2021-09-28 03:35:43.227851', time_epoch_executed='1632825343.23' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158069

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158069/ft1_4FGL_J2203.4+1725_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158069/ft2_4FGL_J2203.4+1725_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158069/ft1_4FGL_J2203.4+1725_daily_bin1279.fits outfile=/scratch/kocevski/158069/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1279.fits ra=330.872 dec=17.4318 rad=12.0 tmin=570844801.0 tmax=571104001.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.04
user 2.79
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158069/ft2_4FGL_J2203.4+1725_daily_bin1279.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/158069/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1279.fits evtable="EVENTS" outfile="/scratch/kocevski/158069/ft1_filtered_4FGL_J2203.4+1725_daily_bin1279.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158069/ft1_filtered_4FGL_J2203.4+1725_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/158069/ft2_4FGL_J2203.4+1725_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/158069/ltcube_570844801_571104001_4FGL_J2203.4+1725_daily_bin1279.fits outfile=/scratch/kocevski/158069/expmap_570844801_571104001_4FGL_J2203.4+1725_daily_bin1279.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/158069/ltcube_570844801_571104001_4FGL_J2203.4+1725_daily_bin1279.fits
.....................!
real 191.26
user 185.79
sys 5.00

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/158069/ft1_filtered_4FGL_J2203.4+1725_daily_bin1279.fits scfile=/scratch/kocevski/158069/ft2_4FGL_J2203.4+1725_daily_bin1279.fits outfile=/scratch/kocevski/158069/cmap_570844801_571104001_4FGL_J2203.4+1725_daily_bin1279.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158069/ft1_filtered_4FGL_J2203.4+1725_daily_bin1279.fits scfile=/scratch/kocevski/158069/ft2_4FGL_J2203.4+1725_daily_bin1279.fits outfile=/scratch/kocevski/158069/cmap_HighResolution_570844801_571104001_4FGL_J2203.4+1725_daily_bin1279.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.799       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3686       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.708       1.0000         .10000E-03   10000.    
     6 'norm      '    .17759E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0090       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.704       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.878       1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6229       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5663       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12083E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .89349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6021       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62297       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0316       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=   9523.458     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2983 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.803        26.583       -.15880E-06   -.34947E-04
   2  norm          6.3695        3.6563       -.68749E-07   -.23879E-03
   3  Prefactor     .10000E-03    8.6576       -.41769E-06** at limit **
   4  Prefactor     9.5108        10.446       -.30701E-06   -.37944E-03
   5  Prefactor     64.592        109.89        .11511E-04   -.89559E-04
   6  norm          .10000E-03    1.2045        .70950E-06** at limit **
   7  Prefactor     .10000E-03    40.211        .21251E-07** at limit **
   8  norm          3.0093        3.0856        .27282E-07   -.14754E-03
   9  norm          5.1346        53.462       -.56390E-07   -.11161E-04
  10  Prefactor     48.744        40.385       -.41627E-05   -.46229E-03
  11  Prefactor     27.879        52.470        .69567E-06   -.44963E-04
  12  norm          .10000E-03    .35411        .23802E-06** at limit **
  13  Prefactor     48.412        45.499        .47190E-07   -.34539E-05
  14  Prefactor     1.6267        21.868        .10249E-05    .27275E-04
  15  norm          2.5662        3.9104        .14341E-06   -.66791E-04
  16  Prefactor     .10143E-03    12.909        .36560E-05** at limit **
  17  Prefactor     38.509        78.057       -.54568E-05    .29436E-07
  18  Prefactor     6.8513        11.298       -.13032E-06   -.18813E-04
  19  Prefactor     .50592        .20713        .46054E-07    .49107E-03
  20  Prefactor     .10000E-03    8.0078       -.87727E-07** at limit **
  21  norm          .89352        .87661       -.18190E-06   -.84893E-04
  22  Prefactor     .10000E-03    5.0830        .41888E-08** at limit **
  23  Prefactor     1.6044        4.9432        .10394E-04   -.67171E-05
  24  Normalizat    .62324        .24916       -.13107E-05   -.26468E-03
  25  Prefactor     1.0314        .10638        .62204E-06   -.21629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.8033
  norm       = 6.36952
  Prefactor  = 0.0001
  Prefactor  = 9.51085
  Prefactor  = 64.592
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00928
  norm       = 5.13461
  Prefactor  = 48.7438
  Prefactor  = 27.8794
  norm       = 0.0001
  Prefactor  = 48.4116
  Prefactor  = 1.62673
  norm       = 2.56616
  Prefactor  = 0.00010143
  Prefactor  = 38.5091
  Prefactor  = 6.8513
  Prefactor  = 0.505921
  Prefactor  = 0.0001
  norm       = 0.893519
  Prefactor  = 0.0001
  Prefactor  = 1.60436
  Normalizat = 0.62324
  Prefactor  = 1.03144
 **********
 **   18 **HESSE 
 **********

 FCN=   9523.458     FROM HESSE     STATUS=OK           437 CALLS     3420 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.803        26.590        .74656E-04   -1.4634    
   2  norm          6.3695        3.6563        .13617E-03   -1.5203    
   3  Prefactor     .10000E-03    8.8842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5108        10.282        .13003E-03   -1.5091    
   5  Prefactor     64.592        109.31        .24944E-03   -1.4099    
   6  norm          .10000E-03    4.9785        .18775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0093        3.0532        .15722E-03   -1.5361    
   9  norm          5.1346        52.698        .17737E-03   -1.5255    
  10  Prefactor     48.744        38.757        .57459E-04   -1.4310    
  11  Prefactor     27.879        52.344        .75877E-04   -1.4651    
  12  norm          .10000E-03    .36475        .11325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.412        45.473        .57633E-04   -1.4315    
  14  Prefactor     1.6267        21.647        .33215E-03   -1.5453    
  15  norm          2.5662        3.8859        .22832E-03   -1.5388    
  16  Prefactor     .10143E-03    17.236        .92380E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.509        77.875        .64622E-04   -1.4466    
  18  Prefactor     6.8513        11.267        .15327E-03   -1.5184    
  19  Prefactor     .50592        .20626        .26416E-04   -1.5566    
  20  Prefactor     .10000E-03    8.1318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .89352        .88819        .88005E-04   -1.5519    
  22  Prefactor     .10000E-03    5.0834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6044        4.9521        .16745E-02   -1.5455    
  24  Normalizat    .62324        .27215        .45733E-03   -1.0701    
  25  Prefactor     1.0314        .12079        .17222E-03   -.91689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08107e-09
Minuit parameter uncertainties:
  1  26.6011
  2  3.65639
  3  6.01157e-05
  4  10.2843
  5  109.651
  6  3.84101e-05
  7  6.05091e-06
  8  3.05336
  9  32.936
  10  38.7772
  11  52.43
  12  7.51065e-06
  13  45.5054
  14  11.8731
  15  3.88628
  16  0.00993105
  17  78.0812
  18  11.2709
  19  0.206256
  20  1.96467e-05
  21  0.888203
  22  2.05677e-06
  23  4.95335
  24  0.272743
  25  0.120825
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.000e-04  7.511e-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.031e+00  1.208e-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.232e-01  2.727e-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: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158069/likelihoodResults_570844801_571104001_4FGL_J2203.4+1725_daily_bin1279.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) = 9523.45898979
delta logL = -0.000827536170618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9523.42959182
delta logL = 0.0285704391936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10973E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9990       1.0000          .0000       5.0000    
     3 'Normalizat'    .59890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0388       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.

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

 FCN=   9523.430     FROM MIGRAD    STATUS=FAILED       109 CALLS      495 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10980E-01    .11741        .29239E-03    .82625E-02
   2  alpha         5.0000        3.3431        .50000       -.30806E-05
   3  Normalizat    .59876        .26984        .46621E-03   -.11186E-02
   4  Prefactor     1.0389        .12309        .17167E-03    .30698E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9523.430     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      571 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10980E-01    .11741        .23210E-04   -1.5687    
   2  alpha         5.0000        3.3431        .93384E-01    1.5690    
   3  Normalizat    .59876        .26984        .12651E-03   -1.0804    
   4  Prefactor     1.0389        .12309        .32465E-04   -.91445    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9523.430     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      605 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10974E-01    .64107E-01    .11696E-04   -.17127E-02
   2  alpha         5.0000        2.7648        .50000       -.31550E-05
   3  Normalizat    .59883        .27133        .18649E-04    .39260E-04
   4  Prefactor     1.0388        .12349        .34335E-04    .69931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0109745
  alpha      = 5
  Normalizat = 0.598828
  Prefactor  = 1.03884
 **********
 **   18 **HESSE 
 **********

 FCN=   9523.430     FROM HESSE     STATUS=OK            29 CALLS      634 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10974E-01    .63255E-01    .46782E-06   -1.5687    
   2  alpha         5.0000        2.7905        .50000        1.5690    
   3  Normalizat    .59883        .27115        .37297E-05   -1.0803    
   4  Prefactor     1.0388        .12343        .68669E-05   -.91446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21375e-10
Minuit parameter uncertainties:
  1  0.0524544
  2  0.0245609
  3  0.271753
  4  0.123465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158069': 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) = 9523.42959107
delta logL = 0.0285711863798

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.097e-02  5.245e-02  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  5.000e+00  2.456e-02  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.039e+00  1.235e-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.988e-01  2.718e-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/158069/cmap_HighResolution_570844801_571104001_4FGL_J2203.4+1725_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-28 03:51:59.155300', job_id='158069', GAL2='1.04', fit_tolerance='1e-08', EG2='0.60', EG='0.62', time_epoch_completed='1632826319.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.86e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1279' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 158069: <4FGL_J2203.4+1725_daily_bin1279> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1279> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:35:23 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:35:25 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:25 2021
Terminated at Tue Sep 28 03:51:59 2021
Results reported at Tue Sep 28 03:51:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1279 330.872 17.4318 570844801 571104001 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 :                                   966.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             384.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

