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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1434
RA = 330.872, Dec = 17.4318
tmin = 611020801, tmax = 611280001
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='158353', job_status='RUN', time_executed='2021-09-28 03:36:05.589106', time_epoch_executed='1632825365.59' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158353/ft1_4FGL_J2203.4+1725_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158353/ft2_4FGL_J2203.4+1725_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158353/ft1_4FGL_J2203.4+1725_daily_bin1434.fits outfile=/scratch/kocevski/158353/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1434.fits ra=330.872 dec=17.4318 rad=12.0 tmin=611020801.0 tmax=611280001.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.51
user 3.28
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158353/ft1_filtered_4FGL_J2203.4+1725_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/158353/ft2_4FGL_J2203.4+1725_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/158353/ltcube_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.fits outfile=/scratch/kocevski/158353/expmap_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.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/158353/ltcube_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.fits
.....................!
real 192.04
user 186.54
sys 5.19

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/158353/ft1_filtered_4FGL_J2203.4+1725_daily_bin1434.fits scfile=/scratch/kocevski/158353/ft2_4FGL_J2203.4+1725_daily_bin1434.fits outfile=/scratch/kocevski/158353/cmap_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158353/ft1_filtered_4FGL_J2203.4+1725_daily_bin1434.fits scfile=/scratch/kocevski/158353/ft2_4FGL_J2203.4+1725_daily_bin1434.fits outfile=/scratch/kocevski/158353/cmap_HighResolution_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=330.872 yref=17.4318 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158353/ft1_filtered_4FGL_J2203.4+1725_daily_bin1434.fits', '/scratch/kocevski/158353/ft2_4FGL_J2203.4+1725_daily_bin1434.fits', expMap='/scratch/kocevski/158353/expmap_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.fits', expCube='/scratch/kocevski/158353/ltcube_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158353/Model_4FGL_J2203.4+1725_daily_bin1434.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/158353/ft1_filtered_4FGL_J2203.4+1725_daily_bin1434.fits
Spacecraft file(s): /scratch/kocevski/158353/ft2_4FGL_J2203.4+1725_daily_bin1434.fits
Exposure map: /scratch/kocevski/158353/expmap_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.fits
Exposure cube: /scratch/kocevski/158353/ltcube_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158353/Model_4FGL_J2203.4+1725_daily_bin1434.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8776.45256127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13286E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.0017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8523       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9827       1.0000         .10000E-03   10000.    
     9 'norm      '    19.576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .21912       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.5631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2311       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.453       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.398       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55763       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0546       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=   8776.374     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2521 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    154.01       -.43467E-05** at limit **
   2  norm          8.9932        5.7805        .35811E-06   -.15506E-03
   3  Prefactor     .10000E-03    3.8753       -.34703E-06** at limit **
   4  Prefactor     10.006        8.7329       -.65790E-06   -.72097E-04
   5  Prefactor     .10000E-03    28.133        .66203E-05** at limit **
   6  norm          2.8516        2.6276        .59100E-07   -.41782E-03
   7  Prefactor     .10000E-03    21.480        .25343E-05** at limit **
   8  norm          3.9823        2.4333       -.15573E-06   -.35137E-03
   9  norm          19.574        19.096        .14620E-05   -.78024E-05
  10  Prefactor     13.994        29.053       -.27234E-06    .40153E-04
  11  Prefactor     .10000E-03    24.961       -.11330E-04** at limit **
  12  norm          .21867        .68259       -.39595E-06   -.14797E-02
  13  Prefactor     35.552        27.925       -.29861E-06    .88141E-07
  14  Prefactor     .10000E-03    17.052        .11155E-05** at limit **
  15  norm          5.5641        4.3303       -.16585E-06   -.10495E-03
  16  Prefactor     3.2314        7.4059        .11321E-05   -.25003E-03
  17  Prefactor     .10000E-03    21.385        .34140E-05** at limit **
  18  Prefactor     .10000E-03    16.930       -.85213E-06** at limit **
  19  Prefactor     .10000E-03    .53062E-01   -.14442E-07** at limit **
  20  Prefactor     12.453        7.6180        .12044E-05    .46019E-05
  21  norm          3.1806        1.6231       -.97570E-08    .70854E-04
  22  Prefactor     .10000E-03    6.5142        .20951E-06** at limit **
  23  Prefactor     13.398        8.8588       -.33824E-08   -.54746E-05
  24  Normalizat    .55786        .23033        .66692E-06    .49401E-04
  25  Prefactor     1.0545        .10689       -.31338E-07    .27044E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.99322
  Prefactor  = 0.0001
  Prefactor  = 10.006
  Prefactor  = 0.0001
  norm       = 2.85155
  Prefactor  = 0.0001
  norm       = 3.98231
  norm       = 19.5736
  Prefactor  = 13.9939
  Prefactor  = 0.0001
  norm       = 0.218674
  Prefactor  = 35.5516
  Prefactor  = 0.0001
  norm       = 5.56412
  Prefactor  = 3.23141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4534
  norm       = 3.18057
  Prefactor  = 0.0001
  Prefactor  = 13.398
  Normalizat = 0.557861
  Prefactor  = 1.05451
 **********
 **   18 **HESSE 
 **********

 FCN=   8776.374     FROM HESSE     STATUS=OK           433 CALLS     2954 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    155.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.9932        5.7511        .13359E-03   -1.5108    
   3  Prefactor     .10000E-03    3.9263        .17976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.006        8.7022        .12665E-03   -1.5075    
   5  Prefactor     .10000E-03    27.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8516        2.5894        .12656E-03   -1.5370    
   7  Prefactor     .10000E-03    21.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9823        2.4326        .10591E-03   -1.5309    
   9  norm          19.574        19.043        .90525E-04   -1.4823    
  10  Prefactor     13.994        28.661        .10705E-03   -1.4960    
  11  Prefactor     .10000E-03    24.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .21867        .91555        .12777E-02   -1.5614    
  13  Prefactor     35.552        27.916        .67209E-04   -1.4515    
  14  Prefactor     .10000E-03    17.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.5641        4.3234        .16553E-03   -1.5236    
  16  Prefactor     3.2314        7.3018        .22535E-03   -1.5348    
  17  Prefactor     .10000E-03    21.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .13014        .41669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.453        7.5692        .11351E-03   -1.5002    
  21  norm          3.1806        1.6239        .82465E-04   -1.5351    
  22  Prefactor     .10000E-03    6.5258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.398        8.8557        .10943E-03   -1.4976    
  24  Normalizat    .55786        .24627        .44698E-03   -1.0980    
  25  Prefactor     1.0545        .11835        .16603E-03   -.90934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85859e-10
Minuit parameter uncertainties:
  1  0.000333653
  2  5.75142
  3  7.95339e-06
  4  8.70328
  5  3.39126e-07
  6  2.58948
  7  1.33141e-06
  8  2.43265
  9  19.0487
  10  28.6887
  11  9.59286e-06
  12  0.89471
  13  27.9265
  14  1.42363e-05
  15  4.32366
  16  7.30384
  17  1.64924e-06
  18  1.76162e-06
  19  2.68798e-06
  20  7.56979
  21  1.62389
  22  4.87555e-07
  23  8.85653
  24  0.246752
  25  0.118375
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.187e-01  8.947e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.055e+00  1.184e-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.579e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/158353/likelihoodResults_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.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) = 8774.7258037
delta logL = 1.64796518222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8774.72136975
delta logL = 1.65239913378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61049E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .42068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0990       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=   8774.721     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      290 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61009E-01    1.1518        .31506E-02    .33123E-03
   2  alpha         5.0000        4.7770        .46319    ** at limit **
   3  Normalizat    .42069        .14598        .11544        .38379E-04
   4  Prefactor     1.0990        .58399E-01    .37625E-01   -.82667E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0610087
  alpha      = 5
  Normalizat = 0.420692
  Prefactor  = 1.09898
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.721     FROM HESSE     STATUS=OK            35 CALLS      325 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61009E-01    .40356E-01    .14314E-03   -1.5659    
   2  alpha         5.0000        1.0376        .59504E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .42069        .24549        .51149E-03   -1.1625    
   4  Prefactor     1.0990        .12039        .16293E-03   -.89499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54715e-11
Minuit parameter uncertainties:
  1  0.0403562
  2  3.01031e-07
  3  0.246119
  4  0.120423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158353': 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) = 8774.72136806
delta logL = 1.65240082434

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  6.101e-02  4.036e-02  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  5.000e+00  3.010e-07  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.099e+00  1.204e-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:  4.207e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 330.872 17.432
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.93e-08 +/- 6.53e-08
Energy Flux (Free Index): 1.34e-05 +/- 8.84e-06

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/158353/cmap_HighResolution_611020801_611280001_4FGL_J2203.4+1725_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-05', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='1.65e+00', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-09-28 03:50:32.426921', photon_index_error2='0.00', photon_index2='5.00', ts='0.07', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='8.84e-06', EG='0.56', time_epoch_completed='1632826232.43', return_code='0', job_id='158353', GAL2='1.10', EG2='0.42', return_code2='0', photon_flux_error2='6.53e-08', ts2='3.89', photon_index='2.23' WHERE bin_id='1434' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 158353: <4FGL_J2203.4+1725_daily_bin1434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1434 330.872 17.4318 611020801 611280001 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 :                                   857.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

