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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin1202
RA = 338.799, Dec = -6.3955
tmin = 550886401, tmax = 551145601
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='377369', job_status='RUN', time_executed='2021-09-28 15:39:40.285428', time_epoch_executed='1632868780.29' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377369/ft1_4FGL_J2235.1-0623_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377369/ft2_4FGL_J2235.1-0623_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377369/ft1_4FGL_J2235.1-0623_daily_bin1202.fits outfile=/scratch/kocevski/377369/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin1202.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=550886401.0 tmax=551145601.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.73
user 3.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377369/ft1_filtered_4FGL_J2235.1-0623_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/377369/ft2_4FGL_J2235.1-0623_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/377369/ltcube_550886401_551145601_4FGL_J2235.1-0623_daily_bin1202.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/377369/ft2_4FGL_J2235.1-0623_daily_bin1202.fits
.....................!
real 11.54
user 11.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377369/ft1_filtered_4FGL_J2235.1-0623_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/377369/ft2_4FGL_J2235.1-0623_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/377369/ltcube_550886401_551145601_4FGL_J2235.1-0623_daily_bin1202.fits outfile=/scratch/kocevski/377369/expmap_550886401_551145601_4FGL_J2235.1-0623_daily_bin1202.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/377369/ltcube_550886401_551145601_4FGL_J2235.1-0623_daily_bin1202.fits
.....................!
real 189.81
user 185.50
sys 4.01

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/377369/ft1_filtered_4FGL_J2235.1-0623_daily_bin1202.fits scfile=/scratch/kocevski/377369/ft2_4FGL_J2235.1-0623_daily_bin1202.fits outfile=/scratch/kocevski/377369/cmap_550886401_551145601_4FGL_J2235.1-0623_daily_bin1202.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.52
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377369/ft1_filtered_4FGL_J2235.1-0623_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/377369/ft2_4FGL_J2235.1-0623_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377369/Model_4FGL_J2235.1-0623_daily_bin1202.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/377369/ft1_filtered_4FGL_J2235.1-0623_daily_bin1202.fits......................!
real 35.18
user 33.86
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55900E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37004E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    106.98       1.0000         .10000E-03   10000.    
    10 'norm      '    .64248       1.0000         .10000E-03   10000.    
    11 'Prefactor '    96.078       1.0000         .10000E-03   10000.    
    12 'norm      '    .93512       1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.622       1.0000         .10000E-03   10000.    
    14 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64452E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .78096E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7247       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .39805       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=   2940.903     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2259 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1917        11.149       -.36421E-05   -.18803E-03
   2  Prefactor     .10000E-03    5.7374       -.47142E-07** at limit **
   3  Prefactor     .10000E-03    26.130       -.29993E-06** at limit **
   4  Prefactor     9.5364        28.387        .83050E-05   -.23718E-04
   5  Prefactor     20.177        26.663        .22424E-04   -.12682E-03
   6  Prefactor     7.9997        11.971        .72542E-06   -.43266E-04
   7  Prefactor     .10000E-03    127.89        .14620E-03** at limit **
   8  Prefactor     .10000E-03    3.0116        .21909E-07** at limit **
   9  Prefactor     107.48        112.19        .11004E-04   -.19731E-04
  10  norm          .63854        6.1639       -.14877E-05   -.52075E-03
  11  Prefactor     97.668        114.32        .49227E-05   -.14877E-05
  12  norm          .93817        1.4617       -.62996E-06   -.13481E-02
  13  Prefactor     65.067        33.783        .25218E-05    .83421E-04
  14  norm          .10000E-03    1.9695       -.10269E-05** at limit **
  15  Prefactor     .10000E-03    109.12        .69366E-04** at limit **
  16  Prefactor     .10000E-03    9.5892       -.13694E-06** at limit **
  17  Prefactor     .10000E-03    11.660       -.71213E-08** at limit **
  18  norm          16.569        19.097        .54996E-05   -.45922E-04
  19  Prefactor     .10000E-03    45.862        .12368E-05** at limit **
  20  Prefactor     .10000E-03    6.2664        .13930E-07** at limit **
  21  Normalizat    1.7246        .34641       -.10134E-04    .15255E-03
  22  Prefactor     .39843        .19668        .16031E-05   -.29085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.53637
  Prefactor  = 20.1765
  Prefactor  = 7.99969
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 107.482
  norm       = 0.638538
  Prefactor  = 97.668
  norm       = 0.938168
  Prefactor  = 65.0668
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.72461
  Prefactor  = 0.398432
 **********
 **   18 **HESSE 
 **********

 FCN=   2940.903     FROM HESSE     STATUS=OK           342 CALLS     2601 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1917        11.157        .17610E-03   -1.5252    
   2  Prefactor     .10000E-03    5.7377        .12687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.207        .19045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5364        28.351        .12703E-03   -1.5090    
   5  Prefactor     20.177        26.950        .89903E-04   -1.4809    
   6  Prefactor     7.9997        11.963        .13900E-03   -1.5142    
   7  Prefactor     .10000E-03    127.75        .19589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0211        .91880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     107.48        111.50        .38882E-04   -1.3631    
  10  norm          .63854        10.860        .24484E-02   -1.5548    
  11  Prefactor     97.668        113.89        .41006E-04   -1.3728    
  12  norm          .93817        1.3838        .74050E-03   -1.5514    
  13  Prefactor     65.067        25.917        .49543E-04   -1.4093    
  14  norm          .10000E-03    7.4421        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    109.52        .21026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6357        .16401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.724        .18085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.569        19.094        .99298E-04   -1.4894    
  19  Prefactor     .10000E-03    45.932        .18518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.2721        .13259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7246        .41443        .24511E-03   -.71648    
  22  Prefactor     .39843        .23164        .28861E-03   -1.1689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75804e-09
Minuit parameter uncertainties:
  1  11.1618
  2  7.59522e-08
  3  6.24061e-05
  4  28.3909
  5  26.9664
  6  11.967
  7  0.000605482
  8  9.18041e-06
  9  111.722
  10  5.26735
  11  114.142
  12  1.38386
  13  25.921
  14  0.000233414
  15  0.000794089
  16  9.50819e-06
  17  2.88765e-05
  18  19.1015
  19  9.425e-05
  20  1.29558e-05
  21  0.415275
  22  0.23219
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  9.767e+01  1.141e+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:  3.984e-01  2.322e-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.725e+00  4.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 2.34e-05

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

Saving results to:
/scratch/kocevski/377369/likelihoodResults_550886401_551145601_4FGL_J2235.1-0623_daily_bin1202.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) = 2940.55935894
delta logL = 0.343348775134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2940.54105417
delta logL = 0.361653548273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    150.84       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5521       1.0000          .0000       10.000    
     3 'Normalizat'    1.7529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38446       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=   2940.541     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      300 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     150.76        152.45        .16409E-03   -.31178E-06
   2  Index         1.5519        .61110        .79636E-02    .10143E-05
   3  Normalizat    1.7532        .36992        .24339E-03    .21977E-04
   4  Prefactor     .38430        .22553        .29320E-03   -.81231E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 150.757
  Index      = 1.55195
  Normalizat = 1.7532
  Prefactor  = 0.3843
 **********
 **   18 **HESSE 
 **********

 FCN=   2940.541     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     150.76        152.54        .65635E-05   -1.3246    
   2  Index         1.5519        .61137        .31854E-03   -.76095    
   3  Normalizat    1.7532        .37019        .97355E-05   -.70892    
   4  Prefactor     .38430        .22571        .11728E-04   -1.1762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1601e-12
Minuit parameter uncertainties:
  1  152.941
  2  0.614315
  3  0.370781
  4  0.226234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377369': 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) = 2940.54105365
delta logL = 0.36165406054

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.508e+02  1.529e+02  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  1.552e+00  6.143e-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:  3.843e-01  2.262e-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.753e+00  3.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 1.55 +/- 0.61
Photon Flux (Free Index): 2.29e-08 +/- 2.92e-08
Energy Flux (Free Index): 6.08e-05 +/- 9.94e-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/377369/cmap_HighResolution_550886401_551145601_4FGL_J2235.1-0623_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='6.08e-05', photon_flux_error='4.71e-08', dlogl='3.62e-01', energy_flux='2.00e-05', photon_flux2='2.29e-08', job_status='DONE', time_completed='2021-09-28 15:47:27.197775', photon_index_error2='0.61', photon_index2='1.55', ts='1.32', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='9.94e-05', EG='1.72', time_epoch_completed='1632869247.2', return_code='0', job_id='377369', GAL2='0.38', EG2='1.75', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='2.92e-08', ts2='2.07', photon_index='2.15' WHERE bin_id='1202' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:47:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 377369: <4FGL_J2235.1-0623_daily_bin1202> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin1202> 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) <bullet0047>, 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:47:27 2021
Results reported at Tue Sep 28 15:47:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin1202 338.799 -6.3955 550886401 551145601 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 :                                   449.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

