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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin579
RA = 338.799, Dec = -6.3955
tmin = 389404801, tmax = 389664001
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='375371', job_status='RUN', time_executed='2021-09-28 15:34:27.717217', time_epoch_executed='1632868467.72' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375371

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375371/ft1_4FGL_J2235.1-0623_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375371/ft1_4FGL_J2235.1-0623_daily_bin579.fits outfile=/scratch/kocevski/375371/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin579.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=389404801.0 tmax=389664001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.30
user 3.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.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/375371/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin579.fits evtable="EVENTS" outfile="/scratch/kocevski/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/375371/ltcube_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.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/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits
.....................!
real 12.36
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/375371/ltcube_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.fits outfile=/scratch/kocevski/375371/expmap_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.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/375371/ltcube_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.fits
.....................!
real 192.85
user 186.78
sys 5.63

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/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits scfile=/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits outfile=/scratch/kocevski/375371/cmap_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits scfile=/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits outfile=/scratch/kocevski/375371/cmap_HighResolution_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.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.60
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375371/Model_4FGL_J2235.1-0623_daily_bin579.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/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits.....................!
real 58.81
user 57.33
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits', '/scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits', expMap='/scratch/kocevski/375371/expmap_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.fits', expCube='/scratch/kocevski/375371/ltcube_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375371/Model_4FGL_J2235.1-0623_daily_bin579.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/375371/ft1_filtered_4FGL_J2235.1-0623_daily_bin579.fits
Spacecraft file(s): /scratch/kocevski/375371/ft2_4FGL_J2235.1-0623_daily_bin579.fits
Exposure map: /scratch/kocevski/375371/expmap_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.fits
Exposure cube: /scratch/kocevski/375371/ltcube_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375371/Model_4FGL_J2235.1-0623_daily_bin579.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) = 5800.9860849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.473       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.230       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15142E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.472       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.119       1.0000         .10000E-03   10000.    
    14 'norm      '    .11061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.810       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4352       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65454       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=   5800.985     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2345 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.893        8.7066       -.15300E-06   -.30343E-04
   2  Prefactor     11.475        10.387       -.58532E-06   -.76912E-03
   3  Prefactor     .10000E-03    10.407       -.25821E-05** at limit **
   4  Prefactor     23.220        20.531       -.19702E-05    .28010E-04
   5  Prefactor     .10000E-03    4.5513        .85845E-07** at limit **
   6  Prefactor     .10000E-03    8.3370        .78299E-06** at limit **
   7  Prefactor     .10000E-03    62.354       -.28276E-05** at limit **
   8  Prefactor     .10000E-03    1.4770        .19456E-07** at limit **
   9  Prefactor     .10000E-03    20.442       -.12456E-04** at limit **
  10  norm          .10000E-03    2.8416        .12011E-06** at limit **
  11  Prefactor     82.463        78.359       -.85974E-05   -.15201E-05
  12  norm          .10000E-03    .36065       -.31126E-07** at limit **
  13  Prefactor     10.129        11.355       -.28533E-06   -.11726E-03
  14  norm          .10000E-03    .43385        .17946E-07** at limit **
  15  Prefactor     .10000E-03    13.715        .52413E-05** at limit **
  16  Prefactor     6.4212        7.4902       -.71365E-07   -.14361E-04
  17  Prefactor     .10000E-03    4.3314       -.44649E-07** at limit **
  18  norm          11.813        13.408       -.78856E-06   -.37043E-04
  19  Prefactor     .10000E-03    24.697        .10761E-04** at limit **
  20  Prefactor     .10000E-03    5.1628       -.12264E-06** at limit **
  21  Normalizat    1.4354        .20430        .77982E-06   -.42081E-04
  22  Prefactor     .65443        .12650        .38260E-06    .32095E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8935
  Prefactor  = 11.4755
  Prefactor  = 0.0001
  Prefactor  = 23.2198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.4629
  norm       = 0.0001
  Prefactor  = 10.1285
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42118
  Prefactor  = 0.0001
  norm       = 11.8129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43539
  Prefactor  = 0.654433
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.985     FROM HESSE     STATUS=OK           340 CALLS     2685 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.893        8.7184        .10046E-03   -1.4910    
   2  Prefactor     11.475        10.534        .59137E-03   -1.5030    
   3  Prefactor     .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.220        20.434        .83109E-04   -1.4744    
   5  Prefactor     .10000E-03    4.5710        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4870        .90362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.9124        .25030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.463        78.278        .44230E-04   -1.3889    
  12  norm          .10000E-03    .60478        .88438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.129        10.521        .12596E-03   -1.5071    
  14  norm          .10000E-03    .51955        .90063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4212        7.4887        .15839E-03   -1.5201    
  17  Prefactor     .10000E-03    4.3373        .15481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.813        13.432        .11657E-03   -1.5020    
  19  Prefactor     .10000E-03    24.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1710        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4354        .23948        .24661E-03   -.79610    
  22  Prefactor     .65443        .14811        .22109E-03   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30134e-10
Minuit parameter uncertainties:
  1  8.7191
  2  10.5358
  3  3.81856e-05
  4  20.4402
  5  2.91632e-06
  6  4.79176e-06
  7  6.95151e-06
  8  4.3413e-06
  9  2.80012e-06
  10  2.16568e-05
  11  78.3757
  12  2.07654e-06
  13  10.5226
  14  2.67145e-07
  15  5.65937e-06
  16  7.48983
  17  1.7193e-06
  18  13.4349
  19  8.97808e-06
  20  3.26902e-06
  21  0.239667
  22  0.148203
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  8.246e+01  7.838e+01  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:  6.544e-01  1.482e-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.435e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.60e-05

TS (Fixed Index): 2.49
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375371/likelihoodResults_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.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) = 5800.94764369
delta logL = 0.0374794874378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5800.94607751
delta logL = 0.0390456630348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.661       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3652       1.0000          .0000       10.000    
     3 'Normalizat'    1.4244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65831       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=   5800.946     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.642        98.268        .49157E-04    .27808E-03
   2  Index         2.3648        .87619        .73536E-02    .16308E-03
   3  Normalizat    1.4245        .23775        .24739E-03   -.58258E-03
   4  Prefactor     .65838        .14850        .22048E-03   -.87396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.6424
  Index      = 2.3648
  Normalizat = 1.42447
  Prefactor  = 0.658379
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.946     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.642        88.092        .98315E-05   -1.4073    
   2  Index         2.3648        .78518        .29415E-03   -.55511    
   3  Normalizat    1.4245        .23706        .49478E-04   -.79924    
   4  Prefactor     .65838        .14832        .44096E-04   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33386e-09
Minuit parameter uncertainties:
  1  88.2651
  2  0.789721
  3  0.237245
  4  0.148406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375371': 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) = 5800.94607641
delta logL = 0.0390467669349

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  6.664e+01  8.827e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.365e+00  7.897e-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:  6.584e-01  1.484e-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.424e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 2.36 +/- 0.79
Photon Flux (Free Index): 4.30e-08 +/- 4.96e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.46e-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/375371/cmap_HighResolution_389404801_389664001_4FGL_J2235.1-0623_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='1.48e-05', photon_flux_error='3.23e-08', dlogl='3.90e-02', energy_flux='1.69e-05', photon_flux2='4.30e-08', job_status='DONE', time_completed='2021-09-28 15:44:21.210188', photon_index_error2='0.79', photon_index2='2.36', ts='2.49', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.46e-05', EG='1.44', time_epoch_completed='1632869061.21', return_code='0', job_id='375371', GAL2='0.66', EG2='1.42', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='4.96e-08', ts2='2.57', photon_index='2.15' WHERE bin_id='579' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:44:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 375371: <4FGL_J2235.1-0623_daily_bin579> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin579> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:30:27 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:30:30 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:30:30 2021
Terminated at Tue Sep 28 15:44:22 2021
Results reported at Tue Sep 28 15:44:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin579 338.799 -6.3955 389404801 389664001 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 :                                   593.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

