/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 91 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 = 7701
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1644
RA = 338.971, Dec = -36.4605
tmin = 665452801, tmax = 665712001
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='574885', job_status='RUN', time_executed='2022-02-05 00:55:04.018836', time_epoch_executed='1644051304.02' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574885/ft1_4FGL_J2235.8-3627_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574885/ft1_4FGL_J2235.8-3627_daily_bin1644.fits outfile=/scratch/kocevski/574885/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1644.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=665452801.0 tmax=665712001.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 4.20
user 3.48
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/574885/ltcube_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.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/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits
.....................!
real 12.58
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/574885/ltcube_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.fits outfile=/scratch/kocevski/574885/expmap_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.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/574885/ltcube_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.fits
.....................!
real 192.62
user 185.33
sys 5.07

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/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits scfile=/scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits outfile=/scratch/kocevski/574885/cmap_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits scfile=/scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits outfile=/scratch/kocevski/574885/cmap_HighResolution_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574885/Model_4FGL_J2235.8-3627_daily_bin1644.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/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits.....................!
real 43.58
user 41.86
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits', '/scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits', expMap='/scratch/kocevski/574885/expmap_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.fits', expCube='/scratch/kocevski/574885/ltcube_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574885/Model_4FGL_J2235.8-3627_daily_bin1644.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/574885/ft1_filtered_4FGL_J2235.8-3627_daily_bin1644.fits
Spacecraft file(s): /scratch/kocevski/574885/ft2_4FGL_J2235.8-3627_daily_bin1644.fits
Exposure map: /scratch/kocevski/574885/expmap_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.fits
Exposure cube: /scratch/kocevski/574885/ltcube_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574885/Model_4FGL_J2235.8-3627_daily_bin1644.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) = 5248.34435619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5863       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.7563       1.0000         .10000E-03   10000.    
     5 'norm      '    .72293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8561       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1743       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.322       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.822       1.0000         .10000E-03   10000.    
    19 'norm      '    .92850       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.681       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.7935       1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9354       1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.239       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95479       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99300       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=   5248.334     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3665 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9512        7.4145       -.26650E-06    .17894E-06
   2  Prefactor     4.5856        8.0066       -.75377E-07   -.12701E-03
   3  norm          .10000E-03    4.2733       -.11651E-07** at limit **
   4  norm          6.7572        6.7510        .79934E-07   -.19040E-03
   5  norm          .72290        .41038       -.16059E-07   -.11207E-04
   6  Prefactor     9.5380        10.799       -.13891E-06    .26621E-05
   7  Prefactor     3.8565        3.7571       -.62778E-07   -.37698E-05
   8  norm          .10000E-03    7.5840       -.10019E-07** at limit **
   9  Prefactor     .10000E-03    21.702        .47486E-07** at limit **
  10  Prefactor     46.659        23.911       -.17163E-06    .29441E-05
  11  Prefactor     1.1823        3.5803        .72812E-07   -.24505E-03
  12  norm          .10000E-03    1.5817       -.72599E-08** at limit **
  13  Prefactor     .10000E-03    136.24        .44511E-06** at limit **
  14  Prefactor     15.323        12.029        .22893E-06    .59706E-05
  15  Prefactor     .10000E-03    2.1112       -.34189E-09** at limit **
  16  norm          .10000E-03    2.2835       -.42155E-08** at limit **
  17  Prefactor     .10000E-03    12.473       -.83081E-09** at limit **
  18  Prefactor     11.821        10.608       -.10949E-06    .23242E-06
  19  norm          .92849        .77092        .23319E-08   -.49205E-04
  20  Prefactor     55.668        49.538       -.10331E-04   -.11612E-05
  21  Prefactor     .10000E-03    5.5716       -.11889E-08** at limit **
  22  norm          8.7945        19.684       -.81299E-06   -.69093E-06
  23  norm          .10000E-03    1.8878       -.67296E-08** at limit **
  24  norm          8.9361        7.4330        .33041E-07    .45748E-05
  25  Prefactor     30.239        33.845        .40885E-06    .35549E-05
  26  Prefactor     .10000E-03    29.479       -.51981E-07** at limit **
  27  norm          .10000E-03    2.2354       -.20486E-07** at limit **
  28  Normalizat    .95454        .20814        .61396E-06   -.47029E-05
  29  Prefactor     .99324        .19485        .19251E-06    .14191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95122
  Prefactor  = 4.58561
  norm       = 0.0001
  norm       = 6.75716
  norm       = 0.722896
  Prefactor  = 9.53798
  Prefactor  = 3.85655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.6589
  Prefactor  = 1.18226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3227
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8209
  norm       = 0.92849
  Prefactor  = 55.6676
  Prefactor  = 0.0001
  norm       = 8.7945
  norm       = 0.0001
  norm       = 8.93611
  Prefactor  = 30.2395
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.954538
  Prefactor  = 0.993235
 **********
 **   18 **HESSE 
 **********

 FCN=   5248.334     FROM HESSE     STATUS=OK           555 CALLS     4220 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9512        7.4093        .15216E-03   -1.5181    
   2  Prefactor     4.5856        8.1408        .93979E-03   -1.5280    
   3  norm          .10000E-03    4.2905        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.7572        6.8848        .77183E-03   -1.5188    
   5  norm          .72290        .40819        .32284E-04   -1.5538    
   6  Prefactor     9.5380        10.813        .12976E-03   -1.5090    
   7  Prefactor     3.8565        3.7526        .13215E-03   -1.5315    
   8  norm          .10000E-03    7.5881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.659        23.939        .58701E-04   -1.4341    
  11  Prefactor     1.1823        31.658        .21144E-02   -1.5491    
  12  norm          .10000E-03    1.6098        .88911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    137.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.323        12.049        .10232E-03   -1.4925    
  15  Prefactor     .10000E-03    2.1164        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3081        .10676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.821        11.068        .11651E-03   -1.5020    
  19  norm          .92849        .78255        .46332E-03   -1.5515    
  20  Prefactor     55.668        49.544        .53757E-04   -1.4214    
  21  Prefactor     .10000E-03    5.5880        .16689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.7945        19.682        .13517E-03   -1.5115    
  23  norm          .10000E-03    1.8888        .97145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9361        7.4364        .13409E-03   -1.5110    
  25  Prefactor     30.239        33.893        .72861E-04   -1.4608    
  26  Prefactor     .10000E-03    29.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2412        .10541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .95454        .24918        .25773E-03   -.94569    
  29  Prefactor     .99324        .23270        .24601E-03   -.92955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29951e-10
Minuit parameter uncertainties:
  1  7.41027
  2  8.14281
  3  1.81675e-06
  4  6.88558
  5  0.40819
  6  10.8151
  7  3.75286
  8  1.26362e-06
  9  1.66043e-06
  10  23.9442
  11  12.2424
  12  1.25331e-06
  13  6.99373e-05
  14  12.0505
  15  1.60628e-07
  16  7.38523e-07
  17  2.77503e-07
  18  11.0697
  19  0.782558
  20  49.5802
  21  4.72149e-07
  22  19.6961
  23  1.07672e-06
  24  7.43716
  25  33.9144
  26  2.46668e-06
  27  2.8936e-06
  28  0.249482
  29  0.232938
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  4.666e+01  2.394e+01  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:  9.932e-01  2.329e-01  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:  9.545e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.46
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.53e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.43e-05

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) = 5247.46780308
delta logL = 0.866446754074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5247.37232639
delta logL = 0.96192344324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.930       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7070       1.0000          .0000       10.000    
     3 'Normalizat'    .98136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97849       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.

 FCN=   5247.372     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.988        32.921        .13409E-02   -.60194E-06
   2  Index         1.7074        .35600        .15017       -.95675E-05
   3  Normalizat    .98131        .19797        .45933E-01    .96886E-05
   4  Prefactor     .97871        .19272        .45998E-01    .66215E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.9883
  Index      = 1.70736
  Normalizat = 0.981311
  Prefactor  = 0.978713
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.372     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.988        30.705        .53638E-04   -1.4210    
   2  Index         1.7074        .36027        .61096E-02   -.71886    
   3  Normalizat    .98131        .23435        .25468E-03   -.93659    
   4  Prefactor     .97871        .22829        .24765E-03   -.93442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81383e-11
Minuit parameter uncertainties:
  1  30.7135
  2  0.360822
  3  0.234592
  4  0.228514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574885': 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) = 5247.37232228
delta logL = 0.96192755386

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.599e+01  3.071e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.707e+00  3.608e-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:  9.787e-01  2.285e-01  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:  9.813e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.38
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.71 +/- 0.36
Photon Flux (Free Index): 4.05e-08 +/- 2.81e-08
Energy Flux (Free Index): 6.45e-05 +/- 5.77e-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/574885/cmap_HighResolution_665452801_665712001_4FGL_J2235.8-3627_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.53e-08', energy_flux2='6.45e-05', photon_flux_error='3.35e-08', dlogl='9.62e-01', energy_flux='2.78e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2022-02-05 01:05:44.038340', photon_index_error2='0.36', photon_index2='1.71', ts='11.46', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='5.77e-05', EG='0.95', time_epoch_completed='1644051944.04', return_code='0', job_id='574885', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='2.81e-08', ts2='13.38', photon_index='2.23' WHERE bin_id='1644' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:05:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 574885: <4FGL_J2235.8-3627_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1644> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Feb  5 00:51:43 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:53:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:53:07 2022
Terminated at Sat Feb  5 01:05:44 2022
Results reported at Sat Feb  5 01:05:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1644 338.971 -36.4605 665452801 665712001 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 :                                   634.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            841 sec.

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

