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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1459
RA = 338.971, Dec = -36.4605
tmin = 617500801, tmax = 617760001
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='394866', job_status='RUN', time_executed='2021-09-28 16:30:54.811136', time_epoch_executed='1632871854.81' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394866/ft1_4FGL_J2235.8-3627_daily_bin1459.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394866/ft1_4FGL_J2235.8-3627_daily_bin1459.fits outfile=/scratch/kocevski/394866/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1459.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=617500801.0 tmax=617760001.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 2.78
user 2.45
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.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/394866/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1459.fits evtable="EVENTS" outfile="/scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits" evtable="EVENTS" scfile=/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits sctable="SC_DATA" outfile=/scratch/kocevski/394866/ltcube_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.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/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits
.....................!
real 12.62
user 12.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits sctable="SC_DATA" expcube=/scratch/kocevski/394866/ltcube_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.fits outfile=/scratch/kocevski/394866/expmap_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.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/394866/ltcube_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.fits
.....................!
real 190.43
user 185.30
sys 4.75

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits scfile=/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits outfile=/scratch/kocevski/394866/cmap_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.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.971 yref=-36.4605 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits scfile=/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits outfile=/scratch/kocevski/394866/cmap_HighResolution_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.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.971 yref=-36.4605 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/394866/Model_4FGL_J2235.8-3627_daily_bin1459.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/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits...........................!
real 19.56
user 18.18
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits', '/scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits', expMap='/scratch/kocevski/394866/expmap_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.fits', expCube='/scratch/kocevski/394866/ltcube_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394866/Model_4FGL_J2235.8-3627_daily_bin1459.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/394866/ft1_filtered_4FGL_J2235.8-3627_daily_bin1459.fits
Spacecraft file(s): /scratch/kocevski/394866/ft2_4FGL_J2235.8-3627_daily_bin1459.fits
Exposure map: /scratch/kocevski/394866/expmap_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.fits
Exposure cube: /scratch/kocevski/394866/ltcube_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394866/Model_4FGL_J2235.8-3627_daily_bin1459.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) = 923.209147836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25632E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    150.90       1.0000         .10000E-03   10000.    
     3 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    100.56       1.0000         .10000E-03   10000.    
     5 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.178       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96204E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    235.54       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.322       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0907       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5853       1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.364       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    271.00       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1587       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.8196       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .21348E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   923.1389     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     4160 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    947.74        .16239E-04** at limit **
   2  Prefactor     150.92        139.25       -.66376E-06   -.22410E-04
   3  norm          .10000E-03    117.12       -.14108E-05** at limit **
   4  norm          100.65        143.29       -.23832E-05   -.28944E-04
   5  norm          .10000E-03    2.5317        .17484E-07** at limit **
   6  Prefactor     77.173        77.205       -.13732E-06    .67216E-05
   7  Prefactor     .10000E-03    13.226       -.57396E-06** at limit **
   8  norm          .10000E-03    53.452        .85849E-06** at limit **
   9  Prefactor     .10174E-03    7254.6       -.77767E-04** at limit **
  10  Prefactor     235.58        178.04       -.19024E-05   -.10456E-06
  11  Prefactor     20.307        360.47        .73167E-05    .16466E-04
  12  norm          .10000E-03    5.0969        .33894E-07** at limit **
  13  Prefactor     .10000E-03    137.68       -.29047E-06** at limit **
  14  Prefactor     5.0912        185.41       -.80258E-06    .11364E-04
  15  Prefactor     5.5377        46.769       -.84042E-06    .15930E-04
  16  norm          .10000E-03    13.193        .45062E-06** at limit **
  17  Prefactor     .10000E-03    41.249       -.51196E-06** at limit **
  18  Prefactor     18.344        67.265        .24722E-06    .13962E-04
  19  norm          3.8514        4.1565       -.14622E-06    .10761E-03
  20  Prefactor     270.92        227.60       -.78889E-08    .25451E-04
  21  Prefactor     .10000E-03    44.467        .35031E-06** at limit **
  22  norm          .10000E-03    19.640        .72125E-07** at limit **
  23  norm          2.1553        8.1757       -.92034E-06    .37179E-04
  24  norm          .10000E-03    6.5326        .60035E-07** at limit **
  25  Prefactor     .10000E-03    142.82        .99843E-06** at limit **
  26  Prefactor     .10000E-03    46.636        .43831E-06** at limit **
  27  norm          .10000E-03    6.6277        .40889E-06** at limit **
  28  Normalizat    1.8193        .36896       -.32892E-05    .14995E-03
  29  Prefactor     .24989E-09    .49920       -.20145E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100095
  Prefactor  = 150.923
  norm       = 0.0001
  norm       = 100.655
  norm       = 0.0001
  Prefactor  = 77.173
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101744
  Prefactor  = 235.582
  Prefactor  = 20.3069
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.09124
  Prefactor  = 5.53773
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3439
  norm       = 3.85142
  Prefactor  = 270.925
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.15534
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.81928
  Prefactor  = 2.49895e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   923.1389     FROM HESSE     STATUS=OK           539 CALLS     4699 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    970.05        .19993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     150.92        139.41        .16405E-03   -1.3245    
   3  norm          .10000E-03    117.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          100.65        143.62        .20045E-03   -1.3698    
   5  norm          .10000E-03    2.5322        .47123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     77.173        77.296        .45709E-04   -1.3949    
   7  Prefactor     .10000E-03    13.320        .10797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    53.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10174E-03    7372.4        .37973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     235.58        177.84        .13188E-03   -1.2626    
  11  Prefactor     20.307        349.95        .88848E-04   -1.4806    
  12  norm          .10000E-03    5.0985        .67006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    137.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0912        184.20        .17820E-03   -1.5257    
  15  Prefactor     5.5377        44.868        .16999E-03   -1.5237    
  16  norm          .10000E-03    13.224        .10780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.344        70.999        .93463E-04   -1.4851    
  19  norm          3.8514        4.3954        .42100E-04   -1.5315    
  20  Prefactor     270.92        228.20        .12317E-03   -1.2401    
  21  Prefactor     .10000E-03    44.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    19.642        .13157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1553        8.1781        .16306E-03   -1.5414    
  24  norm          .10000E-03    6.5358        .75867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    143.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    46.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.6762        .76484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.8193        .37812        .22917E-03   -.69162    
  29  Prefactor     .24989E-09    .55040        .10811E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10077e-09
Minuit parameter uncertainties:
  1  0.0194932
  2  139.715
  3  0.000458932
  4  144.116
  5  1.30951e-05
  6  77.3972
  7  6.94116e-05
  8  0.000214163
  9  0.200701
  10  178.255
  11  169.775
  12  3.87443e-06
  13  9.69944e-05
  14  61.4526
  15  31.5578
  16  6.81765e-05
  17  8.85698e-05
  18  71.3286
  19  4.3958
  20  228.956
  21  0.000112365
  22  1.45678e-05
  23  8.18238
  24  9.55257e-06
  25  0.00067035
  26  0.000110951
  27  5.60103e-05
  28  0.378734
  29  2.36763e-05
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.356e+02  1.783e+02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  2.499e-10  2.368e-05  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.819e+00  3.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.30e-07 +/- 2.49e-07
Energy Flux (Fixed Index): 1.40e-04 +/- 1.06e-04

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) = 923.12881712
delta logL = 0.01011233801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 923.126132654
delta logL = 0.0127968048569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    246.79       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1335       1.0000          .0000       10.000    
     3 'Normalizat'    1.8267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22082E-11   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+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=   923.1261     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     246.66        175.49        .12891E-03    .62945E-05
   2  Index         2.1339        .59208        .37281E-02    .51060E-05
   3  Normalizat    1.8266        .31004        .22898E-03    .29883E-04
   4  Prefactor     .83406E-11    .52793        .10666E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 246.656
  Index      = 2.13388
  Normalizat = 1.82662
  Prefactor  = 8.34055e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   923.1261     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     246.66        174.34        .25783E-04   -1.2554    
   2  Index         2.1339        .58796        .14912E-03   -.61044    
   3  Normalizat    1.8266        .30988        .45796E-04   -.68971    
   4  Prefactor     .83406E-11    .52814        .21331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07191e-11
Minuit parameter uncertainties:
  1  174.709
  2  0.590002
  3  0.310211
  4  4.23543e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394866': 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) = 923.126132256
delta logL = 0.0127972028763

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.467e+02  1.747e+02  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.134e+00  5.900e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.341e-12  4.235e-06  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.827e+00  3.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.43
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.13 +/- 0.59
Photon Flux (Free Index): 3.00e-07 +/- 2.74e-07
Energy Flux (Free Index): 1.53e-04 +/- 1.37e-04

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/394866/cmap_HighResolution_617500801_617760001_4FGL_J2235.8-3627_daily_bin1459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-07', energy_flux2='1.53e-04', photon_flux_error='2.49e-07', dlogl='1.28e-02', energy_flux='1.40e-04', photon_flux2='3.00e-07', job_status='DONE', time_completed='2021-09-28 16:37:13.513187', photon_index_error2='0.59', photon_index2='2.13', ts='4.35', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.37e-04', EG='1.82', time_epoch_completed='1632872233.51', return_code='0', job_id='394866', GAL2='0.00', EG2='1.83', return_code2='0', energy_flux_error='1.06e-04', photon_flux_error2='2.74e-07', ts2='4.43', photon_index='2.23' WHERE bin_id='1459' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:37:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 394866: <4FGL_J2235.8-3627_daily_bin1459> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1459> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:30:30 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:30:31 2021
Terminated at Tue Sep 28 16:37:14 2021
Results reported at Tue Sep 28 16:37:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1459 338.971 -36.4605 617500801 617760001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   373.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   402 sec.
    Turnaround time :                            404 sec.

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

