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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1630
RA = 338.841, Dec = -48.6015
tmin = 661824001, tmax = 662083201
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='500025', job_status='RUN', time_executed='2021-12-25 01:00:41.469439', time_epoch_executed='1640422841.47' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500025

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500025/ft1_4FGL_J2235.3-4836_daily_bin1630.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500025/ft1_4FGL_J2235.3-4836_daily_bin1630.fits outfile=/scratch/kocevski/500025/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1630.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=661824001.0 tmax=662083201.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.69
user 4.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.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/500025/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1630.fits evtable="EVENTS" outfile="/scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.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.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits" evtable="EVENTS" scfile=/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits sctable="SC_DATA" outfile=/scratch/kocevski/500025/ltcube_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.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/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits
.....................!
real 13.95
user 13.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits evtable="EVENTS" scfile=/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits sctable="SC_DATA" expcube=/scratch/kocevski/500025/ltcube_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.fits outfile=/scratch/kocevski/500025/expmap_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.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/500025/ltcube_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.fits
.....................!
real 193.09
user 187.78
sys 4.68

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

Setting source of interest to:
4FGL J2235.3-4836 @ 338.841 -48.6015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits scfile=/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits outfile=/scratch/kocevski/500025/cmap_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.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.841 yref=-48.6015 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits scfile=/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits outfile=/scratch/kocevski/500025/cmap_HighResolution_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.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.841 yref=-48.6015 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits evtable="EVENTS" scfile=/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500025/Model_4FGL_J2235.3-4836_daily_bin1630.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/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits.....................!
real 49.36
user 47.99
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits', '/scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits', expMap='/scratch/kocevski/500025/expmap_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.fits', expCube='/scratch/kocevski/500025/ltcube_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500025/Model_4FGL_J2235.3-4836_daily_bin1630.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.3-4836'

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/500025/ft1_filtered_4FGL_J2235.3-4836_daily_bin1630.fits
Spacecraft file(s): /scratch/kocevski/500025/ft2_4FGL_J2235.3-4836_daily_bin1630.fits
Exposure map: /scratch/kocevski/500025/expmap_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.fits
Exposure cube: /scratch/kocevski/500025/ltcube_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500025/Model_4FGL_J2235.3-4836_daily_bin1630.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) = 6891.57899987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.1441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.497       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11527E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7716       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15563E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7356       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7487       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.857       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.997       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.2053       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95035       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73754       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6891.573     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3898 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3408       -.21167E-05** at limit **
   2  Prefactor     10.952        16.670        .90554E-06   -.91788E-04
   3  Prefactor     .10001E-03    1.4590        .83971E-06** at limit **
   4  norm          8.1441        3.9027        .11836E-05   -.45018E-04
   5  Prefactor     8.3554        26.998        .48092E-06   -.58552E-04
   6  Prefactor     13.497        7.4136       -.70509E-06   -.20811E-02
   7  Prefactor     .10000E-03    2.0826        .72022E-06** at limit **
   8  Prefactor     .10000E-03    23.508       -.17418E-04** at limit **
   9  norm          .10000E-03    1.9467       -.67149E-07** at limit **
  10  Prefactor     .10017E-03    1.2269        .54990E-06** at limit **
  11  Prefactor     .10000E-03    18.383        .18066E-04** at limit **
  12  Prefactor     5.7710        3.7847        .24109E-06   -.47380E-03
  13  Prefactor     5.3424        13.426       -.39279E-06   -.12456E-03
  14  Prefactor     .10000E-03    33.216        .12098E-04** at limit **
  15  Prefactor     .10000E-03    5.2725       -.14278E-06** at limit **
  16  Prefactor     .10000E-03    161.08       -.13680E-04** at limit **
  17  Prefactor     .10000E-03    4.3710       -.11837E-05** at limit **
  18  Prefactor     .10000E-03    8.8870        .55044E-06** at limit **
  19  Prefactor     .10000E-03    14.534       -.74274E-05** at limit **
  20  norm          .10000E-03    4.4274       -.98952E-06** at limit **
  21  norm          4.7357        4.8391       -.18957E-07   -.30467E-05
  22  norm          1.7497        2.9662       -.90266E-07   -.28163E-03
  23  Prefactor     15.857        6.1255       -.54291E-08    .16511E-03
  24  Prefactor     34.994        29.805       -.38855E-06   -.19016E-05
  25  Prefactor     .10000E-03    3.6282       -.51250E-07** at limit **
  26  norm          1.2054        .76597        .11482E-06    .46004E-03
  27  Prefactor     .10000E-03    2.3860        .11477E-06** at limit **
  28  Prefactor     .10000E-03    22.334       -.10507E-04** at limit **
  29  Normalizat    .95019        .14360       -.25955E-06   -.50533E-03
  30  Prefactor     .73768        .13155       -.39865E-06   -.40821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9516
  Prefactor  = 0.00010001
  norm       = 8.14409
  Prefactor  = 8.35539
  Prefactor  = 13.4966
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100174
  Prefactor  = 0.0001
  Prefactor  = 5.77105
  Prefactor  = 5.34237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.73568
  norm       = 1.74971
  Prefactor  = 15.8571
  Prefactor  = 34.9936
  Prefactor  = 0.0001
  norm       = 1.20541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.950187
  Prefactor  = 0.737682
 **********
 **   18 **HESSE 
 **********

 FCN=   6891.573     FROM HESSE     STATUS=OK           582 CALLS     4480 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.952        16.644        .12105E-03   -1.5046    
   3  Prefactor     .10001E-03    5.1515        .19244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.1441        3.9001        .11021E-03   -1.5137    
   5  Prefactor     8.3554        26.941        .13868E-03   -1.5130    
   6  Prefactor     13.497        7.4883        .54514E-03   -1.4973    
   7  Prefactor     .10000E-03    4.3341        .22908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9490        .11312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10017E-03    19.774        .17525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7710        3.7841        .12557E-03   -1.5227    
  13  Prefactor     5.3424        13.423        .17390E-03   -1.5246    
  14  Prefactor     .10000E-03    33.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    162.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4651        .16935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.4398        .17058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7357        4.8349        .17865E-03   -1.5273    
  22  norm          1.7497        2.9323        .18011E-03   -1.5443    
  23  Prefactor     15.857        6.1213        .10058E-03   -1.4911    
  24  Prefactor     34.994        29.817        .67741E-04   -1.4524    
  25  Prefactor     .10000E-03    3.6346        .15436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.2054        .75546        .55415E-04   -1.5488    
  27  Prefactor     .10000E-03    2.4856        .25033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95019        .16929        .21424E-03   -.94718    
  30  Prefactor     .73768        .15621        .22566E-03   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21405e-08
Minuit parameter uncertainties:
  1  8.98286e-08
  2  16.6512
  3  0.000443827
  4  3.9002
  5  26.9798
  6  7.48884
  7  0.000115196
  8  1.04812e-05
  9  1.5726e-07
  10  0.00371436
  11  1.43764e-05
  12  3.78426
  13  13.4304
  14  0.000101406
  15  9.00386e-07
  16  0.000162319
  17  7.41789e-06
  18  4.32338e-07
  19  4.94135e-05
  20  2.48317e-06
  21  4.83529
  22  2.93257
  23  6.12158
  24  29.8295
  25  2.22882e-06
  26  0.755467
  27  4.23133e-06
  28  4.85738e-05
  29  0.169389
  30  0.156303
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.771e+00  3.784e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  7.377e-01  1.563e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.502e-01  1.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 338.841 -48.602
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 6.83e-06

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) = 6890.55597941
delta logL = 1.01739360071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6890.54657263
delta logL = 1.02680038931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1387       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7019       1.0000          .0000       10.000    
     3 'Normalizat'    .97667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6890.547     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      198 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1387        3.7214        .44338E-02   -.73701E-02
   2  Index         1.7019        .36849        .20639       -.52227E-04
   3  Normalizat    .97667        .13783        .45874E-01   -.26220E-06
   4  Prefactor     .72378        .12982        .42717E-01    .28837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13868
  Index      = 1.7019
  Normalizat = 0.976672
  Prefactor  = 0.723777
 **********
 **   18 **HESSE 
 **********

 FCN=   6890.547     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1387        4.4979        .13253E-03   -1.5255    
   2  Index         1.7019        .51206        .79293E-02   -.72031    
   3  Normalizat    .97667        .16356        .21159E-03   -.93816    
   4  Prefactor     .72378        .15390        .22762E-03   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80486e-08
Minuit parameter uncertainties:
  1  4.49821
  2  0.513656
  3  0.163645
  4  0.153991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500025': 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) = 6890.54657262
delta logL = 1.02680039375

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.139e+00  4.498e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  1.702e+00  5.137e-01  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  7.238e-01  1.540e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.767e-01  1.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.46
Ra Dec: 338.841 -48.602
Photon Index (Free Index): 1.70 +/- 0.51
Photon Flux (Free Index): 1.59e-08 +/- 1.62e-08
Energy Flux (Free Index): 2.58e-05 +/- 3.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/500025/cmap_HighResolution_661824001_662083201_4FGL_J2235.3-4836_daily_bin1630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='2.58e-05', photon_flux_error='2.38e-08', dlogl='1.03e+00', energy_flux='1.04e-05', photon_flux2='1.59e-08', job_status='DONE', time_completed='2021-12-25 01:14:15.642414', photon_index_error2='0.51', photon_index2='1.70', ts='5.43', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='0.95', time_epoch_completed='1640423655.64', return_code='0', job_id='500025', GAL2='0.72', EG2='0.98', return_code2='0', energy_flux_error='6.83e-06', photon_flux_error2='1.62e-08', ts2='7.46', photon_index='2.51' WHERE bin_id='1630' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 25 01:14:15 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 500025: <4FGL_J2235.3-4836_daily_bin1630> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1630> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Dec 25 01:00:15 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 25 01:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 25 01:00:25 2021
Terminated at Sat Dec 25 01:14:18 2021
Results reported at Sat Dec 25 01:14:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1630 338.841 -48.6015 661824001 662083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.3-4836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            843 sec.

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

