/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 20 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 = 7351
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1204
RA = 338.799, Dec = -6.3955
tmin = 551404801, tmax = 551664001
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='377373', job_status='RUN', time_executed='2021-09-28 15:36:41.974822', time_epoch_executed='1632868601.97' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377373/ft1_4FGL_J2235.1-0623_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377373/ft1_4FGL_J2235.1-0623_daily_bin1204.fits outfile=/scratch/kocevski/377373/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1204.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=551404801.0 tmax=551664001.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.56
user 3.37
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.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/377373/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1204.fits evtable="EVENTS" outfile="/scratch/kocevski/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.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/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/377373/ltcube_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.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/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits
.....................!
real 11.60
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/377373/ltcube_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.fits outfile=/scratch/kocevski/377373/expmap_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.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/377373/ltcube_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.fits
.....................!
real 190.92
user 185.47
sys 5.13

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
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.1-0623 @ 338.799 -6.3955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits scfile=/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits outfile=/scratch/kocevski/377373/cmap_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.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=338.799 yref=-6.3955 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/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits scfile=/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits outfile=/scratch/kocevski/377373/cmap_HighResolution_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.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=338.799 yref=-6.3955 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/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377373/Model_4FGL_J2235.1-0623_daily_bin1204.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits.....................!
real 54.61
user 53.28
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits', '/scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits', expMap='/scratch/kocevski/377373/expmap_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.fits', expCube='/scratch/kocevski/377373/ltcube_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377373/Model_4FGL_J2235.1-0623_daily_bin1204.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.1-0623'

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/377373/ft1_filtered_4FGL_J2235.1-0623_daily_bin1204.fits
Spacecraft file(s): /scratch/kocevski/377373/ft2_4FGL_J2235.1-0623_daily_bin1204.fits
Exposure map: /scratch/kocevski/377373/expmap_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.fits
Exposure cube: /scratch/kocevski/377373/ltcube_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377373/Model_4FGL_J2235.1-0623_daily_bin1204.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) = 5314.06076941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2687       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.711       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.742       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .51892E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11049E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9422       1.0000         .10000E-03   10000.    
    11 'Prefactor '    211.05       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    119.07       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2733       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68982E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0175       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.284       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0573       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5313.822     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2292 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3152        9.4795       -.29809E-06   -.34554E-04
   2  Prefactor     .10000E-03    2.9873        .57896E-07** at limit **
   3  Prefactor     29.684        18.502       -.57760E-06   -.96584E-04
   4  Prefactor     .40765        19.169       -.54885E-06    .21424E-03
   5  Prefactor     1.4561        58.148        .24843E-05    .12851E-04
   6  Prefactor     19.765        11.646       -.25972E-06   -.15852E-03
   7  Prefactor     .10000E-03    76.365        .12890E-06** at limit **
   8  Prefactor     .36090        4.9651        .17254E-05    .10151E-03
   9  Prefactor     .10000E-03    57.949        .16088E-06** at limit **
  10  norm          2.0988        5.1688        .21448E-06   -.36520E-04
  11  Prefactor     196.35        113.85       -.66854E-06   -.44630E-04
  12  norm          2.0386        1.3975        .12925E-08   -.90673E-04
  13  Prefactor     118.12        65.110       -.20185E-05   -.11569E-04
  14  norm          1.3356        4.6277        .14228E-05    .70463E-04
  15  Prefactor     .10000E-03    217.70       -.18614E-05** at limit **
  16  Prefactor     9.1370        10.655       -.45605E-07   -.64539E-05
  17  Prefactor     .10000E-03    14.598       -.12206E-08** at limit **
  18  norm          1.0048        10.276       -.10273E-06    .43703E-04
  19  Prefactor     23.819        125.27        .21246E-05   -.17349E-04
  20  Prefactor     .10000E-03    10.097       -.21657E-05** at limit **
  21  Normalizat    1.0591        .25783        .30543E-05   -.23951E-03
  22  Prefactor     .70869        .14718       -.30672E-05   -.80952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31523
  Prefactor  = 0.0001
  Prefactor  = 29.6842
  Prefactor  = 0.407654
  Prefactor  = 1.45608
  Prefactor  = 19.7651
  Prefactor  = 0.0001
  Prefactor  = 0.360899
  Prefactor  = 0.0001
  norm       = 2.0988
  Prefactor  = 196.346
  norm       = 2.03863
  Prefactor  = 118.118
  norm       = 1.33562
  Prefactor  = 0.0001
  Prefactor  = 9.13702
  Prefactor  = 0.0001
  norm       = 1.00485
  Prefactor  = 23.8188
  Prefactor  = 0.0001
  Normalizat = 1.05911
  Prefactor  = 0.708687
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.822     FROM HESSE     STATUS=OK           352 CALLS     2644 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3152        9.4102        .17511E-03   -1.5247    
   2  Prefactor     .10000E-03    2.9918        .12305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.684        19.582        .73503E-04   -1.4618    
   4  Prefactor     .40765        246.90        .53771E-02   -1.5580    
   5  Prefactor     1.4561        59.238        .38153E-03   -1.5467    
   6  Prefactor     19.765        11.602        .90142E-04   -1.4819    
   7  Prefactor     .10000E-03    76.453        .19151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36090        5.1458        .30347E-02   -1.5588    
   9  Prefactor     .10000E-03    57.995        .20696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0988        5.1300        .23455E-03   -1.5418    
  11  Prefactor     196.35        113.07        .13915E-03   -1.2896    
  12  norm          2.0386        1.3938        .68500E-04   -1.5422    
  13  Prefactor     118.12        65.475        .36878E-04   -1.3530    
  14  norm          1.3356        4.6547        .14825E-03   -1.5477    
  15  Prefactor     .10000E-03    220.44        .18725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1370        10.654        .13197E-03   -1.5103    
  17  Prefactor     .10000E-03    14.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0048        28.915        .43791E-02   -1.5507    
  19  Prefactor     23.819        126.39        .42425E-03   -1.4731    
  20  Prefactor     .10000E-03    10.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0591        .28700        .28732E-03   -.91076    
  22  Prefactor     .70869        .16086        .20625E-03   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54244e-09
Minuit parameter uncertainties:
  1  9.41283
  2  4.79942e-06
  3  19.5858
  4  20.1463
  5  18.5939
  6  11.6037
  7  6.53698e-07
  8  2.72544
  9  6.87638e-06
  10  5.13111
  11  113.2
  12  1.39386
  13  65.5151
  14  4.656
  15  0.000479309
  16  10.656
  17  1.42665e-06
  18  10.7858
  19  110.1
  20  0.000103776
  21  0.287418
  22  0.160966
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.963e+02  1.132e+02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.149e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.087e-01  1.610e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  1.059e+00  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.04
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.10e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 2.32e-05

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) = 5313.01614557
delta logL = 0.805430974592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5313.01036497
delta logL = 0.811211567939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.843       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8137       1.0000          .0000       10.000    
     3 'Normalizat'    .98336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73873       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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.

 FCN=   5313.010     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      306 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.846        113.96        .44131E-04   -.90163E-05
   2  Index         2.8139        .69124        .32082E-02    .62944E-03
   3  Normalizat    .98247        .27412        .29638E-03    .12217E-03
   4  Prefactor     .73918        .16177        .20221E-03    .12475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.8457
  Index      = 2.81388
  Normalizat = 0.982472
  Prefactor  = 0.739178
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.010     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.846        94.900        .88263E-05   -1.3885    
   2  Index         2.8139        .57553        .64164E-03   -.45251    
   3  Normalizat    .98247        .27257        .11855E-04   -.93620    
   4  Prefactor     .73918        .16112        .80886E-05   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39647e-11
Minuit parameter uncertainties:
  1  95.0747
  2  0.577114
  3  0.272956
  4  0.161226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377373': 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) = 5313.01035952
delta logL = 0.811217021258

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  8.285e+01  9.507e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.814e+00  5.771e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.759e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.392e-01  1.612e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  9.825e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.76
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 2.81 +/- 0.58
Photon Flux (Free Index): 1.46e-07 +/- 8.01e-08
Energy Flux (Free Index): 3.24e-05 +/- 1.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/377373/cmap_HighResolution_551404801_551664001_4FGL_J2235.1-0623_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.10e-08', energy_flux2='3.24e-05', photon_flux_error='4.67e-08', dlogl='8.11e-01', energy_flux='4.02e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-28 15:45:57.674667', photon_index_error2='0.58', photon_index2='2.81', ts='6.04', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.06', time_epoch_completed='1632869157.67', return_code='0', job_id='377373', GAL2='0.74', EG2='0.98', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='8.01e-08', ts2='7.76', photon_index='2.15' WHERE bin_id='1204' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:45:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 377373: <4FGL_J2235.1-0623_daily_bin1204> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin1204> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:36:07 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:36:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:36:08 2021
Terminated at Tue Sep 28 15:45:58 2021
Results reported at Tue Sep 28 15:45:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1204 338.799 -6.3955 551404801 551664001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.1-0623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   514.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             364.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            591 sec.

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

