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


Performing analysis on: 4FGL_J2235.1-0623_daily_bin775
RA = 338.799, Dec = -6.3955
tmin = 440208001, tmax = 440467201
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='375674', job_status='RUN', time_executed='2021-09-28 15:34:14.058965', time_epoch_executed='1632868454.06' WHERE source_name='4FGL J2235.1-0623' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375674/ft1_4FGL_J2235.1-0623_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375674/ft2_4FGL_J2235.1-0623_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375674/ft1_4FGL_J2235.1-0623_daily_bin775.fits outfile=/scratch/kocevski/375674/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin775.fits ra=338.799 dec=-6.3955 rad=12.0 tmin=440208001.0 tmax=440467201.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.44
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375674/ft2_4FGL_J2235.1-0623_daily_bin775.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/375674/ft1_filteredMKT_4FGL_J2235.1-0623_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/375674/ft1_filtered_4FGL_J2235.1-0623_daily_bin775.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/375674/ft1_filtered_4FGL_J2235.1-0623_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/375674/ft2_4FGL_J2235.1-0623_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/375674/ltcube_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.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/375674/ft2_4FGL_J2235.1-0623_daily_bin775.fits
.....................!
real 12.20
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375674/ft1_filtered_4FGL_J2235.1-0623_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/375674/ft2_4FGL_J2235.1-0623_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/375674/ltcube_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.fits outfile=/scratch/kocevski/375674/expmap_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.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/375674/ltcube_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.fits
.....................!
real 191.11
user 185.81
sys 4.99

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/375674/ft1_filtered_4FGL_J2235.1-0623_daily_bin775.fits scfile=/scratch/kocevski/375674/ft2_4FGL_J2235.1-0623_daily_bin775.fits outfile=/scratch/kocevski/375674/cmap_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375674/ft1_filtered_4FGL_J2235.1-0623_daily_bin775.fits scfile=/scratch/kocevski/375674/ft2_4FGL_J2235.1-0623_daily_bin775.fits outfile=/scratch/kocevski/375674/cmap_HighResolution_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375674/ft1_filtered_4FGL_J2235.1-0623_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/375674/ft2_4FGL_J2235.1-0623_daily_bin775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375674/Model_4FGL_J2235.1-0623_daily_bin775.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/375674/ft1_filtered_4FGL_J2235.1-0623_daily_bin775.fits.....................!
real 50.24
user 48.98
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.401       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.552       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1312       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10858E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72391       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1300       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=   5015.150     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2647 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3100       -.27061E-08** at limit **
   2  Prefactor     .10000E-03    16.121       -.38995E-06** at limit **
   3  Prefactor     .10000E-03    38.248       -.55708E-06** at limit **
   4  Prefactor     .10000E-03    13.767       -.56809E-07** at limit **
   5  Prefactor     34.992        18.078        .12030E-06   -.69059E-04
   6  Prefactor     38.397        19.014       -.11213E-06   -.77385E-04
   7  Prefactor     12.216        207.49        .48031E-06    .21180E-04
   8  Prefactor     1.4230        6.6488        .96022E-06   -.12963E-03
   9  Prefactor     .10000E-03    31.841        .17009E-06** at limit **
  10  norm          .10000E-03    3.6381        .63629E-06** at limit **
  11  Prefactor     12.489        92.885       -.16893E-05   -.49235E-04
  12  norm          2.1313        1.0961        .39432E-08   -.96747E-03
  13  Prefactor     .10000E-03    9.3653        .78112E-06** at limit **
  14  norm          .10000E-03    .75047        .16758E-05** at limit **
  15  Prefactor     5.6388        21.379       -.82081E-05   -.31937E-03
  16  Prefactor     15.244        12.333        .24097E-07   -.20059E-03
  17  Prefactor     .10000E-03    5.5564        .58706E-07** at limit **
  18  norm          .10000E-03    8.7063       -.20873E-06** at limit **
  19  Prefactor     .10000E-03    26.605        .64906E-07** at limit **
  20  Prefactor     .10000E-03    4.9879       -.27349E-07** at limit **
  21  Normalizat    .72389        .23372       -.56270E-06   -.18913E-03
  22  Prefactor     1.1301        .15153       -.11958E-06   -.33012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9924
  Prefactor  = 38.3974
  Prefactor  = 12.2162
  Prefactor  = 1.42295
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.4888
  norm       = 2.13126
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 5.63879
  Prefactor  = 15.2445
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.723893
  Prefactor  = 1.13006
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.150     FROM HESSE     STATUS=OK           334 CALLS     2981 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3259        .12582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.992        18.083        .67743E-04   -1.4524    
   6  Prefactor     38.397        18.666        .64679E-04   -1.4468    
   7  Prefactor     12.216        204.36        .11506E-03   -1.5009    
   8  Prefactor     1.4230        6.2714        .31251E-03   -1.5469    
   9  Prefactor     .10000E-03    31.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.7155        .26243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.489        92.424        .11306E-03   -1.5001    
  12  norm          2.1313        1.0939        .51152E-04   -1.5416    
  13  Prefactor     .10000E-03    9.3937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .99638        .10937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6388        24.818        .16938E-03   -1.5233    
  16  Prefactor     15.244        12.322        .10259E-03   -1.4927    
  17  Prefactor     .10000E-03    5.5640        .16304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.7291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9935        .15446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72389        .26438        .34203E-03   -1.0296    
  22  Prefactor     1.1301        .17292        .18602E-03   -.88512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08418e-09
Minuit parameter uncertainties:
  1  2.44756e-06
  2  8.09048e-06
  3  4.5951e-05
  4  4.05465e-05
  5  18.0862
  6  18.669
  7  100.336
  8  5.97542
  9  4.9121e-05
  10  4.65197e-05
  11  68.0966
  12  1.09387
  13  1.52078e-05
  14  6.20097e-05
  15  23.6759
  16  12.3243
  17  9.4771e-07
  18  4.08257e-07
  19  5.77483e-05
  20  2.09203e-06
  21  0.264852
  22  0.173006
Done.

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

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  1.249e+01  6.810e+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:  1.130e+00  1.730e-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.239e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 338.799 -6.396
Photon Flux Upper Limit: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375674/likelihoodResults_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.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) = 5015.10411014
delta logL = 0.0463373034709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5015.10127269
delta logL = 0.0491747534252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3308       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8722       1.0000          .0000       10.000    
     3 'Normalizat'    .71238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1326       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=   5015.101     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      297 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3126        125.74        .13120E-03    .86652E-05
   2  Index         2.8738        3.2294        .86265E-02    .12409E-04
   3  Normalizat    .71101        .26636        .34488E-03    .13842E-03
   4  Prefactor     1.1335        .17493        .18576E-03   -.24569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31263
  Index      = 2.87379
  Normalizat = 0.711014
  Prefactor  = 1.13349
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.101     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3126        56.499        .52480E-05   -1.5098    
   2  Index         2.8738        2.2906        .34506E-03   -.43923    
   3  Normalizat    .71101        .26356        .13795E-04   -1.0346    
   4  Prefactor     1.1335        .17369        .37151E-04   -.88403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0424e-10
Minuit parameter uncertainties:
  1  45.9407
  2  2.40173
  3  0.264028
  4  0.173777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375674': 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) = 5015.10125879
delta logL = 0.0491886546588

Extracting fit parameters...

4FGL J2235.1-0623
   Spectrum: PowerLaw
269    Prefactor:  9.313e+00  4.594e+01  1.000e-04  1.000e+04 ( 1.000e-14)
270        Index:  2.874e+00  2.402e+00  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:  1.133e+00  1.738e-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.110e-01  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 338.799 -6.396

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/375674/cmap_HighResolution_440208001_440467201_4FGL_J2235.1-0623_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-28 15:43:30.846558', job_id='375674', GAL2='1.13', fit_tolerance='1e-08', EG2='0.71', EG='0.72', time_epoch_completed='1632869010.85', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.92e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='775' AND source_name='4FGL J2235.1-0623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:43:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 375674: <4FGL_J2235.1-0623_daily_bin775> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.1-0623_daily_bin775 338.799 -6.3955 440208001 440467201 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 :                                   556.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

