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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1165
RA = 338.799, Dec = -6.3955
tmin = 541296001, tmax = 541555201
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='377312', job_status='RUN', time_executed='2021-09-28 15:39:30.685373', time_epoch_executed='1632868770.69' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377312/ft1_4FGL_J2235.1-0623_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377312/ft2_4FGL_J2235.1-0623_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377312/ft1_4FGL_J2235.1-0623_daily_bin1165.fits outfile=/scratch/kocevski/377312/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1165.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=541296001.0 tmax=541555201.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.71
user 3.49
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377312/ft1_filtered_4FGL_J2235.1-0623_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/377312/ft2_4FGL_J2235.1-0623_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/377312/ltcube_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.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/377312/ft2_4FGL_J2235.1-0623_daily_bin1165.fits
.....................!
real 15.02
user 14.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377312/ft1_filtered_4FGL_J2235.1-0623_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/377312/ft2_4FGL_J2235.1-0623_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/377312/ltcube_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.fits outfile=/scratch/kocevski/377312/expmap_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.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/377312/ltcube_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.fits
.....................!
real 190.15
user 184.93
sys 4.91

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/377312/ft1_filtered_4FGL_J2235.1-0623_daily_bin1165.fits scfile=/scratch/kocevski/377312/ft2_4FGL_J2235.1-0623_daily_bin1165.fits outfile=/scratch/kocevski/377312/cmap_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377312/ft1_filtered_4FGL_J2235.1-0623_daily_bin1165.fits scfile=/scratch/kocevski/377312/ft2_4FGL_J2235.1-0623_daily_bin1165.fits outfile=/scratch/kocevski/377312/cmap_HighResolution_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377312/ft1_filtered_4FGL_J2235.1-0623_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/377312/ft2_4FGL_J2235.1-0623_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377312/Model_4FGL_J2235.1-0623_daily_bin1165.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/377312/ft1_filtered_4FGL_J2235.1-0623_daily_bin1165.fits.....................!
real 56.72
user 55.51
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94916E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20337E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.644       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.227       1.0000         .10000E-03   10000.    
    10 'norm      '    18.868       1.0000         .10000E-03   10000.    
    11 'Prefactor '    215.15       1.0000         .10000E-03   10000.    
    12 'norm      '    .10455E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22263E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4355       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.066       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6744       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5675       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5731.658     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2160 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.017        .36310E-05** at limit **
   2  Prefactor     .10000E-03    4.7030       -.79088E-07** at limit **
   3  Prefactor     .10003E-03    59.186       -.24191E-06** at limit **
   4  Prefactor     .10000E-03    8.2204        .13621E-06** at limit **
   5  Prefactor     23.009        1.3660        .11747E-08   -.25105E-02
   6  Prefactor     .10000E-03    11.673       -.88691E-06** at limit **
   7  Prefactor     83.883        8.6877       -.48690E-06    .15032E-01
   8  Prefactor     .10000E-03    2.6062       -.32189E-06** at limit **
   9  Prefactor     60.136        3.5626        .22601E-06   -.72824E-02
  10  norm          18.861        7.2416       -.41115E-07   -.38139E-02
  11  Prefactor     215.43        9.2704       -.32067E-06   -.41088E-02
  12  norm          .10000E-03    2.4597        .42859E-07** at limit **
  13  Prefactor     .82982        651.95       -.25543E-04   -.27797E-03
  14  norm          4.3844        3.5408        .65416E-06    .27456E-03
  15  Prefactor     .10000E-03    31.809       -.50938E-06** at limit **
  16  Prefactor     .10000E-03    5.6231        .65541E-07** at limit **
  17  Prefactor     .10000E-03    5.3328        .54305E-06** at limit **
  18  norm          25.078        1.8360       -.13280E-07   -.20824E-02
  19  Prefactor     .10004E-03    54.108       -.23629E-05** at limit **
  20  Prefactor     2.6818        2.3445       -.26175E-06    .17072E-02
  21  Normalizat    1.5663        .31784        .89550E-06    .21252E-04
  22  Prefactor     .90982        .19580       -.36089E-06    .23136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 23.0092
  Prefactor  = 0.0001
  Prefactor  = 83.8833
  Prefactor  = 0.0001
  Prefactor  = 60.1362
  norm       = 18.8611
  Prefactor  = 215.426
  norm       = 0.0001
  Prefactor  = 0.829817
  norm       = 4.38436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.078
  Prefactor  = 0.000100036
  Prefactor  = 2.68183
  Normalizat = 1.56634
  Prefactor  = 0.909818
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.658     FROM HESSE     STATUS=OK           400 CALLS     2560 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1656        .79317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    12.260        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.009        18.064        .20881E-02   -1.4748    
   6  Prefactor     .10000E-03    11.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     83.883        102.00        .10980E-02   -1.3874    
   8  Prefactor     .10000E-03    2.5781        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.136        76.369        .12925E-02   -1.4155    
  10  norm          18.861        7.8072        .23051E-02   -1.4839    
  11  Prefactor     215.43        168.18        .68921E-03   -1.2762    
  12  norm          .10000E-03    .75482        .20936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .82982        98.145        .10544       -1.5526    
  14  norm          4.3844        3.7485        .47802E-02   -1.5289    
  15  Prefactor     .10000E-03    31.606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3243        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.078        16.947        .20003E-02   -1.4706    
  19  Prefactor     .10004E-03    54.289        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6818        10.530        .62298E-02   -1.5380    
  21  Normalizat    1.5663        .27923        .68421E-01   -.75931    
  22  Prefactor     .90982        .16562        .45125E-01   -.95799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63028e-06
Minuit parameter uncertainties:
  1  0.000187608
  2  2.0676e-06
  3  0.00122243
  4  5.12207e-06
  5  18.0679
  6  6.71427e-05
  7  102.213
  8  7.73424e-06
  9  76.4939
  10  7.80762
  11  168.561
  12  2.53173e-06
  13  18.0784
  14  3.74867
  15  0.000170529
  16  5.99981e-06
  17  2.18338e-05
  18  16.9507
  19  0.00279641
  20  10.5375
  21  0.279511
  22  0.165709
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  2.154e+02  1.686e+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:  9.098e-01  1.657e-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.566e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.89e-08 +/- 6.95e-08
Energy Flux (Fixed Index): 4.41e-05 +/- 3.45e-05

TS (Fixed Index): 2.63
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 2.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377312/likelihoodResults_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.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) = 5730.74903448
delta logL = 0.908641396365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5730.73307479
delta logL = 0.924601086084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.822       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8934       1.0000          .0000       10.000    
     3 'Normalizat'    1.4936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94001       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=   5730.733     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      310 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.932        141.28        .46729E-04    .37394E-03
   2  Index         2.8932        .83563        .34588E-02    .37812E-03
   3  Normalizat    1.4928        .31269        .30814E-03   -.42830E-03
   4  Prefactor     .94043        .19633        .23902E-03   -.12880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.9315
  Index      = 2.89317
  Normalizat = 1.49283
  Prefactor  = 0.940429
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.733     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.932        104.84        .93458E-05   -1.3986    
   2  Index         2.8932        .61983        .13835E-03   -.43495    
   3  Normalizat    1.4928        .31198        .61627E-04   -.77980    
   4  Prefactor     .94043        .19559        .95608E-05   -.94742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61718e-09
Minuit parameter uncertainties:
  1  105.103
  2  0.621774
  3  0.312379
  4  0.195738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377312': 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) = 5730.73307108
delta logL = 0.924604800422

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  7.393e+01  1.051e+02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.893e+00  6.218e-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:  9.404e-01  1.957e-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.493e+00  3.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.59
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 2.89 +/- 0.62
Photon Flux (Free Index): 1.57e-07 +/- 9.41e-08
Energy Flux (Free Index): 3.31e-05 +/- 2.03e-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/377312/cmap_HighResolution_541296001_541555201_4FGL_J2235.1-0623_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-02', comment='SUCCESS', photon_flux='8.89e-08', energy_flux2='3.31e-05', photon_flux_error='6.95e-08', dlogl='9.25e-01', energy_flux='4.41e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-28 15:49:31.199019', photon_index_error2='0.62', photon_index2='2.89', ts='2.63', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.26e-07', energy_flux_error2='2.03e-05', EG='1.57', time_epoch_completed='1632869371.2', return_code='0', job_id='377312', GAL2='0.94', EG2='1.49', return_code2='0', energy_flux_error='3.45e-05', photon_flux_error2='9.41e-08', ts2='4.59', photon_index='2.15' WHERE bin_id='1165' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:49:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 377312: <4FGL_J2235.1-0623_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin1165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:36:02 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:36:03 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:03 2021
Terminated at Tue Sep 28 15:49:31 2021
Results reported at Tue Sep 28 15:49:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1165 338.799 -6.3955 541296001 541555201 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 :                                   591.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

