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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin998
RA = 338.799, Dec = -6.3955
tmin = 498009601, tmax = 498268801
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='377053', job_status='RUN', time_executed='2021-09-28 15:38:56.389498', time_epoch_executed='1632868736.39' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377053/ft1_4FGL_J2235.1-0623_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377053/ft2_4FGL_J2235.1-0623_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377053/ft1_4FGL_J2235.1-0623_daily_bin998.fits outfile=/scratch/kocevski/377053/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin998.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.03
user 7.72
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377053/ft1_filtered_4FGL_J2235.1-0623_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/377053/ft2_4FGL_J2235.1-0623_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/377053/ltcube_498009601_498268801_4FGL_J2235.1-0623_daily_bin998.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/377053/ft2_4FGL_J2235.1-0623_daily_bin998.fits
.....................!
real 11.69
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377053/ft1_filtered_4FGL_J2235.1-0623_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/377053/ft2_4FGL_J2235.1-0623_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/377053/ltcube_498009601_498268801_4FGL_J2235.1-0623_daily_bin998.fits outfile=/scratch/kocevski/377053/expmap_498009601_498268801_4FGL_J2235.1-0623_daily_bin998.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/377053/ltcube_498009601_498268801_4FGL_J2235.1-0623_daily_bin998.fits
.....................!
real 190.62
user 185.44
sys 4.86

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/377053/ft1_filtered_4FGL_J2235.1-0623_daily_bin998.fits scfile=/scratch/kocevski/377053/ft2_4FGL_J2235.1-0623_daily_bin998.fits outfile=/scratch/kocevski/377053/cmap_498009601_498268801_4FGL_J2235.1-0623_daily_bin998.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377053/ft1_filtered_4FGL_J2235.1-0623_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/377053/ft2_4FGL_J2235.1-0623_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377053/Model_4FGL_J2235.1-0623_daily_bin998.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/377053/ft1_filtered_4FGL_J2235.1-0623_daily_bin998.fits.....................!
real 54.96
user 53.65
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2981       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43062       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.317       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.975       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    90.106       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    82.890       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.877       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.200       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.340       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80846       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84783       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=   5344.532     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2135 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2942        7.3562       -.76418E-07    .80134E-05
   2  Prefactor     .10000E-03    4.8938        .62111E-07** at limit **
   3  Prefactor     14.798        19.459       -.96081E-06   -.18420E-03
   4  Prefactor     .31634        22.806        .19712E-05   -.71031E-04
   5  Prefactor     2.8286        13.137        .66422E-05   -.95624E-05
   6  Prefactor     .10000E-03    8.0859       -.98662E-08** at limit **
   7  Prefactor     35.287        71.542       -.27150E-05    .41581E-04
   8  Prefactor     .10000E-03    3.6461       -.29392E-07** at limit **
   9  Prefactor     12.981        47.378        .96535E-06   -.83744E-05
  10  norm          .10000E-03    1.3510        .14118E-06** at limit **
  11  Prefactor     90.065        96.006        .21803E-06    .91620E-05
  12  norm          2.3235        1.3674        .26755E-07    .34121E-04
  13  Prefactor     .10000E-03    78.701       -.31504E-07** at limit **
  14  norm          82.910        7.3741       -.27252E-07   -.44332E-04
  15  Prefactor     19.439        145.23        .24136E-05   -.39200E-05
  16  Prefactor     11.567        11.297       -.11023E-07    .10184E-05
  17  Prefactor     28.203        23.713       -.49263E-07    .10145E-04
  18  norm          3.3745        12.566        .41626E-05   -.13899E-04
  19  Prefactor     .10000E-03    89.671        .47991E-06** at limit **
  20  Prefactor     37.331        25.435        .32620E-07    .36739E-04
  21  Normalizat    .80914        .29041       -.30366E-05   -.95811E-04
  22  Prefactor     .84756        .17421        .65814E-06   -.16131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.29415
  Prefactor  = 0.0001
  Prefactor  = 14.7983
  Prefactor  = 0.316336
  Prefactor  = 2.82863
  Prefactor  = 0.0001
  Prefactor  = 35.2875
  Prefactor  = 0.0001
  Prefactor  = 12.9811
  norm       = 0.0001
  Prefactor  = 90.0651
  norm       = 2.32355
  Prefactor  = 0.0001
  norm       = 82.9103
  Prefactor  = 19.4392
  Prefactor  = 11.5674
  Prefactor  = 28.2026
  norm       = 3.37451
  Prefactor  = 0.0001
  Prefactor  = 37.3314
  Normalizat = 0.809139
  Prefactor  = 0.847562
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.532     FROM HESSE     STATUS=OK           354 CALLS     2489 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2942        7.3595        .13143E-03   -1.5098    
   2  Prefactor     .10000E-03    4.9003        .15795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.798        19.848        .10432E-03   -1.4938    
   4  Prefactor     .31634        29.396        .92839E-01   -1.5595    
   5  Prefactor     2.8286        13.153        .12125E-02   -1.5372    
   6  Prefactor     .10000E-03    8.1444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.287        71.372        .67434E-04   -1.4519    
   8  Prefactor     .10000E-03    3.7393        .27243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.981        47.364        .11120E-03   -1.4987    
  10  norm          .10000E-03    1.3586        .83033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     90.065        96.063        .42331E-04   -1.3807    
  12  norm          2.3235        1.3630        .62985E-04   -1.5403    
  13  Prefactor     .10000E-03    78.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          82.910        7.3418        .21954E-03   -1.3884    
  15  Prefactor     19.439        144.63        .89837E-04   -1.4826    
  16  Prefactor     11.567        11.298        .11779E-03   -1.5028    
  17  Prefactor     28.203        23.708        .75443E-04   -1.4645    
  18  norm          3.3745        12.576        .11016E-02   -1.5341    
  19  Prefactor     .10000E-03    89.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.331        25.525        .65588E-04   -1.4485    
  21  Normalizat    .80914        .35072        .39304E-03   -.99731    
  22  Prefactor     .84756        .21263        .24530E-03   -.97998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33369e-10
Minuit parameter uncertainties:
  1  7.36023
  2  8.63465e-06
  3  19.8564
  4  6.10096
  5  12.2034
  6  1.83266e-06
  7  71.545
  8  1.52952e-06
  9  47.5021
  10  9.91782e-06
  11  96.2297
  12  1.363
  13  5.46482e-06
  14  7.34187
  15  106.41
  16  11.3004
  17  23.7161
  18  12.5861
  19  0.000362244
  20  25.5326
  21  0.351703
  22  0.212835
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  9.007e+01  9.623e+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:  8.476e-01  2.128e-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:  8.091e-01  3.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 338.799 -6.396
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.97e-05

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

Saving results to:
/scratch/kocevski/377053/likelihoodResults_498009601_498268801_4FGL_J2235.1-0623_daily_bin998.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) = 5344.44904518
delta logL = 0.0833366513307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5344.44469226
delta logL = 0.0876895682068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.275       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4918       1.0000          .0000       10.000    
     3 'Normalizat'    .79091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85445       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=   5344.445     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      291 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.189        116.80        .26055E-03    .98479E-04
   2  Index         2.4922        1.0038        .66711E-02    .11514E-03
   3  Normalizat    .79118        .33059        .39707E-03    .11822E-03
   4  Prefactor     .85475        .21065        .24434E-03   -.11789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.1893
  Index      = 2.4922
  Normalizat = 0.791176
  Prefactor  = 0.854754
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.445     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.189        98.894        .10422E-04   -1.4168    
   2  Index         2.4922        .85054        .26684E-03   -.52540    
   3  Normalizat    .79118        .33016        .15883E-04   -1.0040    
   4  Prefactor     .85475        .21052        .48868E-04   -.97741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81083e-10
Minuit parameter uncertainties:
  1  99.17
  2  0.856119
  3  0.330998
  4  0.210723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377053': 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) = 5344.44468066
delta logL = 0.0877011760622

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  5.919e+01  9.917e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.492e+00  8.561e-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:  8.548e-01  2.107e-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:  7.912e-01  3.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 338.799 -6.396
Photon Index (Free Index): 2.49 +/- 0.86
Photon Flux (Free Index): 5.04e-08 +/- 5.65e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.59e-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/377053/cmap_HighResolution_498009601_498268801_4FGL_J2235.1-0623_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='1.48e-05', photon_flux_error='3.97e-08', dlogl='8.77e-02', energy_flux='1.84e-05', photon_flux2='5.04e-08', job_status='DONE', time_completed='2021-09-28 15:49:11.600012', photon_index_error2='0.86', photon_index2='2.49', ts='1.54', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.59e-05', EG='0.81', time_epoch_completed='1632869351.6', return_code='0', job_id='377053', GAL2='0.85', EG2='0.79', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='5.65e-08', ts2='1.70', photon_index='2.15' WHERE bin_id='998' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:49:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 377053: <4FGL_J2235.1-0623_daily_bin998> in cluster <slac> Done

Job <4FGL_J2235.1-0623_daily_bin998> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:35:39 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:35:42 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:35:42 2021
Terminated at Tue Sep 28 15:49:12 2021
Results reported at Tue Sep 28 15:49:12 2021

Your job looked like:

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

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

